AW: playback H264 encoded file too fast

Nicolas Dufresne nicolas at ndufresne.ca
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 ...so 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: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- 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: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190715/07e07d79/attachment.sig>


More information about the gstreamer-devel mailing list