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 :slight_smile:

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 :slight_smile:

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

hh,
manny

Out simple curiosity, which options were causing you problems ( ie which ones did you have to tweak to get it to work) ?

Also what was the input encoding?

I have a number of h.264 / X.264 devices and usually have to spend an inordinate amount of time figuring out options on a per-file basis if I want to transcode them.

reborg,
don't have the previous ffmpeg commands handy, but the input file properties are as follows:

$ file test.avi
test.avi: RIFF (little-endian) data, AVI, 632 x
258, 23.98 fps, video: DivX 5, audio: MPEG-1 Layer 3 (stereo, 48000 Hz)

please let me know if you have any other ?s