Results 1 to 7 of 7

Thread: How to convert to h264 + aac using aconv

  1. #1
    Join Date
    Nov 2009
    Beans
    84

    How to convert to h264 + aac using aconv

    Hi,
    Please help me to convert mpeg files to video encoded in h264 and audio encoded in aac format using aconv,
    Code:
    avconv -i infut.mpeg -c:v libx264 -c:a ??? output.mkv
    Thanking You,
    Ras

  2. #2
    Join Date
    Oct 2010
    Location
    London
    Beans
    482
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to convert to h264 + aac using aconv

    See the x264 and AAC encoding guides. Those are strictly speaking for ffmpeg, but AFAIK the syntax should still work with avconv.

    To check which AAC encoders you have, use

    Code:
    avconv -codecs | grep aac
    ...and then consult the AAC encoding guide for how to use it.
    Please mark your thread as solved if you get a satisfactory solution to your problem.

  3. #3
    Join Date
    Nov 2009
    Beans
    84

    Re: How to convert to h264 + aac using aconv

    Thnaks, please let me know how to improve video (and audio) quality? I think the default is not sufficient.
    Is it possible to use similar to -tune option in ffmpeg with avconv?

  4. #4
    Join Date
    Jun 2007
    Beans
    14,783

    Re: How to convert to h264 + aac using aconv

    You're probably not going to get better quality by encoding to a different format.

  5. #5
    Join Date
    Nov 2009
    Beans
    84

    Re: How to convert to h264 + aac using aconv

    Yes. I know, but it is now losing quality!

  6. #6
    Join Date
    Dec 2006
    Beans
    7,349

    Re: How to convert to h264 + aac using aconv

    Quote Originally Posted by ras123 View Post
    Yes. I know, but it is now losing quality!
    Are you using a preset? Might be better if you post your complete commandline and full terminal output...
    You think that's air you're breathing now?

  7. #7
    Join Date
    Oct 2010
    Location
    London
    Beans
    482
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to convert to h264 + aac using aconv

    Check out the guides I linked to in my first post, those show how to set the quality. I think the should work with avconv, but I've been using ffmpeg eclusively for about a year, so I don't know if the syntax is still 100% compatible (the only way to find out would be to give it a go).
    Please mark your thread as solved if you get a satisfactory solution to your problem.

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
  •