I have numerous AVI files that have 2 audio tracks, I want to remove 1 of the audio tracks, save it as MP4 and correct the 500ms audio offset. Usually I use Handbrake and thats the only program I really know well. However for some reason you can't batch remove audio tracks with Handbrake, it will do the first one properly then default for the rest. Apparently it's a known issue, or "feature".... but I digress.
My point is I'm coming as a total n00b to Avidemux. I'm trying to figure out how to make the changes I described to all the files in a folder in one quick batch. I've got so far as to generate the below Project Script, but I don't understand how to run it. Can anyone with experience assist?
PHP Code:
#PY <- Needed to identify #
#--automatically built--
adm = Avidemux()
adm.loadVideo("/Users/Me/Desktop/ATHF_S1/ATHF-S01E01.avi")
adm.clearSegments()
adm.addSegment(0, 0, 1290872916)
adm.markerA = 0
adm.markerB = 1290872916
adm.videoCodec("Copy")
adm.audioClearTracks()
adm.setSourceTrackLanguage(0,"unknown")
adm.setSourceTrackLanguage(1,"und")
adm.audioAddTrack(1)
adm.audioCodec(0, "copy");
adm.audioSetDrc(0, 0)
adm.audioSetShift(0, 1,500)
adm.setContainer("MP4V2", "optimize=0", "add_itunes_metadata=0")
+ Reply to Thread
Results 1 to 2 of 2
-
information wants to be free
-
I pieced it together from the below video, good luck to everyone else attempting to do the same.
https://youtu.be/pxMeIU-ghXYinformation wants to be free
Similar Threads
-
Tsmuxer Batch Processing
By ron spencer in forum Video ConversionReplies: 2Last Post: 20th Apr 2016, 18:01 -
[BATCH PROCESSING] how to replace CHOOSE.EXE in a batch routine?
By marcorocchini in forum Newbie / General discussionsReplies: 3Last Post: 10th Nov 2015, 03:33 -
Batch processing of audio
By BobAchgill in forum AudioReplies: 1Last Post: 2nd Apr 2015, 14:36 -
Batch processing in Avidemux 2.6
By tokintmash in forum Video ConversionReplies: 1Last Post: 21st Jan 2015, 04:24 -
AVidemux batch processing script for SRT's (Linux)
By 23red in forum SubtitleReplies: 0Last Post: 30th Mar 2013, 18:35