AW: playback H264 encoded file too fast

Thornton, Keith keith.thornton at
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> Im Auftrag von jles
Gesendet: Donnerstag, 11. Juli 2019 10:56
An: gstreamer-devel at
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:
gstreamer-devel mailing list
gstreamer-devel at

More information about the gstreamer-devel mailing list