[FFmpeg-user] Very high latency of RTMP laptop webcam

Moritz Barsnick barsnick at gmx.net
Tue Dec 13 23:57:18 EET 2016


Carl Eugen wrote:
> Command line and complete, uncut console output missing.

Syed, that wasn't the complete, uncut console output you gave us.
Please give us *all*.

On Tue, Dec 13, 2016 at 16:58:30 +0500, Syed Hamid Rasool wrote:
> Command: ffmpeg -rtbufsize 100M -r 30 -f dshow -s 320x240 -i video="USB2.0
> Camera" -vcodec h264 -pix_fmt yuyv422 -b:v 300k -preset ultrafast -f flv
> "rtmp://10.3.101.28/transcode/key"

That should be encodable even by the weakest hardware, even if libx264
was compiled with asm support.

BTW, your command line has:
"-pix_fmt yuyv422"
but you omitted this from your output:
> Incompatible pixel format 'yuyv422' for codec 'libx264', auto-selecting format 'yuv422p'
Did you notice?

> Output #0, flv, to 'rtmp://111.68.101.48/transcode/pass':

What happens if you encode to "-f null -" instead of to RTMP? Do you
achieve the 30 fps then?

Moritz


More information about the ffmpeg-user mailing list