[FFmpeg-user] Reidrecting showinfo output

Tim Nicholson tim.nicholson at bbc.co.uk
Fri Dec 2 12:58:51 CET 2011


On 02/12/11 09:17, Andy Sheen wrote:
>
> Tim Nicholson wrote on Fri 02 Dec at 8:40 UK time
>> I find the showinfo output useful for various diagnostic tasks, but
>> would find it more so if I could redirect its output to file.
>>
>> I have tried the following:-
>>
>> ffmpeg -i infile -vf showinfo -f mp4 -an -c:v copy -y /dev/null 2>  info.txt
>>
>> with variations on 1>, 2>  &>  | tee etc
>>
>> However I either get nothing or just the usual ffmpeg header info, and
>> when nothing goes to file I get no console output either.
>>
>> Is there a way of achieving this?
>
> The generic way of redirecting everything is:
>
> ffmpeg command>  info.txt 2>&1
>
> i.e. redirect stdout and then map stderr to stdout with the 2>&1

As I said I tried the standard variations, which included merging stderr 
and stdout. However by default ffmpeg console messages are on stderr 
(stdout can be used for piping its output to something else). The 
showinfo lines however are not.

-- 
Tim

http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
					


More information about the ffmpeg-user mailing list