How to retrieve attached custom meta information on receiver side?

bronstein87 bumatov at gmail.com
Wed Mar 18 18:47:34 UTC 2020


Hi. Thanks for your answer. I decided to add meta info to rtp header. So i
have  pipeline:

( appsrc name=vsrc ! nvvidconv ! video/x-raw(memory:NVMM),format=NV12 !
omxh265enc MeasureEncoderLatency=true bitrate=20000000 control-rate=2 !
rtph265pay name=pay0 pt=96 )
If i correctly understood i need to set a probe at rtph265pay 'src' pad and
change GstRtpBuffer header there. So i added test probe, but it never gets
inside

static GstPadProbeReturntest_probe (GstPad *pad, GstPadProbeInfo *info,
gpointer user_data)
{ 
GstBuffer *buffer; 
buffer = GST_PAD_PROBE_INFO_BUFFER (info);
buffer = gst_buffer_make_writable (buffer); 
qDebug() << "probe works" << buffer;
 return GST_PAD_PROBE_OK;
}
void mediaConfigure (GstRTSPMediaFactory* factory, GstRTSPMedia* media,
gpointer user_data)
{ 
GstElement *element, *rtph265pay; GstPad *pad; 
element = gst_rtsp_media_get_element (media); 
rtph265pay = gst_bin_get_by_name_recurse_up (GST_BIN (element), "pay0"); 
qDebug() << "GET PAY" << rtph265pay;
 pad = gst_element_get_static_pad (rtph265pay, "src"); 
qDebug() << "GET PAD" << pad; 
qDebug() << gst_pad_add_probe (pad, GST_PAD_PROBE_TYPE_BUFFER,
(GstPadProbeCallback) test_probe, NULL, NULL); 
gst_object_unref (pad);
}

If i set "sink" instead of "src", probe works, but i need "src", correct?
What is wrong here?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list