Avidemux Forum

Avidemux => Windows => Topic started by: Ch3vr0n on November 10, 2020, 05:19:07 PM

Title: Batch assign audio language
Post by: Ch3vr0n on November 10, 2020, 05:19:07 PM
So i'm optimizing my plex files a bit and i noticed while browsing through them that i have several in the avi format that don't have an audio language assigned. With some help i was able to do this for my mp4/mkv files with mp4 box, but i'd like to this with my avi files too. Something i was informed avidemux can do for me.

As itm still a noob in cli is there any way any of you might be able to assist me to create a batch file that recursively looks through all (sub)folders (and its subfolders) of the root directory the batch file is located in and assign the audio language to English? I don't have any other audio tracks in my files.
Title: Re: Batch assign audio language
Post by: eumagga0x2a on November 10, 2020, 09:59:50 PM
Avidemux doesn't set the language field in AVIStreamHeader at all (and doesn't care about this field when loading AVI files) while ffmpeg sets this field only for subtitles. You would need to remux these files into a different container. The viability depends on codecs used (and if some files include subtitle tracks, Avidemux doesn't qualify).

Regarding Windows cmd.exe scripting to implement the desired recursion, I cannot help, unfortunately, but user "dosdan" probably could.
Title: Re: Batch assign audio language
Post by: STEPHANVS on December 08, 2020, 08:32:03 AM
I personally use mkvtoolix's mkvmerge to batch set language option to both video and audio. Naturally this will result in an .mkv file.