Results 1 to 5 of 5

Thread: ffmpeg help (Mp4 to AVI and aac to ac3)

  1. #1
    Join Date
    May 2007
    Beans
    21
    Distro
    Ubuntu

    ffmpeg help (Mp4 to AVI and aac to ac3)

    Hello,
    I'm trying to copy a video file from mp4 to avi, in the process I need to convert aac to ac3 audio.

    I've researched this for a few days, and I think I'm on the right track but need some help.

    I typed, and received:
    Code:
    ffmpeg -i inputfile.mp4
    ...
    
        Stream #0.0(und): Video: h264, yuv420p, 1280x720, 23.98 tbr, 23.98 tbn, 47.95 tbc
        Stream #0.1(und): Audio: aac, 48000 Hz, 5.1, s16
    I then tried the following command by carefully studying some examples on ffmpeg online:

    Code:
    ffmpeg -i 'inputfile.mp4' -aspect 16:9 -sameq -vcodec libxvid -acodec ac3 -ac 6 'outputfile.avi'
    My resulting avi file causes many issues in a variety of players, I'm clearly doing something incorrect, can someone please lend some advice?

    Thank you very much.

  2. #2
    Join Date
    Mar 2006
    Location
    Saint Petersburg, FL
    Beans
    1,123

    Re: ffmpeg help (Mp4 to AVI and aac to ac3)

    Try this string:

    Code:
    ffmpeg -i input.mp4 -vcodec mpeg4 -acodec ac3 -ar 48000 -ab 192k -ac 6 -sameq -aspect 16:9 output.avi
    For those new to Ubuntu most of your answers can be found at help.ubuntu.com or ubuntuguide.org

  3. #3
    Join Date
    May 2007
    Beans
    21
    Distro
    Ubuntu

    Re: ffmpeg help (Mp4 to AVI and aac to ac3)

    hello,
    thank you very much,
    the command that you listed above seems to work well.

    I appreciate your help.

  4. #4
    Join Date
    Sep 2006
    Beans
    3,668

    Re: ffmpeg help (Mp4 to AVI and aac to ac3)

    Quote Originally Posted by warp99 View Post
    Try this string:

    Code:
    ffmpeg -i input.mp4 -vcodec mpeg4 -acodec ac3 -ar 48000 -ab 192k -ac 6 -sameq -aspect 16:9 output.avi
    I recommend using -qscale instead of -sameq. I'm not sure if you can use qscale effectively with H.264 video because it's quantizer scale is too different than everything else. A good balance for a qscale value is 3-5 and 2 is roughly visually lossless.

  5. #5
    Join Date
    Oct 2007
    Location
    Northern Ireland
    Beans
    14
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: ffmpeg help (Mp4 to AVI and aac to ac3)

    Yep that did the trick for me. Thanks

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
  •