AW: AW: Gstreamer output to a buffer then file On Jetson tegra Tx2
aasim
mdamirraza at gmail.com
Fri Feb 2 13:03:04 UTC 2018
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/
More information about the gstreamer-devel
mailing list