[MPlayer-users] mencoder mov to mpeg problems

Alex Ferrer alex at ftconsult.com
Sun Jan 5 07:16:01 CET 2003


Hi, 

I am trying to convert a quicktime .mov file to mpeg4

I am using :

mencoder test.mov -ovc frameno -o frameno.avi -oac mp3lame -lameopts
abr:br=128

Then to get a small test clip I use:

mencoder -oac copy -o /dev/null -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=1000:vhq:vpass=1 -ss 0:20 -endpos 0:30 test.mov


mencoder -oac copy -o myTestVideo.avi -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=1000:vhq:vpass=2 -ss 0:20 -endpos 0:30 test.mov


at this point when I look at myTestVideo.avi ,  the video *is* there
(and the audio too) but is all patched on green plus all sorts of
overlapped  frames. Any ideas?

BTW, I can see the original .mov perfectly well using mplayer



Regards
alx. 

- - - - - - - - - - command output below - - - - - - - -

 mencoder test.mov -ovc frameno -o frameno.avi -oac mp3lame -lameopts
abr:br=128
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale


MEncoder 0.90rc2-RPM-3.1 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CPU: Intel  (Family: 8, Stepping: 4)
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Reading /home/alex/.mplayer/codecs.conf: can't open
'/home/alex/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 49 audio & 125 video codecs
File not found: 'frameno.avi'
Reading config file /home/alex/.mplayer/mencoder: No such file or
directory
font: can't open file: /home/alex/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
success: format: 0  data: 0x0 - 0x16BBC0B
Detected QuickTime/MOV file format!
--------------
MOV track #0: 470 chunks, 0 samples
Audio bits: 16  chans: 1  rate: 22050
Fourcc: ima4
--------------
MOV track #1: 923 chunks, 6818 samples
MOV: Found unknown movie atom SMI  (21)!
Image size: 328 x 240 (24 bpp)
Display size: 328 x 240
Fourcc: SVQ3  Codec: 'Sorenson Video 3'
--------------
MOV: best streams: A: #0 (470 samples)  V: #1 (6818 samples)
[V] filefmt:7  fourcc:0x33515653  size:328x240  fps:29.97  ftime:=0.0334
==========================================================================
Opening audio decoder: [imaadpcm] IMA ADPCM audio decoder
AUDIO: 22050 Hz, 1 ch, 16 bit (0x10), ratio: 11714->44100 (93.7 kbit)
Selected audio codec: [imaadpcm] afm:imaadpcm (IMA ADPCM)
==========================================================================
MP3 audio selected
Building audio filter chain for 22050Hz/1ch/16bit ->
22050Hz/1ch/16bit...
Writing AVI header...
Pos:   0.7s     22f ( 0%)   0fps Trem:   0min   0mb  A-V:0.068 [0:122]
skip frame!!!
Pos:   2.7s     81f ( 0%)   0fps Trem:   0min   0mb  A-V:0.067 [0:125]
skip frame!!!
Pos: 151.0s   4526f ( 0%) 525fps Trem:   0min   0mb  A-V:0.068 [0:129]
skip frame!!!
Pos: 151.3s   4536f ( 0%) 523fps Trem:   0min   0mb  A-V:0.068 [0:128]
skip frame!!!
Pos: 170.3s   5108f ( 0%) 524fps Trem:   0min   0mb  A-V:-0.030 [0:128]
duplicate 1 frame(s)!!!
Pos: 170.4s   5109f ( 0%) 522fps Trem:   0min   0mb  A-V:-0.026 [0:128]
duplicate 1 frame(s)!!!
Pos: 170.4s   5110f ( 0%) 522fps Trem:   0min   0mb  A-V:-0.024 [0:128]
duplicate 1 frame(s)!!!

... and so on...

For the second command I get : 
 mencoder -oac copy -o /dev/null -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=1000:vhq:vpass=1 -ss 0:20 -endpos 0:30 test.mov
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale


MEncoder 0.90rc2-RPM-3.1 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CPU: Intel  (Family: 8, Stepping: 4)
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Reading /home/alex/.mplayer/codecs.conf: can't open
'/home/alex/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 49 audio & 125 video codecs
Detected AVI file format!
VIDEO:  [FrNo]  328x240  24bpp  29.97 fps    0.9 kbps ( 0.1 kbyte/s)
Using pass3 control file: frameno.avi
Reading config file /home/alex/.mplayer/mencoder: No such file or
directory
font: can't open file: /home/alex/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
success: format: 0  data: 0x0 - 0x16BBC0B
Detected QuickTime/MOV file format!
--------------
MOV track #0: 470 chunks, 0 samples
Audio bits: 16  chans: 1  rate: 22050
Fourcc: ima4
--------------
MOV track #1: 923 chunks, 6818 samples
MOV: Found unknown movie atom SMI  (21)!
Image size: 328 x 240 (24 bpp)
Display size: 328 x 240
Fourcc: SVQ3  Codec: 'Sorenson Video 3'
--------------
MOV: best streams: A: #-1 (0 samples)  V: #1 (6818 samples)
[V] filefmt:7  fourcc:0x33515653  size:328x240  fps:29.97  ftime:=0.0334
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 22050 Hz, 2 ch, 16 bit (0x10), ratio: 1000->88200 (8.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening video filter: [expand=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [qtvideo] Quicktime Video decoder
External func COMCTL32.dll:17
External func COMCTL32.dll:16
QuickTime6 DLLs found
QuickTime.qts patched!!! old entry=0x6693b330
theQuickTimeDispatcher catched -> 0x6693b330
Win32 Warning: Accessed uninitialized Critical Section (0x66bc4210)!
WARNING! Invalid Ptr handle!
Win32 Warning: Accessed uninitialized Critical Section (0x66bc41f8)!
### FindNext: QuickTimeEssentials.qtx
### FindNext: QuickTimeInternetExtras.qtx
### FindNext: QuickTimeEssentials.qtx
### FindNext: QuickTimeInternetExtras.qtx
### FindNext: QuickTimeEssentials.qtx
### FindNext: QuickTimeInternetExtras.qtx
theQuickTimeDispatcher catched -> 0x6693b330
theQuickTimeDispatcher catched -> 0x6693b330
InitializeQTML returned 0
Count = 1
Found it! ID = 0x100fe
ci=0x830000
ImageCodecInitialize->0  size=0 (16)
Flags: compr: 0x800420  decomp: 0x400 format: 0x2060
Codec name: Sorenson Video 3
ImageDescription size: 111
 6F 00 00 00 33 51 56 53 00 00 00 00 00 00 00 00
 03 00 05 13 20 49 4D 53 FF 03 00 00 00 01 00 00
 48 01 F0 00 00 00 48 00 00 00 48 00 00 00 00 00
 01 00 10 53 6F 72 65 6E 73 6F 6E 20 56 69 64 65
 6F 20 33 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 18 00 FF FF 00 00 00 15 53 4D 49 20 53 45
 51 48 00 00 00 05 E2 90 1E 1D C0 00 00 00 00
=============== ImageDescription at 0x8423700 ==================
idSize=0x6F  fourcc=0x53565133
ver=3 rev=4869 vendor=0x534D4920
tempQ=1023 spatQ=256  dim: 328 x 240  dpi: 4718592 x 4718592  depth: 24
dataSize=0 frameCount=1 clutID=-1
name='Sorenson Video 3'
00 00 00 15 | 53 4D 49 20 | 53 45 51 48 | 00 00 00 05
=========================================================
imgfmt: Packed YUY2 qt_imgfmt: svuy
VDec: vo config request - 328 x 240 (preferred csp: Packed YUY2)
Couldn't find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8

SwScaler: BICUBIC scaler, from Packed YUY2 to Planar YV12 using MMX2
videocodec: libavcodec (328x240 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
Selected video codec: [qtsvq3] vfm:qtvideo (win32/quicktime SVQ3
decoder)
==========================================================================
audiocodec: framecopy (format=55 chans=1 rate=22050 bits=0 bps=16025
sample=0)
Writing AVI header...
NewGWorldFromPtr returned:65536
ImageCodecPreDecompress cres=0x0
supported csp: 0x79757675 uvuy
Pos:   0.7s     22f ( 0%)   0fps Trem:   0min   0mb  A-V:0.000 [0:125]
skip frame!!!
Pos:   2.7s     81f ( 0%)  80fps Trem:   0min   0mb  A-V:0.000
[918:126]]
skip frame!!!
Pos:  30.0s    900f ( 0%)  85fps Trem:   0min   0mb  A-V:0.000 [879:127]
Writing AVI index...
Fixup AVI header...

Video stream:  879.829 kbit/s  (109978 bps)  size: 3295333 bytes  29.963
secs  900 frames

Audio stream:  127.375 kbit/s  (15921 bps)  size: 484543 bytes  30.433
secs




-- 
Alex  <alex at ftconsult.com>




More information about the MPlayer-users mailing list