[FFmpeg-user] Webcam stream join delay?

Ben Barker ben at bbarker.co.uk
Thu Jun 17 12:05:49 EEST 2021


I suspect this may be an inevitable result of what i am trying to do,
rather than something that can be easily improved. but would welcome any

I have a 1080p webcam, which I can join with the following command:

ffmpeg -hide_banner -f v4l2 -i /dev/video4 -an -vcodec copy -t 2 test.mp4

This works fine, but it can take ~2 seconds between issuing the command
before the stream is joined and starts to record.

I have been looking at various flags (such as nobuffer, analyseduration) -
is there anything I can do to reduce this time, other than perhaps using a
lower resolution camera?


More information about the ffmpeg-user mailing list