Hi there.
In the past when I wanted to convert video so that it plays in my Nokia N73 I would use WinFF. The command that it would use looked like this:
For full screen videos in 4:3 aspect:
/usr/bin/ffmpeg -y -i "./video.avi" -loglevel info -f mp4 -r 15 -vcodec mpeg4 -vf scale=320:240 -b 320k -aspect 4:3 -acodec libfaac -ab 160k -ar 44100 -ac 2 "./video.mp4"
For widescreen videos in 16:9 aspect:
/usr/bin/ffmpeg -y -i "./video.avi" -loglevel info -f mp4 -r 15 -vcodec mpeg4 -vf scale=320:240 -b 320k -aspect 16:9 -acodec libfaac -ab 160k -ar 44100 -ac 2 "./video.mp4"
For quite a while now however it did not worked. I would receive this error.
Unknown encoder ‘libfaac’
I tried to google it and find out what is wrong and I’ve found out that libfaac is not a part of ffmpeg package by default due to some license problems. IT IS however possible to replace libfaac with aac and that it would work. It didn’t work for me because the command I’ve found was slightly borked. I’ve visited #ffmpeg IRC channel where user c_14 sorted me out in no time. Thank You very much.
The commands I am using now are:
For full screen videos in 4:3 aspect:
/usr/bin/ffmpeg -y -i "./video.avi" -loglevel info -f mp4 -r 15 -vcodec mpeg4 -vf scale=320:240 -b 320k -aspect 4:3 -acodec aac -strict -2 -ab 160k -ar 44100 -ac 2 "./video.mp4"
For widescreen videos in 16:9 aspect:
/usr/bin/ffmpeg -y -i "./video.avi" -loglevel info -f mp4 -r 15 -vcodec mpeg4 -vf scale=320:240 -b 320k -aspect 16:9 -acodec aac -strict -2 -ab 160k -ar 44100 -ac 2 "./video.mp4"
I have decided to fix my WinFF presets too. So I’ve edited this file:
/home/andrzejl/.winff/presets.xml
and amended this for full screen videos in 4:3 aspect:
<NokiaN73N81N95FS>
<label>Nokia Nxx Video FullScreen</label>
<params>-loglevel info -f mp4 -r 15 -vcodec mpeg4 -vf scale=320:240 -b 320k -aspect 4:3 -acodec libfaac -ab 96k -ar 44100 -ac 2</params>
<extension>mp4</extension>
<category>Nokia</category>
</NokiaN73N81N95FS>
so now it looks like this:
<NokiaN73N81N95FS>
<label>Nokia Nxx Video FullScreen</label>
<params>-loglevel info -f mp4 -r 15 -vcodec mpeg4 -vf scale=320:240 -b 320k -aspect 4:3 -acodec aac -strict -2 -ab 160k -ar 44100 -ac 2</params>
<extension>mp4</extension>
<category>Nokia</category>
</NokiaN73N81N95FS>
and amended this for widescreen videos in 16:9 aspect:
<NokiaN73N81N95WS>
<label>Nokia Nxx Video WideScreen</label>
<params>-loglevel info -f mp4 -r 15 -vcodec mpeg4 -vf scale=320:240 -b 320k -aspect 16:9 -acodec libfaac -ab 96k -ar 44100 -ac 2</params>
<extension>mp4</extension>
<category>Nokia</category>
</NokiaN73N81N95WS>
so now it looks like this:
<NokiaN73N81N95WS>
<label>Nokia Nxx Video WideScreen</label>
<params>-loglevel info -f mp4 -r 15 -vcodec mpeg4 -vf scale=320:240 -b 320k -aspect 16:9 -acodec aac -strict -2 -ab 160k -ar 44100 -ac 2</params>
<extension>mp4</extension>
<category>Nokia</category>
</NokiaN73N81N95WS>