Hi
I would like to have avidemux take an avi file, replace the audio with another mp3 file and, of course, output a new avi file with only the inputted mp3 audio, the same way mkvtoolnix works with mkv files.
I download old tv series and movies for old people to view and some, particularly Afred Hitchcock's series are only in avi.
I took visual basic in 1996 when I was very young at 53, but I have never written a batch file.
If someone could guide me or steer me to a place where I can learn, I would share some of my delicious homemade wine (if you are close enough) or else name one of my delicious homemade wine batches after him/her.
i also thank you very much.
Lorne
+ Reply to Thread
Results 1 to 3 of 3
-
-
You have to explain exactly what you want to do, e.g. why the output has to be an avi, which other mp3 should replace the original audio (length and sync problems), why you want to replace the original audio etc.
We also need details about the source files.
Post a mediainfo report (text mode) of such an avi here. -
Using ffmpeg.exe. All avi & mp3 files in the same folder with ffmpeg.
AddnewMP3.cmdCode:if not exist New\ md New for %%a in ("*.mp3") do if exist "%%~na.avi" ffmpeg.exe -i "%%~na.avi" -i "%%a" -map 0:v -map 1:a -bsf:v h264_mp4toannexb -c:v copy -c:a copy -y "New\%%~na.avi" echo Output is in the New\ folder &pause
Cheers.
EDIT: If you have problems playing the output avi try running the batch file again AFTER removing -bsf:v h264_mp4toannexb
This bitstream filter can cause problems with some playersLast edited by pcspeak; 23rd May 2024 at 16:52.
Similar Threads
-
How do I add a silent switch to this Avidemux batch file process?
By Dolphine in forum Newbie / General discussionsReplies: 7Last Post: 20th Mar 2024, 12:17 -
How to batch resize AND append multiple videos in Avidemux?
By savvyguy in forum Newbie / General discussionsReplies: 6Last Post: 28th Jul 2021, 18:00 -
AviDemux: Batch Convert Audio and Video Problem
By chucknolan in forum Video ConversionReplies: 12Last Post: 17th Mar 2021, 10:55 -
MP4 File Re-Sync Batch Conversion (Avidemux?)
By lplp in forum Video ConversionReplies: 1Last Post: 20th Sep 2019, 23:47 -
has there EVER been a solution to Avidemux's no batch problem?
By KneeRow in forum Video ConversionReplies: 1Last Post: 23rd Aug 2019, 14:28