VideoHelp Forum
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Hello, I have many MP4 files that include video and AAC audio. I would like to batch mux these files to just have the audio in M4A format.

    Using information from this forum, I am able to use MP4Box to demux and remux to achieve this result; however, I am unable to write a script to do it and doing this multi-step process will take too long. I am also happy to try a GUI that would achieve this. I tried YAMB (MP4Box) GUI and it was not able to do this batch sequence either. Any advice on how to do this?

    Input: MP4 file with aac audio and video
    Output: M4A file with only aac audio

    Thank you for your help
    Quote Quote  
  2. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    Too long? It won't really take any less time doing it in a batch script.

    But if you want to try, I'd suggest ffmpeg.
    Code:
    ffmpeg -i input.mp4 -c:a copy -vn -sn output.m4a
    should do it, just add %placeholder variables.

    Scott
    Quote Quote  
  3. Member
    Join Date
    Apr 2015
    Location
    Argentina
    Search Comp PM
    Try this for batch

    Code:
    for %%a in ("*.mp4") do "mp4box.exe" -raw 2 "%%~na.mp4"
    for %%a in ("*.mp4") do ren "%%~na_track2.aac" "%%~na.m4a"
    pause
    mp4box.exe must be in the same folder as the videos. It is suitable that you think a file bat with what I wrote and launch it.
    Last edited by arielacade; 4th Oct 2015 at 15:26.
    Quote Quote  
  4. I was able to write the script by combining both of your responses:

    Thanks!
    Last edited by meganoob; 4th Oct 2015 at 21:22.
    Quote Quote  
  5. Code:
    @echo off
    set MP4box="C:\  .... your path to MP4Box    .... \MP4box.exe"
    for %%a in ("*.mp4") do %MP4box% -add "%%~na.mp4"#audio   -new "%%~na.m4a"
    pause
    Quote Quote  



Similar Threads

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