[FFmpeg-devel] [PATCH] Add debug facilities for avfilter.c

Stefano Sabatini stefano.sabatini-lala
Sun Oct 4 18:40:12 CEST 2009


Hi all,

these trace messages can be a real pain-saver when debugging complex
filterchains, while I believe they don't clutter the code so much.

The result in the output is something like:
avfilter_request_frame(): link[0x8f8f410 w:564 h:348 src:vflip dst:ffplay_output]: requesting frame
avfilter_request_frame(): link[0x8f8f350 w:564 h:348 src:hflip dst:vflip]: requesting frame
avfilter_request_frame(): link[0x8f8f070 w:564 h:348 src:pad dst:hflip]: requesting frame
avfilter_request_frame(): link[0x8f8ede0 w:464 h:348 src:ffplay_input dst:pad]: requesting frame
avfilter_get_video_buffer(): link[0x8f8ede0 w:464 h:348 src:ffplay_input dst:pad]: getting picref [w:464 h:348]
avfilter_get_video_buffer(): link[0x8f8f070 w:564 h:348 src:pad dst:hflip]: getting picref [w:564 h:348]
avfilter_get_video_buffer(): link[0x8f8f350 w:564 h:348 src:hflip dst:vflip]: getting picref [w:564 h:348]
avfilter_get_video_buffer(): link[0x8f8f410 w:564 h:348 src:vflip dst:ffplay_output]: getting picref [w:564 h:348]
avfilter_get_video_buffer(): link[0x8f8f410 w:564 h:348 src:vflip dst:ffplay_output]: returning picref: picref[data[0x97d16f0, 0x98025f0, 0x980e9b0, (nil)] linesize[576, 288, 288, 0] pts:0 564x348]
avfilter_get_video_buffer(): link[0x8f8f350 w:564 h:348 src:hflip dst:vflip]: returning picref: picref[data[0x98023b0, 0x980e890, 0x981ac50, (nil)] linesize[-576, -288, -288, 0] pts:0 564x348]
avfilter_get_video_buffer(): link[0x8f8f070 w:564 h:348 src:pad dst:hflip]: returning picref: picref[data[0x98023b0, 0x980e890, 0x981ac50, (nil)] linesize[-576, -288, -288, 0] pts:0 564x348]
avfilter_get_video_buffer(): link[0x8f8ede0 w:464 h:348 src:ffplay_input dst:pad]: returning picref: picref[data[0x98023b0, 0x980e890, 0x981ac50, (nil)] linesize[-576, -288, -288, 0] pts:0 564x348]
avfilter_start_frame(): link[0x8f8ede0 w:464 h:348 src:ffplay_input dst:pad]: starting frame picref[data[0x98023b0, 0x980e890, 0x981ac50, (nil)] linesize[-576, -288, -288, 0] pts:800000 564x348]
avfilter_start_frame(): link[0x8f8f070 w:564 h:348 src:pad dst:hflip]: starting frame picref[data[0x98023b0, 0x980e890, 0x981ac50, (nil)] linesize[-576, -288, -288, 0] pts:800000 564x348]
avfilter_get_video_buffer(): link[0x8f8f350 w:564 h:348 src:hflip dst:vflip]: getting picref [w:564 h:348]
avfilter_get_video_buffer(): link[0x8f8f410 w:564 h:348 src:vflip dst:ffplay_output]: getting picref [w:564 h:348]
avfilter_get_video_buffer(): link[0x8f8f410 w:564 h:348 src:vflip dst:ffplay_output]: returning picref: picref[data[0x9864450, 0x9895350, 0x98a1710, (nil)] linesize[576, 288, 288, 0] pts:0 564x348]
avfilter_get_video_buffer(): link[0x8f8f350 w:564 h:348 src:hflip dst:vflip]: returning picref: picref[data[0x9895110, 0x98a15f0, 0x98ad9b0, (nil)] linesize[-576, -288, -288, 0] pts:0 564x348]
avfilter_start_frame(): link[0x8f8f350 w:564 h:348 src:hflip dst:vflip]: starting frame picref[data[0x9895110, 0x98a15f0, 0x98ad9b0, (nil)] linesize[-576, -288, -288, 0] pts:800000 564x348]
avfilter_start_frame(): link[0x8f8f410 w:564 h:348 src:vflip dst:ffplay_output]: starting frame picref[data[0x9864450, 0x9895350, 0x98a1710, (nil)] linesize[576, 288, 288, 0] pts:800000 564x348]
avfilter_draw_slice(): link[0x8f8ede0 w:464 h:348 src:ffplay_input dst:pad]: drawing slice y:0 h:348
avfilter_draw_slice(): link[0x8f8f070 w:564 h:348 src:pad dst:hflip]: drawing slice y:0 h:348
avfilter_draw_slice(): link[0x8f8f350 w:564 h:348 src:hflip dst:vflip]: drawing slice y:0 h:348
avfilter_draw_slice(): link[0x8f8f410 w:564 h:348 src:vflip dst:ffplay_output]: drawing slice y:0 h:348

By default they are completely disabled, to enable them is sufficient to
de-comment the DEBUG symbol definition.

Regards.
-- 
FFmpeg = Funny and Fast Merciful Picky Enhancing Gospel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug-system.patch
Type: text/x-diff
Size: 3676 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091004/13b6602d/attachment.patch>



More information about the ffmpeg-devel mailing list