1

我正在 gstreamer 上进行多媒体应用程序调试,并且正在使用GST_DEBUG选项进行调试。例如下面的命令

GST_DEBUG=filesrc:5, qtdemux:5, ffdec_h264:5 gst-launch filesrc location=data/bdmp4/rihanna0.mp4 ! qtdemux name=demuxer demuxer. ! queue ! faad ! audioconvert ! audioresample ! autoaudiosink demuxer. ! queue ! ffdec_h264 ! ffmpegcolorspace ! autovideosink

将对输入的 mp4 文件进行解码,同时生成有关 gstreamer 插件qtdemuxfilesrcffdec_h264. 该命令的管道表示是

在此处输入图像描述

我的问题是上面的命令显示了有关插件的调试信息qtdemuxfilesrc如下所示

0:00:00.018162514 [334m12243[00m      0x219a4f0 [32;01mINFO   [00m [00m                 filesrc gstfilesrc.c:374:gst_file_src_set_location:[00m filename : data/bdmp4/rihanna0.mp4
0:00:00.018222356 [334m12243[00m      0x219a4f0 [32;01mINFO   [00m [00m               filesrc gstfilesrc.c:375:gst_file_src_set_location:[00m uri      :     file:///home/leonzo/Documents/workspace/videc/videcoframework/data/bdmp4/rihanna0.mp4
0:00:00.062045799 [334m12243[00m      0x219a4f0 [32;01mINFO   [00m [00m             filesrc gstfilesrc.c:969:gst_file_src_start:<filesrc0>[00m opening file data/bdmp4/rihanna0.mp4
0:00:00.062195045 [334m12243[00m      0x219a4f0 [32;01mINFO   [00m [00m             filesrc gstfilesrc.c:969:gst_file_src_start:<filesrc0>[00m opening file data/bdmp4/rihanna0.mp4
0:00:00.062564845 [334m12243[00m      0x2415c50 [37mLOG    [00m [00m             qtdemux qtdemux.c:3810:gst_qtdemux_loop:<demuxer>[00m loop at position 0, state 0
0:00:00.062671771 [334m12243[00m      0x2415c50 [37mLOG    [00m [00m             filesrc gstfilesrc.c:829:gst_file_src_create_read:<filesrc0>[00m Reading 16 bytes at offset 0x0
0:00:00.062717752 [334m12243[00m      0x2415c50 [36mDEBUG  [00m [00m             qtdemux qtdemux.c:1982:extract_initial_length_and_fourcc:[00m length 0x00000018
0:00:00.062746012 [334m12243[00m      0x2415c50 [36mDEBUG  [00m [00m             qtdemux qtdemux.c:1984:extract_initial_length_and_fourcc:[00m atom type ftyp
0:00:00.062782358 [334m12243[00m      0x2415c50 [37mLOG    [00m [00m             filesrc gstfilesrc.c:829:gst_file_src_create_read:<filesrc0>[00m Reading 24 bytes at offset 0x0
0:00:00.062808183 [334m12243[00m      0x2415c50 [36mDEBUG  [00m [00m             qtdemux qtdemux.c:1911:qtdemux_parse_ftyp:<demuxer>[00m major brand: mp42
0:00:00.062831369 [334m12243[00m      0x2415c50 [37mLOG    [00m [00m             qtdemux qtdemux.c:3810:gst_qtdemux_loop:<demuxer>[00m loop at position 24, state 0
0:00:00.062854234 [334m12243[00m      0x2415c50 [37mLOG    [00m [00m             filesrc gstfilesrc.c:829:gst_file_src_create_read:<filesrc0>[00m Reading 16 bytes at offset 0x18
0:00:00.062888181 [334m12243[00m      0x2415c50 [36mDEBUG  [00m [00m             qtdemux qtdemux.c:1982:extract_initial_length_and_fourcc:[00m length 0x024a4f05
0:00:00.062904672 [334m12243[00m      0x2415c50 [36mDEBUG  [00m [00m             qtdemux qtdemux.c:1984:extract_initial_length_and_fourcc:[00m atom type mdat
0:00:00.062922459 [334m12243[00m      0x2415c50 [37mLOG    [00m [00m             qtdemux 
....

但它没有给出关于ffdec_h264插件的任何调试报告。

如何开启插件调试ffdec_h264?或者是否有另一个接受调试的 h264 gstreamer 解码插件

谢谢你的任何回复

4

1 回答 1

0

ffdec_h264 没有自己的调试类别。所有gstffmpeg元素的类别都是ffmpeg,所以你可以做ffmpeg:5,或者我做的*ff*:5

于 2013-06-26T20:40:23.203 回答