AW: playback H264 encoded file too fast

Nicolas Dufresne nicolas at
Tue Jul 16 01:15:58 UTC 2019

Le lundi 15 juillet 2019 à 10:22 -0500, jles a écrit :
> Hi,
> Quick update:
> I did changed the appsrc format to time, but it didn't help, still same
> issue.
> Debugging the application I've realised that if encoding the frame rate time
> is faster than the time stamp the resulting video plays too fast but in the
> other way around everything looks at normal speed.
> I think that the problem is that the camera takes a few frames (2-3) to get
> a stable fps (after that it changes the fps depending of the light) and the
> encoder takes a fix encoding frame rate from the first pushed frame into the
> pipeline. 
> E.g if for the first captured frame the rate is 40fps the encoder starts
> working at that speed regardless if the next frames are 14fps so it doesn't
> adjust speed for next captured frames even if framerate in caps and
> timestamps are updated the resulting video plays too fast....
> Any ideas how to fix this?

At this stage, you should show use more code. You really need appsrc to
in time format, otherwise it won't produce a time segment hence your
generated timestamp will have no meaning. That being said, I've
surprise it works in the first place.

> --
> Sent from:
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the gstreamer-devel mailing list