probe after rtph265pay never called

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

probe after rtph265pay never called

Hi, i have rtsp server and i want to change rtp buffer header. For this purpose i added probe to src of  rtph265pay, but it never called. My 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 ) 

Code where i attach probe:

static GstPadProbeReturn test_probe (GstPad *pad, GstPadProbeInfo *info,
gpointer user_data)
    cout << "i'm here";

 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");
        pad = gst_element_get_static_pad (rtph265pay, "src");
        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" to change rtp buffer header...
What is wrong here?  

gstreamer-devel mailing list
[hidden email]