Recent versions of GStreamer have the ability to list the elements contained in a pipeline and their connections to a dot file. Dot files are used by GraphViz to create graphs in PNG, postscript, or other formats.

Dumping a simple GStreamer pipeline:

 

GST_DEBUG_DUMP_DOT_DIR=~/tmp/ gst-launch videotestsrc ! xvimagesink

This created three files for each of the transitions between element states:

 

0:00:00.060896159-gst-launch.NULL_READY.dot
0:00:00.066840070-gst-launch.READY_PAUSED.dot
0:00:00.073951462-gst-launch.PAUSED_PLAYING.dot

The actual filenames may vary.

Converting the dot files to PNG files:

 

  dot ~/tmp/0\:00\:00.073951462-gst-launch.PAUSED_PLAYING.dot -Tpng -o out.png
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 丘猴子 的頭像
    丘猴子

    轉貼部落格

    丘猴子 發表在 痞客邦 留言(0) 人氣()