INDEX  F.A.Q.  SEARCH  LATEST POSTS     Rules  Register  Profile  Private messages  Login


Login:   Username:  Password:   Log me on automatically    
Register I forgot my password I forgot my username Resend the activation key

How do I automatically mux many mp3s into its avi?

Forum Index -> Video -> Newbie / General discussions Printer-friendly version
Reply to topic
Author Message
Stealth3si
Member


Joined: 03 Nov 2005
Location: United States

Post Posted: Nov 03, 2009 05:02 Posts Comp View users profile Send private message Reply with quote

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: TIA I would really appreciate it. biggrin.gif


Last edited by Stealth3si on Nov 03, 2009 18:21, edited 1 time in total


Stealth3si
Member


Joined: 03 Nov 2005
Location: United States

Post Posted: Nov 03, 2009 14:41 Posts Comp View users profile Send private message Reply with quote

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. biggrin.gif


Stealth3si
Member


Joined: 03 Nov 2005
Location: United States

Post Posted: Nov 03, 2009 23:44 Posts Comp View users profile Send private message Reply with quote

I just learned that if AVI files are < 2GB, then OpenDML doesn't affect its playability in a standalone DivX player.

Reply to topic All times are GMT - 6 Hours
Forum Index -> Video -> Newbie / General discussions Page 1 of 1





You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Jump to:  
Display:   
Replay Media Catcher lets you record ANY streaming video and save on your computer! More info or download trial!
About   Advertise   Forum Archive   RSS Feeds   Statistics