[FFmpeg-devel] [PATCH] ffprobe: Support adding av_log output to frames

Michael Niedermayer michael at niedermayer.cc
Wed Jun 8 18:30:31 CEST 2016


On Tue, Jun 07, 2016 at 08:06:35PM -0400, Dave Rice wrote:
> 
> > On May 31, 2016, at 3:23 PM, Michael Niedermayer <michael at niedermayer.cc> wrote:
> > 
> > adding demuxer and other logs should be easy
> > This forces single threaded decoding for simplicity
> > It also requires pthreads, this could be avoided either with
> > some lockless tricks or simply by assuming av_log would never be called from
> > another thread.
> 
> I’ve been testing this patch, but currently the logging does not appear within the log node. For instance with a fuzzed mpeg2video in QuickTime when I run:
> 
> ./ffprobe -i /Users/davidrice/fuzzed_mpeg2video.mov -show_log 1 -show_frames -of xml
[...]
>
> When the mpeg2video decoding log appears in sdterr, then the <logs> node is written but empty. During a frame when there is no logged message, there is no <logs> node.
> 
> Also I’m uncertain what the value to use with -show_log means. I’m using -show_log 1 for now. Is this for verbosity?

you need to set the log level in -show_log high enough so the messages
that you are interrested in are included

all messages are still printed to stderr too, maybe that is confusing
but feels consistent behavior

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you think the mosad wants you dead since a long time then you are either
wrong or dead since a long time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160608/63c7656e/attachment.sig>


More information about the ffmpeg-devel mailing list