[MPlayer-cygwin] mencoder problems

Jon Ewing jon.ewing at mediasurface.com
Fri Jan 10 15:44:53 CET 2003


Hello,

I'm trying to get mencoder to work in order to convert some MPEG2 files
from my TV capture card into MPEG4. I've tried using both 2 and 3 pass
encoding, but both seem to fail.

I'm using the following commands:

1) mencoder test.mpg -ovc frameno -oac mp3lame -lameopts vbr=3 
	-o frameno.avi

2) mencoder test.mpg -oac copy -ovc lavc 
	-lavcopts vcodec=mpeg4:vpass=1:vbitrate=18461
	-o test.avi

3) mencoder test.mpg -oac copy -ovc lavc 
	-lavcopts vcodec=mpeg4:vpass=2:vbitrate=18461
	-o test.avi

Line 1) seems to work OK - a lot of lines like:

  Pos:  53.9s   1364f (18%)  68fps Trem:   1min   4mb  A-V:0.083 [0:118]
  skip frame!!!

are produced with the first number (53.9s) going all the way up to the
length of the video file and the % number hitting 100. At the end it
prints:

  Writing AVI index...
  Fixup AVI header... 
  Recommended video bitrate for 650MB CD: 18461
  Recommended video bitrate for 700MB CD: 19892
  Recommended video bitrate for 800MB CD: 22752
  Recommended video bitrate for 2 x 650MB CD: 37056
  Recommended video bitrate for 2 x 700MB CD: 39916
  Recommended video bitrate for 2 x 800MB CD: 45638

Using the lowest of these bitrates as an example, line 2) then produces
a lot of lines like:

  Pos:  28.2s    717f ( 9%)  18fps Trem:   6min   9mb  A-V:0.000
[153:117]
  skip frame!!!    

However, mixed in with these lines are lines like:

  @@@ libmpeg2 returned from sig11... (bad file?) @@@  A-V:0.000
[160:117]
 
and

  Encrypted VOB file (not compiled with libcss support)! Read
DOCS/cd-dvd.html.

Also, this pass seems to stop very early (42.2seconds through a
300second video, or 14%),
though never directly after an error like those above. At the end if
prints:

  Writing AVI index...
  Fixup AVI header...

  Video stream:  153.882 kbit/s  (19235 bps)  size: 812497 bytes  42.240
secs  1090 frames

  Audio stream:  117.897 kbit/s  (14737 bps)  size: 629568 bytes  42.720
secs

even though the original video was much longer.

Finally, line 3) causes a core dump. The total output from it is copied
to the bottom of this message.

Has anyone had any success doing this kind of thing yet?

Thanks

jon.


=========

jon at rothko (/cygdrive/g/Apps/tv stuff) % mencoder testVid.mpg -oac copy
-ovc lavc -lavcopts vcodec=mpeg4:vpass=2:vbitrate=18461 -o 
test.avi 


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

CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner (Family: 6,
Stepping: 3)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Reading /home/Administrator/.mplayer/codecs.conf: can't open
'/home/Administrator/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 49 audio & 125 video codecs
Detected AVI file format!
VIDEO:  [FrNo]  720x576  24bpp  25.00 fps    0.8 kbps ( 0.1 kbyte/s)
Using pass3 control file: frameno.avi
Reading config file /home/Administrator/.mplayer/mencoder: No such file
or directory
font: can't open file: /home/Administrator/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
success: format: 0  data: 0x0 - 0xAA5AAE0
Detected MPEG-PS file format!
VIDEO:  MPEG2  720x576  (aspect 3)  25.00 fps  18750.0 kbps (2343.8
kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
Opening video filter: [expand=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
========================================================================
==
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
Couldn't find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
Sorry, selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder v2.0
libmpeg2: Using MMXEXT for IDCT transform
libmpeg2: Using MMXEXT for motion compensation
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
videocodec: libavcodec (720x576 fourcc=58564944 [DIVX])
2pass failed: reading from filename=divx2pass.log
FATAL: Cannot initialize video driver!
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg12] vfm:ffmpeg (FFmpeg MPEG 1/2)
========================================================================
==
audiocodec: framecopy (format=55 chans=2 rate=48000 bits=0 bps=14824
sample=0)
Writing AVI header...
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
videocodec: libavcodec (720x576 fourcc=58564944 [DIVX])
2pass failed: reading from filename=divx2pass.log
FATAL: Cannot initialize video driver!
init_vo failed
mp_image: Unknown out_fmt: 0x1480030m:   0min   0mb  A-V:0.000 [0:0]
Segmentation fault (core dumped)



More information about the MPlayer-cygwin mailing list