[FFmpeg-user] ... -f flv rtmp:// ... vlc error on open stream

Moritz Barsnick barsnick at gmx.net
Sat Nov 5 20:49:57 EET 2016


On Sat, Nov 05, 2016 at 19:37:59 +0100, Jens Kallup wrote:
> ../ffmpeg/ffmpeg -f x11grab -i :0.0+100,200 -framerate 5 -f flv 
> rtmp://192.168.178.80:8585/live 2> /dev/null

I streamed that flv to VLC without nginx, and VLC handles it just fine.
So you need to check what nginx does with it. Does nginx give any error
messages.

Thinking about it more, you probably need to choose a different codec
than ffmpeg's default, at least if you believe some of this:
https://github.com/arut/nginx-rtmp-module/wiki/Getting-started-with-nginx-rtmp

So you might want to add "-c:v libx264" to your command line.

Moritz


More information about the ffmpeg-user mailing list