为什么ffdec_h264不在gstreamer中提供调试信息?

时间:2013-01-15 09:31:31

标签: c plugins h.264 gstreamer

我正在研究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的调试报告。命令的管道表示是

enter image description here

我的问题是上面的命令显示了有关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解码插件

请你回复

1 个答案:

答案 0 :(得分:0)

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