[MPlayer-users] bugreport: mencoder hangs at beginning of 2nd video pass

Andrea Borgia borgia at students.cs.unibo.it
Sat Nov 2 01:02:02 CET 2002


Problem description:
--------------------

Trying to encode a dvd of mine: audio encoding runs ok, first video pass
runs ok (produces valid AVI file playable both by MPlayer and Windows Media
Player), second video pass truncates output from previous pass to 0 bytes
and hangs at 100% cpu usage doing nothing (strace -p <mencoder-pid> output
is blank).

Tests have been run with all combinations of the following items:
-MPlayer 0.90pre9 and current cvs (also ffmpeg cvs is current)
-gcc-2.95 (from Debian woody) and gcc-3.2 (from Debian testing)
-output on ext3 partition / output on FAT32 partition
-full dvd / grabbed clip from one random chapter

Final result is the same: file truncation and process hanging. I'm including
information about X and sound drivers for completeness' sake, but the script
for the encoding is run on console so I doubt it matters much. I'm including
only the output from one specific run (current cvs built with gcc-3.2) on
the smaller clip, as the result is the same of the complete disc.


Files uploaded in ftp incoming (under dir dangthings):
------------------------------------------------------

dangthings-clip.vob (grabbed clip)
dangthings-clip-frameno.avi (renamed from frameno.avi)
mencoder-dangthings-clip-audio-complete.log.bz2
dangthings-clip-video1.avi (renamed; output from video pass 1)
mencoder-dangthings-clip-video1-complete.log.bz2
dangthings-clip-divx2pass.log.bz2 (renamed)
mencoder-dangthings-clip-video2-complete.log2


Script used (on full disc):
---------------------------

rm -f frameno.avi
mencoder -dvd 1 -oac mp3lame -lameopts cbr:br=96:aq=0 -ovc frameno -o frameno.avi
mencoder -dvd 1 -sws 2 -vop scale=512:384,crop=700:572:12:0,pp=0x20000 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=800:vhq:vme=1:keyint=100:vqdiff=5:vqmax=20:vqmin=4:v4mv:vratetol=4:vrc_maxrate=2400:vrc_minrate=400:vpass=1 -pass 1 -oac copy -o "Private - Dangerous Things.avi"
mencoder -dvd 1 -sws 2 -vop scale=512:384,crop=700:572:12:0,pp=0x20000 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=800:vhq:vme=1:keyint=100:vqdiff=5:vqmax=20:vqmin=4:v4mv:vratetol=4:vrc_maxrate=2400:vrc_minrate=400:vpass=2 -pass 2 -oac copy -o "Private - Dangerous Things.avi"


System information:
-------------------

System: Debian GNU/Linux 3.0 (new compiler and libc added from "testing"),
	with all available updates installed
Kernel version: Linux nausicaa 2.4.19-nausicaa #1 Sat Oct 26 15:57:09 CEST 2002 i686 unknown
libc version: 2.2.5-14.3
X version: XFree86 Version 4.1.0.1 / X Window System
	(protocol Version 11, revision 0, vendor release 6510)
	Release Date: 21 December 2001
gcc-2 version: gcc version 2.95.4 20011002 (Debian prerelease)
gcc-3 version: gcc version 3.2.1 20020924 (Debian prerelease)
ld version: GNU ld version 2.13.90.0.10 20021010 Debian GNU/Linux
binutils version: GNU assembler 2.13.90.0.10 20021010 Debian GNU/Linux


Hardware and drivers:
---------------------

cpu info:
	processor       : 0
	vendor_id       : AuthenticAMD
	cpu family      : 6
	model           : 6
	model name      : AMD Athlon(TM) XP1700+
	stepping        : 2
	cpu MHz         : 1477.400
	cache size      : 256 KB
	fdiv_bug        : no
	hlt_bug         : no
	f00f_bug        : no
	coma_bug        : no
	fpu             : yes
	fpu_exception   : yes
	cpuid level     : 1
	wp              : yes
	flags           : fpu vme de tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow
	bogomips        : 2949.12
video card: Matrox G400 single-head
video driver: X builtin
sound card and driver: es1371, libarts 2.2.2-13.woody.3


Library information:
--------------------

libmad0:	0.14.2b-3
libvorbis0:	1.0rc3-1
libogg0:	1.0rc3-1
libdv2: 	0.98-2.1
libdivxdecore0:	5.0.1-1
libpng2:	1.0.12-3.woody.2
zlib1g:		1.1.4-1
libjpeg62:	6b-5
libasound2:	0.9.0beta10a-3
libncurses5:	5.2.20020112a-7
libdivxencore0:	5.0.1-1
liblame0:	3.92-0.0
libpopt0:	1.6.2-7
libsdl1.2debian-oss:	 1.2.4-1
xlibs:		4.1.0-16


Configure options:
------------------

--cc=gcc-3.2 (NOTE: only for tests with gcc-3.2)
--disable-runtime-cpudetection --enable-gui --enable-fbdev
--with-win32libdir=/usr/local/lib/win32/w32codec-0.90/ --enable-largefiles
--language=en --enable-fbdev=nocopy --with-extraincdir=/usr/include/videolan
--disable-xvid --disable-tv --disable-dvdnav


Output from configure (gcc-2.x / MPlayer 0.90pre9):
---------------------------------------------------

Config files successfully generated by ./configure !

  Install prefix: /usr/local
  Data directory: /usr/local/share/mplayer
  Config direct.: /usr/local/etc/mplayer

  Byte order: Little Endian
  Optimizing for: i686 mmx mmx2 3dnow 3dnowex sse mtrr

  Enabled optional drivers:
    Input: network mpdvdkit2 vcd
    Codecs: divx5linux libdv libavcodec real xanim directshow win32 libvorbis libmad
    Audio output: alsa9 arts oss nas sdl mpegpes(file)
    Video output: xvidix zr sdl vesa gif89a jpeg png mpegpes(file) fbdev svga ggi opengl dga xv x11
  Disabled optional drivers:
    Input: tv-v4l tv-bsdbt848 tv cdda dvdnav dvdread dvdcss
    Codecs: divx4linux xvid lzo
    Audio output: sgi sun dxr2
    Video output: bl dxr3 dxr2 directx aa xmga mga directfb tdfxfb 3dfx


Output from configure (gcc-3.2 / MPlayer 0.90pre9):
---------------------------------------------------

Config files successfully generated by ./configure !

  Install prefix: /usr/local
  Data directory: /usr/local/share/mplayer
  Config direct.: /usr/local/etc/mplayer

  Byte order: Little Endian
  Optimizing for: athlon-xp mmx mmx2 3dnow 3dnowex sse mtrr

  Enabled optional drivers:
    Input: network mpdvdkit2 vcd
    Codecs: divx5linux libdv libavcodec real xanim directshow win32 libvorbis libmad
    Audio output: alsa9 arts oss nas sdl mpegpes(file)
    Video output: xvidix zr sdl vesa gif89a jpeg png mpegpes(file) fbdev svga ggi opengl dga xv x11
  Disabled optional drivers:
    Input: tv-v4l tv-bsdbt848 tv cdda dvdnav dvdread dvdcss
    Codecs: divx4linux xvid lzo
    Audio output: sgi sun dxr2
    Video output: bl dxr3 dxr2 directx aa xmga mga directfb tdfxfb 3dfx


Output from configure (gcc-2.95 / MPlayer cvs):
-----------------------------------------------

Config files successfully generated by ./configure !

  Install prefix: /usr/local
  Data directory: /usr/local/share/mplayer
  Config direct.: /usr/local/etc/mplayer

  Byte order: Little Endian
  Optimizing for: i686 mmx mmx2 3dnow 3dnowex sse mtrr

  Enabled optional drivers:
    Input: network mpdvdkit2 vcd
    Codecs: divx5linux libdv libavcodec real xanim directshow win32 libvorbis libmad
    Audio output: alsa9 arts oss nas sdl mpegpes(file)
    Video output: xvidix zr sdl vesa gif89a jpeg png mpegpes(file) fbdev svga ggi opengl dga xv x11
  Disabled optional drivers:
    Input: tv-v4l tv-bsdbt848 tv cdda dvdnav dvdread dvdcss
    Codecs: divx4linux xvid liblzo
    Audio output: sgi sun dxr2 win32
    Video output: bl dxr3 dxr2 directx aa xmga mga directfb tdfxfb 3dfx


Output from configure (gcc-3.2 / MPlayer cvs):
----------------------------------------------

Config files successfully generated by ./configure !

  Install prefix: /usr/local
  Data directory: /usr/local/share/mplayer
  Config direct.: /usr/local/etc/mplayer

  Byte order: Little Endian
  Optimizing for: athlon-xp mmx mmx2 3dnow 3dnowex sse mtrr

  Enabled optional drivers:
    Input: network mpdvdkit2 vcd
    Codecs: divx5linux libdv libavcodec real xanim directshow win32 libvorbis libmad
    Audio output: alsa9 arts oss nas sdl mpegpes(file)
    Video output: xvidix zr sdl vesa gif89a jpeg png mpegpes(file) fbdev svga ggi opengl dga xv x11
  Disabled optional drivers:
    Input: tv-v4l tv-bsdbt848 tv cdda dvdnav dvdread dvdcss
    Codecs: divx4linux xvid liblzo
    Audio output: sgi sun dxr2 win32
    Video output: bl dxr3 dxr2 directx aa xmga mga directfb tdfxfb 3dfx





--
Mä muistan sen kirkkaan päivän, sen kesän ja sen valon häivän
Heinä haisi, puut tuoksui, linnut lauloi vaan
Ja Lada ajaa kylän raitilla, Lada ajaa ja stereot soittaa




More information about the MPlayer-users mailing list