News:

--

Main Menu

Adding second downmixed audio track to file

Started by MswolJ, November 24, 2023, 12:26:46 AM

Previous topic - Next topic

MswolJ

Hello, I currently have a Python script that I am using to downmix 5.1+ audio to 2.0.

However, is there a way I can modify this to add the 2.0 as an additional track and leave the original untouched?  I assume it is possible, but wondering if it needs to be a two-step process?  Found old thread here that may be relevant for two-step method: https://avidemux.org/smif/index.php/topic,16718.15.html

Current script is below:

adm = Avidemux()
adm.videoCodec("Copy")
adm.audioClearTracks()
adm.setSourceTrackLanguage(0,"Eng")
adm.audioAddTrack(0)
adm.audioCodec(0, "FDK_AAC", "bitrate=128", "bitrate_mode=5", "profile=2", "afterburner=True")
adm.audioSetMixer(0, "STEREO");
adm.audioSetDrc(0, 0)
adm.audioSetShift(0, 0, 0)

eumagga0x2a

Re-use of the same audio track (creation of multiple audio access object per track) is on my todo list.