dynamic pipeline -- notify errors during negotiations

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

dynamic pipeline -- notify errors during negotiations

GStreamer-devel mailing list
Hi all,

I have tuned a pipeline to creatrez it dynamically.
That is, a specific demuxer is chosen ,and as its pad is added, the
respective parser decoder are created and linked.

What I'd need to achieve, is to notify the program (that lives in its thread
I assume) if an error occured, or if a specific fortmat could not be
negotiated.

I'm just wondering if there are some good pratices to follow ?
Should I use custom event to send to the bus ?

Karim



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: dynamic pipeline -- notify errors during negotiations

GStreamer-devel mailing list
Hi I am no pro but I can tell you what I have found thus far.

My assumption is that you already have a a bus signal watch?

gst_bus_add_signal_watch(pipeline.bus);

you can have a look at the tutorials for setting up the bus and a callback
for error messages

https://gstreamer.freedesktop.org/documentation/tutorials/basic/short-cutting-the-pipeline.html?gi-language=c
https://gstreamer.freedesktop.org/documentation/tutorials/basic/toolkit-integration.html?gi-language=c

What I did was also create a .dot file where the Gst_error_cb callback is
called to then be able to see what the pipeline looked like when it had an
error.

But something I didn't quite catch from the tutorials was the setting of
environment paths to change debug level and also have the debug output to a
file.

https://gstreamer.freedesktop.org/documentation/tutorials/basic/debugging-tools.html?gi-language=c
https://gstreamer.freedesktop.org/documentation/gstreamer/running.html?gi-language=c

on linux
```
export GST_DEBUG=4 (or whatever level you want)
export GST_DEBUG_FILE=/tmp/error.log (don't do this if you just want to see
the errors as they happen and have pretty colours etc)
```

I hope this helps
Nick



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