📜 ⬆️ ⬇️

Convert video to your s60 under Linux

So I decided to pour a couple of films on my phone, and since I’ve been sitting under Linux for a long time, I decided to look for how it is done.
In fact, everything is not simple, but very simple. We need a video player on the phone (SmartMovie, DivX Player, etc), which can be found on special sites and the actual movie itself. We will press with the help of ffmpeg, which is probably in any distribution.


Open the terminal, go to the folder with the film and execute a command like this:

ffmpeg -i movie.avi -vcodec mpeg4 -b 250000 -s 208x112 -acodec aac -ar 24000 -ab 64 -ac 2 movie_mobile.avi

Where
-i movie.avi - source file
-vcodec mpeg4 - the codec with which we will convert. Usually mpeg4, but you can choose 3gp (then even standard RealPlayer will play it, but the quality will be terrible)
-b 250000 - outgoing file bit rate.
-s 208x112 - frame size of the outgoing file.
-acodec aac is the outgoing audio codec.
-ar 24000 - sound quality (in Hz) of the outgoing file.
-ab 64 - audio bitrate (kbits / sec) of the outgoing file.
-ac 2: the number of sound channels of the outgoing file (2 stereo, 1 mono).
')
Frame size
I remind you what screen resolutions are available for Nokia smartphones:
- 208x176 - s60 of the first and second edition (symbian 6 \ 7 \ 8. Nokia 6600, 6630 and mn)
- 320x240 - s60 third edition (symbian 9. Nokia N series and others)
- 208x208 (Nokia 5500)

But naturally, a movie in 16: 9 format with such resolutions will look like a few gmm ... unusual.
For such films, it is better to use a frame size of 208x112 instead of 208x176 and 320x176 instead of 320x240. Then keep proportions.

Vobshchem all. It remains only to throw the movie on the phone and enjoy! (how to do it under Linux is briefly described here , for what is mentioned there about script writing - do not pay attention.)

PS For the sake of fairness, it is also necessary to note that there is some kind of an odd job called SUPER , this is a front end for ffmpeg, MEncoder, mplayer, x264 and mppenc. But I don’t see much sense in it ...

Source: https://habr.com/ru/post/7458/


All Articles