I am trying to build an android application which publishes media to a Wowza server. I see similar functionality in other android applications, notably sipdroid and spydroid, but they seem to rely on publishing RTP streams with encodings like raw AMR. However, when I test publishing streams to Wowza via RTP using ffmpeg, only MPEG-TS seems to work. Is Wowza's RTP support only for MPEG-TS? Is there any known way to get media data from an android client to be published to the Wowza server?
Thanks in advance!
If I publish a stream using the command:
I can play both these urls:ffmpeg -re -i ref.mp4 -re -vcodec libx264 -g 60 -vb 150000 -strict experimental -acodec aac -ab 96000 -ar 48000 -ac 2 -vbsf h264_mp4toannexb -f mpegts udp://127.0.0.1:10000?pkt_size=1316
And if I publish the stream via direct mpegts-rtp:totem rtsp://192.168.0.6:1935/videochat/mpegts.stream
mplayer -msglevel all=6 rtmp://192.168.0.6:1935/videochat/mpegts.stream
I can playffmpeg -re -i ref.mp4 -re -vcodec libx264 -g 60 -vb 150000 -strict experimental -acodec aac -ab 96000 -ar 48000 -ac 2 -vbsf h264_mp4toannexb -f rtsp rtsp://192.168.0.6:1935/videochat/test
However, this does not result in any playable url:totem rtsp://192.168.0.6:1935/videochat/test
mplayer -msglevel all=6 rtmp://192.168.0.6:1935/videochat/test
Nor do any similar implementations in Java/Androidffmpeg -re -i ref.mp4 -acodec libopencore_amrnb -ar 8000 -ac 1 -vn -f amr rtp://192.168.0.6:10000/