Results 1 to 5 of 5

Thread: convert avi to cellphone friendly 320x176 mp4 file...ffmpeg to the rescue

  1. #1
    Join Date
    Jun 2005
    Beans
    32

    convert avi to cellphone friendly 320x176 mp4 file...ffmpeg to the rescue

    found a few ffmpeg posts and after a few unsuccessful attempts, I have found a solution

    to encode an avi to to an nokia e71 recognized mp4 format:


    ffmpeg -y -i inputFILE.avi -acodec aac -ab 72k -s 320x176 -aspect 16:9 -vcodec h264 -b 300k -qcomp 0.6 -qmin 16 -qmax 51 -qdiff 4 -flags +loop -cmp +chroma -subq 7 -refs 6 -g 250 -keyint_min 25 \
    -rc_eq 'blurCplx^(1-qComp)' -sc_threshold 40 -me_range 12 -i_qfactor 0.71 -directpred 3 outputFILE.mp4


    original file was 700MB, resulting mp4 encoded file slightly less then half @300MB...quality is excellent

    even though I don't foresee watching many video's on this amazing phone, I thought I would share my findings...

    hh,
    manny

  2. #2
    Join Date
    Jun 2007
    Location
    Burlington, Vermont
    Beans
    71
    Distro
    Lubuntu

    Re: convert avi to cellphone friendly 320x176 mp4 file...ffmpeg to the rescue

    Hey Manny...or anyone famliar with this approach,

    So i have an E62 and want to do exactly what this post says, but i have no clue what this post is telling me to do nor do i have any idea what ffmpeg is lol.

    can someone dumb this down a bit and walk me through the actual steps? My delicate psyche will thank you when im on my 13 hour bus odyssey and the only electronic device (with a battery worth a damn) i will have is my cellphone

    happy new year!

  3. #3
    Join Date
    Dec 2008
    Beans
    9

    Re: convert avi to cellphone friendly 320x176 mp4 file...ffmpeg to the rescue

    I use handbrake to encode mp4's for my psp. Works like a charm:
    http://handbrake.fr/

    They have a ubuntu *.deb.

  4. #4
    Join Date
    Dec 2006
    Beans
    7,324

    Re: convert avi to cellphone friendly 320x176 mp4 file...ffmpeg to the rescue

    Hi djhvt,

    Quote Originally Posted by djhvt View Post
    So i have an E62 and want to do exactly what this post says, but i have no clue what this post is telling me to do nor do i have any idea what ffmpeg is lol.
    ffmpeg is the greatest converter in Linux. Some would see it as a little difficult but when someone has done the hard yards and produced the syntax for you it is dead easy .

    can someone dumb this down a bit and walk me through the actual steps? My delicate psyche will thank you when im on my 13 hour bus odyssey and the only electronic device (with a battery worth a damn) i will have is my cellphone
    It is my personal opinion that you would be best to compile your copy of ffmpeg from source but never fear there is a great guide on the forums:

    HOWTO: Compile the latest ffmpeg and x264 from source
    http://ubuntuforums.org/showthread.php?t=786095

    And then use the syntax suggested by our friend:

    Code:
    ffmpeg -y -i inputFILE.avi -acodec aac -ab 72k -s 320x176 -aspect 16:9 -vcodec h264 \
    -b 300k -qcomp 0.6 -qmin 16 -qmax 51 -qdiff 4 -flags +loop -cmp +chroma -subq 7 \
    -refs 6 -g 250 -keyint_min 25 -rc_eq 'blurCplx^(1-qComp)' -sc_threshold 40 \
    -me_range 12 -i_qfactor 0.71 -directpred 3 outputFILE.mp4
    I have obligingly made the input file and the output file red for you, and the audio codec (aac) and video codec (h264) blue. The rest is clever manipulation of small parameters: if it looks good on his phone it will look good on your identical phone .

    All the best,

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

  5. #5
    Join Date
    Jun 2007
    Location
    Burlington, Vermont
    Beans
    71
    Distro
    Lubuntu

    Re: convert avi to cellphone friendly 320x176 mp4 file...ffmpeg to the rescue

    Andrew, thanks so much! You rock.

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
  •