[MPlayer-users] How to create a video to play on windows mobile.

Piotr Stachura albert1 at autocom.pl
Tue May 23 20:18:01 CEST 2006


Dnia wtorek, 23 maja 2006 18:59, BlkPoohba napisał:
> I am trying to create a video that I can play on my windows mobile
> phone.  This is one of the two video formats the device created.  How
> would i create a file with the standards needed using mencoder or ffmpeg

> MOV: longest streams: A: #1 (655 samples)  V: #0 (129 samples)
> VIDEO:  [mp4v]  176x144  24bpp  10.000 fps    0.0 kbps ( 0.0 kbyte/s)
> ==========================================================================
> Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
> Cannot find codec 'amr_nb' in libavcodec...

It's simple, I have Motorola phone that create this same kind of stream.
1. Video - mpeg4 without gmc, bframes ... ~ 15fps ~ 160kb/s (I can play even 
25fps and 320kb/s), size 176x144
2. Audio ... amr (you need ffmpeg with amr compiled!) or check for some info 
on a web (I think mp3 will be OK, but perhaps aac will be also nice).
Now you have got two ways:
1. mencoder:
-ovc xvid -xvidencopts bitstream=160 (you can use 2-pass encoding)
-oac - I don't know, I'm using ffmpeg for mobile
and rest: -ofps 15 (or 12), -vf scale=176:144
When you have got avi file, then use MP4Box to put that in mp4 container
2. ffmpeg:
ffmpeg -y -i input.avi -pass 1 -passlogfile passfile -b 160 -r 12 -ac 1 -ab 64 
-acodec aac -vcodec mpeg4 output.mp4
and of course pass 2, where: b vbitrate, ab abitrate, r - fps, ac - audio 
channels
Good luck!!
-- 
Piotr Stachura



More information about the MPlayer-users mailing list