Hi there,
I'm trying to make a batch file to convert a whole load of OGM file into XviD AVIs, by searching this and afterdawns forums for scraps of code and comparing how its built with a brillaint batch file that I use to unpack bitstreams so my AVIs play on my standalone DVD player.
I'm attempting to use Mencoder, and this my code so far (which doesn't work!) -
for %%f in (*.ogm) DO ("C:\Documents and Settings\ME\mencoder.exe -oac mp3lame -ovc xvid -xvidencopts pass=1 -o" "%%f" -o "C:\OGMs TO AVIs\%%~nf.avi")
If anyone has any time to help them please let me know, and if anyone wants the code to batch unpack bitstreams for their standalones, please let me know!
Thanks
+ Reply to Thread
Results 1 to 3 of 3
-
-
How many of the post that you found were mine?
Most obvious thing is the missing "
"C:\Documents and Settings\ME\mencoder.exe
should be
"C:\Documents and Settings\ME\mencoder.exe"
Next, you have two -o's. The first one looks like the input, so it would be just "%%f"
for %%f in (*.ogm) DO ("C:\Documents and Settings\ME\mencoder.exe" -oac mp3lame -ovc xvid -xvidencopts pass=1 "%%f" -o "C:\OGMs TO AVIs\%%~nf.avi")
Also you would need to run it again for the 2nd pass. pass=2:bitrate=850, etc. In which case the 1st pass should probably be sent to NUL and you shouldn't be encoding audio.
Are you sure that the ogm's don't already have XviD video? If so then you could use -ovc copy. Also if they have multiple audio streams and you wanted the 2nd: -aid 1 with -aid 0 being default. -
Hi Celtic Druid,
Thanks for your reply! It was you who helped me with my batch file to unpack bitstreams and to this day it is working brilliantly! Thanks again!
I check my .ogm files with GSpot and it appears they do contain XviD files so I ran the code you suggested, without the unnessasry convert to XviD section and it worked perfectly, thank you!
I wasn't too sure about were to place the code for choosing which audio stream, but with the first file I tested, it worked without so hopefully its all OK.
Thanks again for your help!
Pongo
Similar Threads
-
Convert Divx to Xvid batch
By nick7461 in forum Video ConversionReplies: 8Last Post: 2nd Oct 2021, 11:37 -
how to batch convert camera video (MJPEG) to xvid?
By shun in forum Video ConversionReplies: 1Last Post: 2nd Feb 2010, 15:10 -
Tool to batch convert xvid to .mp4 for iPhone.
By Floob in forum Video ConversionReplies: 8Last Post: 14th Sep 2009, 12:20 -
Batch Convert AVI/OGM/MKV to DVD (anime)
By aktee in forum User guidesReplies: 480Last Post: 4th Nov 2007, 18:18 -
batch convert avis to cd size
By clawg in forum Video ConversionReplies: 2Last Post: 25th Jun 2007, 12:27