Encoding with ffmpeg for the Nokia N80

This is the script I use to convert rips, youtube vids, or whatever so that I can watch them in Real Player on my Nokia N80 at a later time.

I put it here, so that people searching might find the answer more easily.

Obviously, you'll need ffmpeg installed.

USE="a52 aac amr encode imlib mmx network ogg sdl theora truetype v4l vorbis x264 xvid zlib" emerge -v ffmpeg

This uses 24 fps @ 350kb/s mpeg4 video, and 32kb/s 16kHz AAC mono audio. You can tweak as you like.

if [[ ! -f "$1" ]]
then
echo $1 doesnt exist
exit
fi
ffmpeg -i "$1" -ar 16000 -ac 1 -acodec aac -vcodec mpeg4 -s 352x288 -r 24 -b 350 -ab 32 "$1.3gp"

It's supposed to support (the superior?) h264, but my newer version of the firmware doesn't, though another N80 with an older version does.

This looks a bit odd on anything that isn't already in a 4:3 format, but pah.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Debian Multimedia ffmpeg_3:20071206-0.0

It seems like Debian Multimedia ffmpeg_3:20071206-0.0
http://debian-multimedia.org/dists/unstable/main/binary-i386/package/ffmpeg.php
needs a different command line to encode as it does not have aac support:
ffmpeg -i $1 -ar 8000 -ac 1 -vcodec mpeg4 -s 352x288 -r 24 -b 350k -ab 12.2k "$1.3gp"

question - how to transfer?

This was very helpful, thanks! I was wondering how you transferred the resulting files onto the N80... there seem to be some header issues (N80 is not identified as an "Unusual Device" in usb_storage module) in getting the phone to be recognized as a mass storage device. I'm unsure how to apply the appropriate patch and rebuild just that module, perhaps you've discovered a way or a workaround?

Transferring files to N80

If you get the Unusual Device problem, check this out.

http://readthefuckingmanual.net/error/467/