[Libav-user] Video latency and GOP size

Paul Roberts paul_e_roberts at hotmail.com
Sat Jun 30 10:32:48 CEST 2012


I am encoding live frames from an IP camera to H.264 but have found that it takes at least as many frames as the GOP size to be passed in before anything actually comes out of the encoder.

This is a problem if the camera is streaming slowly because say I have the GOP set to 10, if the camera is sending 1 frame a second it will be 10 seconds before I get any encoded video out which is too long a delay.

Is there any way to ensure that the first frame I pass to the encoder is encoded and passed out straight out? (without changing the GOP to 1)

Thanks in advance,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120630/5846c1c4/attachment.html>

More information about the Libav-user mailing list