After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 758259 - discoverer: Add support to dump dot files
discoverer: Add support to dump dot files
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal enhancement
: 1.11.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-11-18 04:59 UTC by Vineeth
Modified: 2016-12-25 11:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
support dumping dot files for discoverer (1.38 KB, patch)
2015-11-18 05:01 UTC, Vineeth
none Details | Review
support dumping dot files for discoverer (2.96 KB, patch)
2015-11-19 00:06 UTC, Vineeth
committed Details | Review

Description Vineeth 2015-11-18 04:59:13 UTC
Would like to dump graphs while discovering files, so that we can see which pipeline is getting auto plugged for particular files.
Comment 1 Vineeth 2015-11-18 05:01:54 UTC
Created attachment 315803 [details] [review]
support dumping dot files for discoverer
Comment 2 Sebastian Dröge (slomo) 2015-11-18 07:57:21 UTC
Makes sense to me, but you might also want to dump graphs on warning messages. And maybe instead of async-done, whenever GstDiscoverer does finish... iirc that's not only async-done but also (for sparse streams) earlier.
Comment 3 Vineeth 2015-11-19 00:06:16 UTC
Created attachment 315862 [details] [review]
support dumping dot files for discoverer

Added handling of warning messages.
In case of subtitles, DiscovererDone will be posted. And the same will be received in message handler.

So for all cases when done == TRUE is posted and during warning messages dumping graphs.


Please review
Comment 4 Vineeth 2015-12-22 06:24:39 UTC
ping :)
Comment 5 Sebastian Dröge (slomo) 2015-12-22 09:07:38 UTC
Comment on attachment 315862 [details] [review]
support dumping dot files for discoverer

One thing that I don't like about this is that we usually only do this kind of stuff in the commandline tools and not in library API. Not sure if that's a problem here or not, I'd like to have a second opinion.

Apart from that the patch is good.
Comment 6 Tim-Philipp Müller 2015-12-22 15:47:03 UTC
I don't know, what's special about discoverer? Perhaps we should rather add some general hooks somewhere when an ERROR or ASYNC_DONE messages is posted so all pipelines benefit?
Comment 7 Olivier Crête 2016-01-12 18:20:17 UTC
If we want to put it in something very generic (like in GstBus or something), then it would need to be another env variable.. That said, I'm quite favorable to adding patches like the above to various utility APIs that create pipeliens internally.
Comment 8 Tim-Philipp Müller 2016-01-13 00:03:22 UTC
Well, perhaps you should push it then because for me it's WONTFIX until someone figures out something nicer / more generic :)

Also, why don't we just put the GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS() in the code directly in the couple of places instead of that dump_name thing?
Comment 9 Tim-Philipp Müller 2016-01-13 00:06:30 UTC
(In the rare case where you need to debug something discoverer related you might just as well us gst-launch with uridecodebin ! fakesink, which is pretty much what discoverer does internally, no?)
Comment 10 Vineeth 2016-02-17 07:00:34 UTC
it is a little bit different from 'gst-launch with uridecodebin ! fakesink' in the sense that discover does not go through the whole file...

and discover is simpler to use :)

having dot file generation for discover will be a little extra help while debugging and to examine how elements are auto plugged..

But as said a more generic addition might be better instead of adding in different tools.
Comment 11 Sebastian Dröge (slomo) 2016-02-17 08:54:17 UTC
Olivier?
Comment 12 Olivier Crête 2016-03-17 21:12:59 UTC
I'd say ++, unless Tim insists on something generic.
Comment 13 Tim-Philipp Müller 2016-03-17 21:30:20 UTC
Nah, it's all good. Can still change it if we ever decide to do something generic.
Comment 14 Tim-Philipp Müller 2016-12-25 11:53:51 UTC
commit c0a18df468a515d985cdc5dfc208d4866ded5101
Author: Vineeth TM <vineeth.tm@samsung.com>
Date:   Wed Nov 18 13:59:30 2015 +0900

    discoverer: Add support to dump dot files
    
    Dump graphs during error/warning messages and discover is done
    
    https://bugzilla.gnome.org/show_bug.cgi?id=758259