can anyone tell me how to write ffmpeg output into text file in windows

4,437 views
Skip to first unread message

xhe

unread,
Jun 6, 2008, 10:36:53 PM6/6/08
to ffmpeg-php
I want to run this one in windows:
ffmpeg -i filename > test.txt
because I want to parse the output and find out movie dimension.
If I use ffmepg -i filename 2>test.txt, it can accurately output in
linux. But in windows, the output file is empty.

Can anyone tell me how to use ffmpeg redirect in windows to write
output into a text file?

Thanks

fayazmiraz

unread,
Jun 8, 2008, 4:05:41 AM6/8/08
to ffmpeg-php
Hi,

I actually always got output with the command: "ffmepg -i filename
2>test.txt" in winxp.

may be your test.txt was not writable.

OR,

You can try to output both STDOUT and STDERR
"ffmepg -i filename 1>test1.txt 2>test2.txt"

fayazmiraz

unread,
Jun 8, 2008, 4:38:36 AM6/8/08
to ffmpeg-php
oops, *ffmpeg

xhe

unread,
Jun 8, 2008, 10:59:58 AM6/8/08
to ffmpeg-php
great! Thanks.

I see orginally I only used ffmepg -i filename > test.txt

checked all the documents for widnows redirect, they never mentioned
about using 2>test.txt

seemed they accept linux format also.
Reply all
Reply to author
Forward
0 new messages