Results 1 to 4 of 4

Thread: help batch remux avi to mp4 container with FFmpeg

  1. #1
    Join Date
    Nov 2009
    Beans
    284

    help batch remux avi to mp4 container with FFmpeg

    Hello,

    I have a bunch of avi files that i want to remux into the mp4 container with ffmpeg. I want the video to be the same, but I want to change the audio to AAC format. Also I would like the output mp4 file to have the same name as the avi file and be placed in the same directory. But having trouble finding this through different websites.

    any help would be appreciated.

  2. #2
    Join Date
    Sep 2006
    Beans
    3,622

    Re: help batch remux avi to mp4 container with FFmpeg

    Please show some information about your inputs. Are they all using the same video and audio formats? The complete ffmpeg console output will suffice:
    Code:
    ffmpeg -i example_input_file.avi

  3. #3
    Join Date
    Nov 2009
    Beans
    284

    Re: help batch remux avi to mp4 container with FFmpeg

    Same video. All avi Xvid and mpeg4. Audio is different on input files. Some are mp3, some ac3

  4. #4
    Join Date
    Jun 2008
    Beans
    1,242
    Distro
    Ubuntu Studio

    Re: help batch remux avi to mp4 container with FFmpeg

    Just do
    Code:
    ffmpeg -i file.avi -vcodec copy -ab 192K file.mp4
    Set the audio bitrate as you like.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •