Nokia 5800 XpressMusic can accept only MPEG4 legacy format for smooth playback in 640×360 resolution.
There is no-one program (click’n'go) that can do acceptable quality encoding for this. So here is my encode.bat :-)
You must have ffmpeg installed (i’am using one from SUPER encoder).
As you can see this is very easy and output video have excellent quality due to 2-pass encoding.
Picture is better than standard definition TV and is 16:9… enjoy ;-)
— please download encode.bat v2 here
@echo off
set opt=vbitrate=1687500:mbd=2:v4mv:vqmin=3:lumi_mask=0.07:
dark_mask=0.2:scplx_mask=0.1:tcplx_mask=0.1:naq:vhq:precmp=2:
cmp=2:subcmp=2:vb_qoffset=0.6
rem set sub=-sub "file.srt" -subcp cp1250 -subfont-text-scale 3.2 -font c:\WINDOWS\FONTS\ARIALNB.TTF
rem set deinterlace=:phase=b
"C:\Program Files\eRightSoft\SUPER\mencoder\mencoder" -sws 9 -nosound -vf scale=640:360,eq2=1.2:1.1:-0.06:1.2%deinterlace% -ovc lavc -lavcopts vcodec=mpeg4:%opt%:vpass=1 -ffourcc mp4v %sub% -o nul: "%*"
"C:\Program Files\eRightSoft\SUPER\mencoder\mencoder" -sws 9 -oac copy -vf scale=640:360,eq2=1.2:1.08:-0.06:1.1%deinterlace% -ovc lavc -lavcopts vcodec=mpeg4:%opt%:vpass=2 -ffourcc mp4v %sub% -o c:\input.avi "%*"
"C:\Program Files\eRightSoft\SUPER\ffmpeg" -i "c:\input.avi" -vcodec copy -acodec aac -ab 96 -ac 2 -ar 44100 c:\final.mp4
del c:\input.avi
del divx2pass.log
pause
— please download encode.bat v2 here
Place this code to file (example C:\WINDOWS\encode.bat) and easily type in prompt “encode.bat video.avi”… then wait and output.mp4 file may appear in current directory.