[mythtv-users] OT: FFMPEG conversion

John Pilkington J.Pilk at tesco.net
Sat Jul 25 14:45:14 UTC 2009


John Pilkington wrote:
> Brent Norris wrote:
>> James Oltman wrote:
>>> I get a similar error when I try to transcode a .mod file to mpeg4 avi
>>>
>>>
>>>     [mpeg4 @ 0x2190180]timebase not supported by mpeg 4 standard
>>>     Error while opening codec for output stream #0.0 - maybe incorrect
>>>     parameters such as bit_rate, rate, width or height
>>>
>>>     The command I found to do it from the internet was:
>>>
>>>     ffmpeg -vcodec mpeg4 -s 720x576 -b 9600k -aspect 16:9 -acodec mp3
>>>     -ab 192k -ar 48000 -i Playing.MOD Playing.avi
>>>
>>>     I think I know what most of it means, but I don't know why it won't
>>>     encode it for me.  Can anyone help?
>>>
>>>     Brent
>>>
>>>
>>> The whole command/error would be nice.  I'm wondering if you have the 
>>> right audio rate defined.  Instead of '-ar 48000' try '-ar 44100'.
>>>
>>> Jim
>>
>> Here it is:
>>
>> [root at Diablo New Camera]# ffmpeg -vcodec mpeg4 -s 720x576 -b 9600k 
>> -aspect 16:9                                              -acodec mp3 
>> -ab 192k -ar 44100 -i Playing\ Match\ Game.MOD Playing\ Match\ Game. 
>>                                          avi
>> FFmpeg version 0.5-30.fc10, Copyright (c) 2000-2009 Fabrice Bellard, 
>> et al.
>>   configuration: --prefix=/usr --libdir=/usr/lib64 
>> --shlibdir=/usr/lib64 --mandi   r=/usr/share/man --enable-shared 
>> --enable-gpl --enable-postproc --enable-swscale --enable-avfilter 
>> --enable-avfilter-lavf --enable-pthreads --enable-x11grab --e 
>> nable-vdpau --disable-avisynth --disable-libamr-nb --disable-libamr-wb 
>> --enable-                                             libdc1394 
>> --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbi 
>>                                            n --enable-libgsm 
>> --enable-libmp3lame --enable-libschroedinger --enable-libspeex 
>>                                     --enable-libtheora 
>> --enable-libvorbis --enable-libx264 --enable-libxvid --extra 
>>                                  -cflags=-O2 -g -pipe -Wall 
>> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protecto 
>>                           r --param=ssp-buffer-size=4 -m64 
>> -mtune=generic -fPIC --disable-stripping --extr                     
>> a-cflags=-I/usr/include/nvidia-graphics 
>> --extra-ldflags=-L/usr/lib64/nvidia-grap              hics
>>   libavutil     49.15. 0 / 49.15. 0
>>   libavcodec    52.20. 0 / 52.20. 0
>>   libavformat   52.31. 0 / 52.31. 0
>>   libavdevice   52. 1. 0 / 52. 1. 0
>>   libavfilter    0. 4. 0 /  0. 4. 0
>>   libswscale     0. 7. 1 /  0. 7. 1
>>   libpostproc   51. 2. 0 / 51. 2. 0
>>   built on Mar 15 2009 13:30:30, gcc: 4.3.2 20081105 (Red Hat 4.3.2-7)
>> [mpeg4 @ 0x2684680]header damaged
>>
>> Seems stream 0 codec frame rate differs from container frame rate: inf 
>> (1/0) ->                                              90000.00 (90000/1)
>> Input #0, mpeg, from 'Playing Match Game.MOD':
>>   Duration: 00:10:11.51, start: 0.287489, bitrate: 5996 kb/s
>>     Stream #0.0[0x1e0]: Video: mpeg4, yuv420p, 90k tbr, 90k tbn
>>     Stream #0.1[0x80]: Audio: mp3, 0 channels, s16
>> File 'Playing Match Game.avi' already exists. Overwrite ? [y/N] y
>> Output #0, avi, to 'Playing Match Game.avi':
>>     Stream #0.0: Video: mpeg4, yuv420p, q=2-31, 9600 kb/s, 90k tbn, 
>> 90k tbc
>>     Stream #0.1: Audio: mp2, 0 channels, s16, 192 kb/s
>> Stream mapping:
>>   Stream #0.0 -> #0.0
>>   Stream #0.1 -> #0.1
>> [mpeg4 @ 0x2669180]timebase not supported by mpeg 4 standard
>> Error while opening codec for output stream #0.0 - maybe incorrect 
>> parameters su                                             ch as 
>> bit_rate, rate, width or height
>> [root at Diablo New Camera]#
>>
>> That is with the 44100 change.
>> _______________________________________________
>>
> 
> Your reference command line includes -acodec.  The logged version 
> doesn't.  ??
> 
>

Oops!  It got moved out of view on my VDU





More information about the mythtv-users mailing list