How to debug appsink program can show the debug info like GST_DEBUG=4 gst-launch-1.0 --gst-debug="*CAPS*:5"?

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

How to debug appsink program can show the debug info like GST_DEBUG=4 gst-launch-1.0 --gst-debug="*CAPS*:5"?

Erickson.LU
This post was updated on .
The first phenomenon is that I can use the pipeline

```GST_DEBUG=4 gst-launch-1.0 --gst-debug="*CAPS*:5" v4l2src io-mode=1 device=/dev/video0 ! videoconvert ! video/x-raw, width=(int)640, height=(int)480, format=(string)I420" ! x265enc speed-preset=5 log-level=3 tune=4 ! rtph265pay ssrc=1 pt=96 config-interval=5 sprop-parameter-sets="12345" ! udpsink host=127.0.0.1 port=3220 sync=false async=false```

or

```GST_DEBUG=4 gst-launch-1.0 --gst-debug="*CAPS*:5" videotestsrc ! video/x- raw,format=I420,height=480,width=640,framerate=30/1,pixel-aspect-ratio=1/1 ! x265enc ! rtph265pay ssrc=1 pt=96 config-interval=5 sprop-parameter-sets=12345 ! udpsink clients=127.0.0.1:3220 sync=false async=false```

streaming out and receive it at local by my appsink_program.

But if I use that and replace the address by 192.168.1.7, ps the pipeline run at 192.168.1.8, and the gateway I set is 192.168.1.7, which is the machine run my appsink_program.

And then if I run the program at 192.168.1.7, the appsink_program will error by Internal data flow error and the appsink call its eos callback.The GstMessage show that udpsrc in appsink error: Internal data flow error..but it will be ok at loacl 127.0.0.1.

To be honest, I want to debug it, but I don't know how can I do that seems my ...and where the appsink callback wrong, even though it can run functional at local.
So, I use  gst_bus_add_watch(bus_,(GstBusFunc)GstUdpsrc2AppSink::GstMessageParser, this);
and implement GstMessageParser and the msg debug info in GstMessage is too short as it just show the error at gstbasesrc.c(2948):gst_base_src_loop():/GstPipeline:pipeline0/GstUDPSrc:udpsrc0:streaming
task paused, reason not-negotiated(-4).

I need some method to show the debug info like GST_DEBUG=4 gst-launch-1.0 --gst-debug="*CAPS*:5" can give me, How can I do that in my appsink program, Thanks....



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel