ffmpegrtmpwowza

ffmpeg rtmp streaming issue


I am trying to stream my webcam video using the ffmpeg to wowza media server on linux..

ffmpeg -re -f video4linux2 -i /dev/video0 -acodec libfacc -vcodec libx264 -f h264 rtmp://localhost:1935/live/test

This is the command I used for some reason it doesn't seem to work as I am not able to run the example that came with wowza. I tried using flash media live encoder to send a rtmp to my wowza server and it works.

Any pointers on how to solve this problem.

I build ffmpeg from their git repo with the following config

--enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab

ffmpeg -protocols says it has rtmp input/output support


Solution

  • With these build options my FFMPEG build does receive and decode rtsp streams

    --enable-network --enable-protocol=tcp --enable-demuxer=rtsp --enable-decoder=h264

    I have answered a similar question here FFMPEG API: How to connect to RTSP stream using av_open_input_file?