VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Member
    Join Date
    Nov 2005
    Location
    United States
    Search Comp PM
    For starters this is a batch file I use along with ffmpeg.exe to demux all the mp3s from its avi container:

    Code:
    dir *.avi /b >list.txt
    FOR /f %%A IN (list.txt) DO (ffmpeg -i "%%A" -acodec copy -vn "%%~nA.mp3" >nul)
    I then used MP3gain to normalize all of them.

    Now I wish to mux the mp3s back into its AVI container (which has to replace the original mp3 inside the avi). The file names match for each mp3/avi.

    I could manually do this via virtualdub and add them to a job list but that would take too long and become repetitive as I have to load each file, disable the original mp3 audio stream, add the newly modified mp3 and then add it to the job list but this would defeat the purpose of my question.

    How do I automatically mux many mp3s into its avi? Like a cli, script or batch or better yet a GUI program?

    Edit: [s:e12c35f4f2]TIA [/s:e12c35f4f2]I would really appreciate it.
    Quote Quote  
  2. Member
    Join Date
    Nov 2005
    Location
    United States
    Search Comp PM
    ATM, I devised a temporary solution to my problem with the following code:
    Code:
    for %%A in (*.avi) do ffmpeg -i "%%~nA.mp3" -acodec copy -i "%%A" -vcodec copy "%%~nA_new.avi"
    However, Gspot reports the final AVI file as AVI 1.0.

    For example, GSpot reports the original AVI file as:
    Code:
    OpenDML (AVI v2.0)
    but after the operation the resulting AVI file is:
    Code:
    AVI v1.0
    Unless it doesn't affect its playability in a standalone DivX player, I want the OpenDML feature to be retained.

    So does anyone know the ffmpeg command switch/line to make it OpenDML (AVI 2.0)?

    I would really appreciate it.
    Quote Quote  
  3. Member
    Join Date
    Nov 2005
    Location
    United States
    Search Comp PM
    I just learned that if AVI files are < 2GB, then OpenDML doesn't affect its playability in a standalone DivX player.
    Quote Quote  



Similar Threads

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