Archive

Posts Tagged ‘Nokia 6300’

Encoding videos for Nokia 6300

September 12th, 2007 Asiri Rathnayake No comments

I bought a new Nokia 6300 mobile phone recently and I have started playing with it already. As for my first hack, I was able to watch video files (mpeg-4) that should not be played on the device (according to the spec). This is about how I went on doing it. Although the whole procedure took me about one whole day (with testing and failing most of the time) I will only list the important steps here.

- Compiled and Installed faac (most recent version)

- Compiled and installed ffmpeg (with –enable-libfaac)

Finally, executed following command to make it all happen:

ffmpeg -i input.mpg # Input video file
-f mp4 # Output file format
-acodec libfaac # Audio encoder
-vcodec mpeg4 # Video encoder
-s qcif # Output video size (176x144)
-r 30 # Output frame rate
output.mp4 # Output file name

Note that I have put a single command into multiple lines to accommodate the comments. You should type the command in a single line instead. The output video file plays really nicely on my 6300 and audio quality is excellent.

Hope this helps. Happy Hacking!