AW: AW: AW: Gstreamer output to a buffer then file On Jetson tegra Tx2
Thornton, Keith
keith.thornton at zeiss.com
Fri Feb 2 13:46:22 UTC 2018
Hi, I'm afraid I can't see how you are attempting to sync your audio with your vidour video PTS is ok incrementing every 33 ms. Does your audio start at the same time, what is the sampling rate and who is supplying the pts for your audio?
-----Ursprüngliche Nachricht-----
Von: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] Im Auftrag von aasim
Gesendet: Freitag, 2. Februar 2018 14:03
An: gstreamer-devel at lists.freedesktop.org
Betreff: Re: AW: AW: Gstreamer output to a buffer then file On Jetson tegra Tx2
Hi Thornton,
I am finding difficulty in in syncing audio and video , i want mp4 output but not able to use mp4 muxers, because its not going in on_new_sample_from_sink function itself where i am getting mux data & writing it to in file.
Kindly help, i Have attached the file also reference. main.cpp
<http://gstreamer-devel.966125.n4.nabble.com/file/t378175/main.cpp>
Thanks in advance
In the function encoderCapturePlaneDqCallback i am setting PTS & in this function only i am filling data in appsrc.
gstbuf->pts = thiz->timestamp;
thiz->timestamp += 33333333; // ns
gst_buffer_map (gstbuf, &map, GST_MAP_WRITE);
memcpy(map.data, buffer->planes[0].data , buffer->planes[0].bytesused);
gst_buffer_unmap(gstbuf, &map);
g_signal_emit_by_name (thiz->m_appsrc_, "push-buffer", gstbuf, &ret);
Regards,
Aasim
--
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