VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Hi, I have many avi files that I need to add mp3 audio to.

    The avi files and the mp3 files all have the same names, I just want to mux in the mp3 audio to the avi file, which currently has no audio.

    I have over 100 files, so a batch process would be best if possible, and since I'm keeping the exact same audio and video, I don't think I need to re-encode at all.

    I tried using Mencoder with a dos batch file and this command line, but it dosent work. Can someone suggest a good application for what I need, or the proper Mencoder command line? (remember there is like over 100 avi and mp3 all with the exact same name in the same directory)

    Thanks.. Below is my Mencoder code in the batch file :

    mencoder.exe %1.avi -o "%~dpn1.avi" -ovc copy -oac copy -audiofile %1.mp3

    and I run the batch file by entering on the command prompt :

    batch-filename.bat *
    Quote Quote  
  2. Member
    Join Date
    Dec 2004
    Location
    Australia
    Search Comp PM
    Try something like:
    for %%f in (*.avi) DO (mencoder.exe -ovc copy -oac copy "%%f" -audiofile"%%~nf.mp3" -o "%%~nf1.avi")
    Quote Quote  
  3. Hi, thanks for the suggestion !

    I tried the command line you suggested in a batch file, by running on the commandline "batchfile.bat *" however I only get one output file named ".avi"

    Also it looks like the file is being re-encoded, as the output file is longer than the original avi file, and does not sync with the music at all.

    There must be SOME tool out there that can just mux a whole bunch of files together on one shot ????
    Quote Quote  
  4. Member
    Join Date
    Dec 2004
    Location
    Australia
    Search Comp PM
    I just tested it and it works ok, well other than VDubMod detected something wrong with the mp3. You may need to specify some extra options to make sure that the mp3 gets muxed properly.

    Only issue I found was that I left a space (after -audiofile) out of the above command. But I assume that you noticed that to?
    Quote Quote  



Similar Threads

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