Playing videos on Nokia S60

It is hard to find a decent information which videos Nokia E51 RealPlayer can play. Even the articles on the dedicated sites can be misleading.

So, I tried a little while the article above as a starting point. I compared the video I’ve taken with the phone, and another recorded with MythTV. The clip I used was only couple of seconds long to make the trying as fast-paced as possible.

The first thing I noticed from the article above, the ffmpeg supplied with Fedora can’t regocnise aac audio, but there’s a libfaac codec instead. So, that must be replaced.

Also the RealPlayer was completely confused if the video size was anything else than 320×240 and if the aspect wasn’t set. That makes 16:9 videos a little bit funny looking, but you can clip them or make letterbox stripes if you want to.

And here’s the result:

ffmpeg -i video.mpg2 -f mp4 -vcodec mpeg4 -b 250000 -r 15 -s 320x240 -aspect 4:3 \
   -acodec libfaac -ar 24000 -ab 64 -ac 2 video.mp4

If you are using MythTV output, remember to do the following:

mythtranscode --mpeg2 --infile video.mpgĀ  --outfile video.mpg2