[MEncoder-users] encoding 3gp, mp4, wmv
Michel Bardiaux
mbardiaux at mediaxim.be
Wed Aug 3 10:51:54 CEST 2005
dtra wrote:
> Michel Bardiaux wrote:
>
>> dtra wrote:
>>
>>> Michel Bardiaux wrote:
>>>
>>>> dtra wrote:
>>>>
>>>>> hi all
>>>>>
>>>>> i'm after an rpm that we can use for video encoding 3gp, mp4 (for
>>>>> mobile devices), and wmv (for web)
>>>>> i tried ffmpeg, but couldn't find an rpm that supported the amr_nb
>>>>> plugin, which i need to convert from and to 3gp
>>>>>
>>>>> i know ffmpeg will work if i can compile from src, cos i did use that,
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> And the wmv's produced work for M$ WMP? What command line do you use?
>>>
>>>
>>>
>>>
>>>
>>> it would have been ffmpeg -i file.mp4 -b 80 -ar 8000 -ab 12 -vcodec
>>> wmv1 -acodec mp3 out.wmv
>>>
>> Wont work for me:
>>
>> ffmpeg -i utc_1434.mpg -b 80 -ar 8000 -ab 12 -vcodec wmv1 -acodec mp3
>> out.wmv
>> ffmpeg version CVS, build 3211264, Copyright (c) 2000-2004 Fabrice
>> Bellard
>> configuration: --enable-mp3lame --disable-strip --enable-amr_nb
>> --enable-a52 --enable-gpl --enable-amr_wb --disable-shared
>> --enable-libgsm
>> built on Aug 1 2005 10:51:57, gcc: 2.95.4 20011002 (Debian prerelease)
>> Input #0, mpeg, from 'utc_1434.mpg':
>> Duration: 00:00:57.0, start: 92564.370489, bitrate: 668 kb/s
>> Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 352x288, 25.00 fps,
>> 104857 kb/s
>> Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, mono, 32 kb/s
>> Output #0, asf, to 'out.wmv':
>> Stream #0.0: Video: wmv1, yuv420p, 352x288, 25.00 fps, q=2-31, 80 kb/s
>> Stream #0.1: Audio: mp3, 8000 Hz, mono, 12 kb/s
>> Stream mapping:
>> Stream #0.0 -> #0.0
>> Stream #0.1 -> #0.1
>> [wmv1 @ 0x83c26d0]removing common factors from framerate
>> Error while opening codec for output stream #0.1 - maybe incorrect
>> parameters such as bit_rate, rate, width or height
>>
>> Either you actuallu used another command line, or the problem is
>> different properties for your source mp4 and my source mpg. Could you
>> retry, and post the full output? TIA.
>>
> hi
> unfortunately i can't help you out there
> i haven't got a test server with ffmpeg installed from src
> that would definitely be the command line i used
> my source mp4 would be like the type you get from phones
> but i was able to do it with any video i had
>
> i really am a novice, but it's your output audio stream that is having
> the problem right?
>
> dave
>
I fiddled a bit with the audio output parameters and this works:
ffmpeg -i utc_1434.mpg -b 80 -vcodec wmv1 -acodec mp3 -y out.wmv
ffmpeg version CVS, build 3211264, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-mp3lame --disable-strip --enable-amr_nb
--enable-a52 --enable-gpl --enable-amr_wb --disable-shared --enable-libgsm
built on Aug 1 2005 10:51:57, gcc: 2.95.4 20011002 (Debian prerelease)
Input #0, mpeg, from 'utc_1434.mpg':
Duration: 00:00:57.0, start: 92564.370489, bitrate: 668 kb/s
Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 352x288, 25.00 fps,
104857 kb/s
Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, mono, 32 kb/s
Output #0, asf, to 'out.wmv':
Stream #0.0: Video: wmv1, yuv420p, 352x288, 25.00 fps, q=2-31, 80 kb/s
Stream #0.1: Audio: mp3, 48000 Hz, mono, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[wmv1 @ 0x83c26d0]removing common factors from framerate
Press [q] to stop encoding
frame= 1501 q=0.0 Lsize= 1kB time=60.0 bitrate= 0.1kbits/s
video:1434kB audio:469kB global headers:0kB muxing overhead -99.971732%
and plays OK in WMP. The difference being suppression of "-ar 8000 -ab
12". With -ar 8000 put back in, OK (I mean both ffmpeg and WMP). With
-ab 64, or -ab 32, or -ab 16, or even -ab 8, OK. Its -ab 12 that ffmpeg
rejects. Maybe you actually used -ab 16 or -ab 32, or you used a version
of mp3lame that supports 12kbits while mine (debian woody, liblame0
3.96-woody1) does not. In any case, thanks a lot.
--
Michel Bardiaux
R&D Director
MediaXim S.A. Bd. du Souverain, 191 B-1160 Bruxelles
Tel : +32 2 790.29.41
More information about the MEncoder-users
mailing list