[Ffmpeg-devel] [PATCH] avutil/log output

Roine Gustafsson roine
Thu Oct 19 07:15:17 CEST 2006


On Oct 19, 2006, at 8:10 AM, Alexey Sidelnikov wrote:

> When I'm working with ffmpeg, sometimes I have to tune supported  
> codecs,
> formats and so on. The most convinient way for me to check the  
> formats, for
> example, is
>
> ffmpeg -formats > formats.txt
>
> In the same manner I used to save help file:
>
> ffmpeg > help.txt
>
> But recently I noticed that not all help info gets into the file,  
> something
> was still output into console. That is because "old" help uses just
> printf(), but new one - av_log(..., AV_LOG_INFO, ...). But av_log()  
> always
> output everything into stderr, when printf() - into stdout. So I  
> just fixed
> that in av_log() file, + changed #define AV_LOG_... into enum. Any
> objections?

Outputting log info to STDOUT will prevent piping ffmpeg output, ie
ffmpeg ... -o - | yuv4mpeg ...

If you want to save the STDERR output, redirect it like
ffmpeg -formats > formats.txt  2>&1

   Roine




More information about the ffmpeg-devel mailing list