avidemux
change current settings
The standard is Mkv Muxer.
Change it mp4 muxer.
edit -> save current settings as default
run it
Lauch avidemux on linux with python script file test1.py attached:
/usr/bin/flatpak run --branch=stable --arch=x86_64
--command=avidemux3_qt5
--file-forwarding org.avidemux.Avidemux
--run test1.py
script
#PY <- Needed to identify #
adm = Avidemux()
ed = Editor()
gui = Gui()
inputFolder = "/media/fhc/KINGSTON/ee"
filelist = get_folder_content(inputFolder, "mp4")
total = 0
for file in filelist:
total += 1
try:
if not adm.loadVideo(file):
raise Exception("Cannot load" + file)
codec=adm.getVideoCodec()
if codec=="H264": # av01
continue
adm.setContainer("MP4")
adm.videoCodec("x264")
adm.save(str(file)+"w")
except:
gui.displayInfo('exception: ',str(file))
continue
gui.displayInfo("total", str(total))