Re: convert avi to cellphone friendly 320x176 mp4 file...ffmpeg to the rescue
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 .
Originally Posted by djhvt
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:
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
HOWTO: Compile the latest ffmpeg and x264 from source
And then use the syntax suggested by our friend:
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 .
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
All the best,
You think that's air you're breathing now?