AW: playback H264 encoded file too fast

Thornton, Keith keith.thornton at zeiss.com
Thu Jul 11 09:21:40 UTC 2019


Hi, The timestamps are added by the muxer to the file. Try adding qtmux or mp4mux to your pipeline and writing an mp4 file.
You might also need an h264parser to force the output to stream-format=avc if your encoder produces stream-format=byte-stream
 

-----Urspr√ľngliche Nachricht-----
Von: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> Im Auftrag von jles
Gesendet: Donnerstag, 11. Juli 2019 10:56
An: gstreamer-devel at lists.freedesktop.org
Betreff: Re: playback H264 encoded file too fast

Hi Vinod,

Thanks for your answer. I'd like to understand this better....

I'm already adding timestamps:
       (........)
        g_object_set(G_OBJECT(appsrc), "do-timestamp", TRUE, NULL);
       (........)
	GST_BUFFER_PTS (buffer) = timestamp;
	GST_BUFFER_DURATION (buffer) = gst_util_uint64_scale_int (1, GST_SECOND,
(guint8) fps);
	timestamp += GST_BUFFER_DURATION (buffer);

What happens with them? are they deleted during H264 encoding?

I'm using a hardware video codec unit, and only allows H264/H265 compression, if the above is true, what would it be the best way to add the timestamps after encoding?



--
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


More information about the gstreamer-devel mailing list