VideoHelp Forum
+ Reply to Thread
Results 1 to 2 of 2
Thread
  1. I have over 200 videos where I need to change sound only, from ACC to AC3. Those are scripts I'm using, but getting an error "Muxer cannot open"
    Code:
    #!/bin/bash
    for FIL in `ls *m4v | sort` ; do
      /mnt/home/appimages/avidemux_2.8.0.appImage --force-alt-h264 --load "$FIL" --run ac3.py --save ${FIL%.*}.mp4 --quit
    done
    ac3.py script:

    Code:
    #PY  <- Needed to identify #
    #--automatically built--
    
    adm = Avidemux()
    adm.videoCodec("Copy")
    adm.audioClearTracks()
    adm.audioAddTrack(0)
    adm.audioCodec(0, "LavAC3")
    adm.audioSetDrc(0, 0)
    adm.audioSetShift(0, 0, 0)
    adm.setContainer("MP4")
    When doing it in windows, all works fine with this bat script and the same "py" file, but I don't like to log in windows every time I need to convert
    Code:
     set avidemux="C:\Program Files\Avidemux 2.7 VC++ 64bits\avidemux.exe"
    for %%f in (*.m4v) do %avidemux% --load "%%f" --run "ac3.py" --save "%%f.mp4" --quit
    Does anybody know what is wrong with scripts and how I can fix it?
    Image Attached Thumbnails Click image for larger version

Name:	ScreenShot_2022-05-11_13:44:49.jpg
Views:	132
Size:	79.1 KB
ID:	64767  

    Quote Quote  
  2. In windows code there exist a variable avidemux, missing in the first code.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!