jdlk
4th March 2007, 19:20
I recently decided I had to get organised about encoding all my recordings, and the only way I'm ever going to do that is with an automated process using command line scripts.
I started by using DIVX via the Dr. Divx command line (cli.exe) and that does what it says on the tin. The heart of my script is a simple one line command:
for %%i in (*.mpg) do "C:\Program Files\blah\cli.exe" -i "%%~dpi%%i" -o "%%~dpi%%~ni.avi" -x profile.xml(where -x calls a profile saved in the Dr Divx GUI)
About the same time I started testing Xvid, and came to the conclusion that, for my eyes and equipment (I'm being careful here), Xvid offers better quality per byte than Divx.
So I started investigating Xvid command line options. Maybe it's just me, but...three frustrating evenings later, I've tried the following:
FFMPEG: works fine, but produces files that won't play on my media server no matter what commands I use (they do play on my PC). Another thread (http://forum.doom9.org/showthread.php?t=120904) suggests that it is a problem with bad headers, and using the tests in that thread confirmed this. Different builds didn't help, but using the same builds through various GUIs with the same settings produced compliant encodes. Strange.
Mencoder: Using two-pass I consistently had an "oversize" problem, and no amount of changing commandline options (using the advice in this forum), or builds, would solve it. One-pass CQ does work, though.
Encraw: this may just be me being stupid, but I couldn't find a way in encraw to deal with audio - it appeared to offer video output only. I'm looking for a one-shot program.
Staxrip: works well via the command line, but throws out error messages all the time. Although it's encoding properly, the error messages freeze Staxrip eventually, and make it unsuitable for batches. There doesn't seem to be a "suppress errors" option.
So from the four most suggested command line options in this forum, I can only get Mencoder working properly, and then only with one pass.
I'd love to know if any of you who have gone along the same path have found a better option, or have had more success with the above programs. For now, I'm back, semi-reluctantly, to Dr Divx.
I started by using DIVX via the Dr. Divx command line (cli.exe) and that does what it says on the tin. The heart of my script is a simple one line command:
for %%i in (*.mpg) do "C:\Program Files\blah\cli.exe" -i "%%~dpi%%i" -o "%%~dpi%%~ni.avi" -x profile.xml(where -x calls a profile saved in the Dr Divx GUI)
About the same time I started testing Xvid, and came to the conclusion that, for my eyes and equipment (I'm being careful here), Xvid offers better quality per byte than Divx.
So I started investigating Xvid command line options. Maybe it's just me, but...three frustrating evenings later, I've tried the following:
FFMPEG: works fine, but produces files that won't play on my media server no matter what commands I use (they do play on my PC). Another thread (http://forum.doom9.org/showthread.php?t=120904) suggests that it is a problem with bad headers, and using the tests in that thread confirmed this. Different builds didn't help, but using the same builds through various GUIs with the same settings produced compliant encodes. Strange.
Mencoder: Using two-pass I consistently had an "oversize" problem, and no amount of changing commandline options (using the advice in this forum), or builds, would solve it. One-pass CQ does work, though.
Encraw: this may just be me being stupid, but I couldn't find a way in encraw to deal with audio - it appeared to offer video output only. I'm looking for a one-shot program.
Staxrip: works well via the command line, but throws out error messages all the time. Although it's encoding properly, the error messages freeze Staxrip eventually, and make it unsuitable for batches. There doesn't seem to be a "suppress errors" option.
So from the four most suggested command line options in this forum, I can only get Mencoder working properly, and then only with one pass.
I'd love to know if any of you who have gone along the same path have found a better option, or have had more success with the above programs. For now, I'm back, semi-reluctantly, to Dr Divx.