VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. 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
    Quote Quote  
  2. Member
    Join Date
    Dec 2004
    Location
    Australia
    Search Comp PM
    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.
    Quote Quote  
  3. 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
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!