PDA

View Full Version : Can I redirect x264 cli message to a text file ?


neosimba
6th December 2005, 02:57
I am using x264.exe, and I found I cannot use either ">log.txt" or even "|log.txt" to obtain the output message.
I want to record the message when I use a .bat file to encoder many files and simply add "shutdown -s" in the end when my PC works along.

Will Sharktooth add this function or is there a other way ?

Sirber
6th December 2005, 03:12
Whitout using a GUI it's not very possible...

neosimba
6th December 2005, 03:31
Me-GUI always add --no-psnr
But I just want to get the PSNR message. (collecting psnr won't take much time,right ?)
Can I tweak Me-GUI ?

Still,I am not sure whether Me-GUI can save the output as I didn't use it yet.
_______________

I have run the test. Me-GUI can save the log, job1.xml can be simply edited.
However, ME-GUI only save log on exit, what if Me-GUI was crashed or the electricity was shut down ?
Is it just because MinGW doesn't support the difference between "cout" and "cerr" in c++ ? All the output are treated as through cerr ?
So is there any GUI can just record the cerr output to file ?

foxyshadis
6th December 2005, 04:20
Did you try "2>log.txt"? x264 uses the error stream for output. I just tested and it works.

This Microsoft page (http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx) might interest you.

neosimba
6th December 2005, 05:26
Thank you!

I am searching for a commen GUI and you broght me back to my favorite CLI. ^-^

Doom9
6th December 2005, 09:20
After creating jobs, you can always exit MeGUI, open job*.xml, and edit the commandline. However, this only works if you're not in auto/one click mode because there the bitrate has to be adjusted and thus the commandline will be re-created. But I find PSNR pretty darned useless. MeGUI suppresses messages that are not important.. the above will give you a long list of text with status update messages.. in the end it won't look at all like what you see on the commandline because there each status update is written over the next one.