Howto encode video for Nokia 5800 XpressMusic
Nokia 5800 XpressMusic can accept only MPEG4 legacy format for smooth playback in 640×360 resolution.
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…
Deinterlace and subtitles can be included – watch remarks.
mkv x264 / ac-3 rips working just fine, enjoy ;-)
— please download encode.bat here
@echo off
set ffpath=C:\Program Files\eRightSoft\SUPER
set opt=vbitrate=1687500:vrc_maxrate=1835008:
vrc_buf_size=917:mbd=2:vstrict=1:keyint=500:
cbp:mv0:vme=4:trell:v4mv:vqmin=3:lumi_mask=0.03:
dark_mask=0.2:scplx_mask=0.1:tcplx_mask=0.1:
naq:vhq=4:precmp=6:cmp=6:subcmp=6:
vb_qoffset=0.6:threads=2:level=31
rem set sub=-sub “file.srt” -subcp cp1250 -subfont-text-scale 3.2 -font c:\WINDOWS\FONTS\ARIALNB.TTF
rem set deinterlace=:phase=b
“%ffpath%\mencoder\mencoder” -sws 9 -nosound -vf scale=640:360,eq2=1.3:1.1:-0.06:1.3%deinterlace% -ovc lavc -lavcopts vcodec=mpeg4:%opt%:vpass=1 -ffourcc mp4v %sub% -o nul: “%*”
“%ffpath%\mencoder\mencoder” -sws 9 -oac copy -vf scale=640:360,eq2=1.3:1.1:-0.06:1.3%deinterlace% -ovc lavc -lavcopts vcodec=mpeg4:%opt%:vpass=2 -ffourcc mp4v %sub% -o c:\input.avi “%*”
“%ffpath%\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 here
Place this code to file (example C:\WINDOWS\encode.bat) and easily type in prompt “encode.bat video.avi”… then wait and c:\final.mp4 file may appear.
Yes you can easily change this script for LINUX ;-)
RSS feed for comments on this post. TrackBack URI

