Updation of timestamp and duration
krupa.gopal at gmail.com
Tue Jul 23 09:13:28 PDT 2013
I'm trying to update timestamp and duration of the output buffer in my
decoder(aac decoder) before gst_pad_push. When playing this with alsasink
I'm able to hear audio breaks in between. When I don't update the timestamp
and duration in my decoder, alsasink plays without any audio breaks.
I'm updating duration and timestamp as follows :
GST_BUFFER_DURATION (OutBuf) =
gst_util_uint64_scale_int (samples, GST_SECOND, sample_rate);
GST_BUFFER_TIMESTAMP (OutBuf) = NextBufTs;
NextBufTs += GST_BUFFER_DURATION (OutBuf);
And my pipeline is as follows:
gst-launch-0.10 filesrc location=test.m4a ! qtdemux ! my_aacdec !
Can I please know the correct way of updating timestamp and duration?
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Updation-of-timestamp-and-duration-tp4661220.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel