[MEncoder-users] mencoder to generate mp4 files for Motorola A1200
Zhang Weiwu
zhangweiwu at realss.com
Mon Oct 19 05:31:45 CEST 2009
Ken Murray wrote:
> 2009/10/18 Zhang Weiwu <zhangweiwu at realss.com>:
>
>
>> MPEG4 video files: can support 320 to X240, 30fps, 350kbps.
>>
>
> Perhaps try copying a playable video from your phone that's already in
> that format to your computer. Play said file with mplayer and observe
> the output. Use said output to create a file using the same settings.
> That's how I do it.
>
>
Difficult. I tried bigbuckbunny ipod 5G vesion which is below this spec:
http://www.bigbuckbunny.org/index.php/download/
And it dosn't play on mobile (No needed plugin)
In fact I never saw any clip in mp4 that can playback on this mobile
phone. I have a lot of 3gp format that works. The digital camera embeded
also shoots clips in 3gp format, and surprisingly it can shoot in .3gp
format at 320x240, violating the spec I read.
If I follow this tutorial:
http://www.niemueller.de/wiki/index.php?ConvertVideoTo3GP
I can generate .3gp that plays on the mobile phone at 176x144, but I
could not generate 3gp at 320x240, error (I know it is not an error of
mencoder thus a bit OffTopic):
$ mencoder dvd://01 -endpos 100 -nosound -ovc lavc -lavcopts
vcodec=mpeg4 -vf scale=320:240 -o movie.avi -ofps 12
[output snip, file generated OK to playback]
$ mplayer -vo null -endpos 100 -ao pcm -af resample=8000 dvd://01
[output snip, file generated OK to playback]
$ ffmpeg -i movie.avi -i audiodump.wav -b 48 -ac 1 -ab 12200 -map
0.0 -map 1.0 movie.3gp
[snip output of copyright and what compile options are used]
Input #0, avi, from 'movie.avi':
Duration: 00:01:40.08, start: 0.000000, bitrate: 678 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 12
tbr, 12 tbn, 12 tbc
Input #1, wav, from 'audiodump.wav':
Duration: 00:01:40.35, bitrate: 256 kb/s
Stream #1.0: Audio: pcm_s16le, 8000 Hz, stereo, s16, 256 kb/s
WARNING: The bitrate parameter is set too low. It takes bits/s as
argument, not kbits/s
Output #0, 3gp, to 'undo.3gp':
Stream #0.0: Video: h263, yuv420p, 320x240 [PAR 1:1 DAR 4:3],
q=2-31, 0 kb/s, 90k tbn, 12 tbc
Stream #0.1: Audio: libamr_nb, 8000 Hz, mono, s16, 12 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #1.0 -> #0.1
[h263 @ 0x10072bb0]The specified picture size of 320x240 is not
valid for the H.263 codec.
Valid sizes are 128x96, 176x144, 352x288, 704x576, and 1408x1152.
Try H.263+.
Error while opening codec for output stream #0.0 - maybe incorrect
parameters such as bit_rate, rate, width or height
Or, how can I generate 320x240 3gp file? e.g. using mencoder. I tried
$ mencoder dvd://01 -endpos 100 -oac lavc -ovc lavc -lavcopts vcodec=h263p:acodec=amr_nb -of lavf -o movie.3gp
[snip]
==========================================================================
Audio LAVC, couldn't find encoder for codec amr_nb
Exiting...
Even though it looks like a codec library is missing, I do have
libamrwb3 installed and don't know what other debian package should I
also install.
More information about the MEncoder-users
mailing list