Results 1 to 4 of 4

Thread: Re-encoding .avi files with h264

  1. #1
    Join Date
    Aug 2006
    Beans
    25
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re-encoding .avi files with h264

    Greetings.

    I have a stack of .avi files that I have encoded over time and I was attempting to play them on my PS3. I got an error that the data was not supported and after some digging around I found that PS3 loves .mpeg files with the h.264 codec. I did not have that codec until a few moments ago when I apt-get'd the x264 package.

    My question is, how would I re-encode a directory full of .avi files with mencoder to .mpeg files and force mencoder to use the x264 codec instead of whatever else it uses by default?

    Thanks for your help.
    Last edited by aerojad; July 19th, 2009 at 12:06 AM.
    secondpagemedia - fun for the whole abnormal family.

  2. #2
    Join Date
    Aug 2006
    Beans
    25
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Re-encoding .avi files with h264

    So I toyed around some more and tried this at the command line:

    mencoder input.avi -of mpeg -ovc lavc -oac copy -o output.mpeg

    This worked, but the file size was 13% smaller than the original. Is there any way I can transcode with no loss?
    secondpagemedia - fun for the whole abnormal family.

  3. #3
    Join Date
    Dec 2006
    Beans
    7,176

    Re: Re-encoding .avi files with h264

    Hi aerojad,

    Unless you really have your heart set on MEncoder you would be better to use FFmpeg IMHO. Have a look at:

    HOWTO: Install and use the latest FFmpeg and x264
    http://ubuntuforums.org/showthread.php?t=786095

    Andrew
    You think that's air you're breathing now?

  4. #4
    Join Date
    Jan 2007
    Location
    India
    Beans
    1,023
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Arrow Re: Re-encoding .avi files with h264

    perhaps....avidemux fix your problem..there is GUI settings for output format (container) , audio and video encoders ..etc

    Code:
    sudo apt-get install avidemux
    --- I am what I am because of what we all are ----

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
  •