[MPlayer-cygwin] Problems compiling mencoder with MinGW + crashes

Stefan Gürtler Stefan.guertler at stud.tum.de
Sun Jun 20 23:55:25 CEST 2004


----- Original Message -----
From: "Sascha Sommer" <saschasommer at freenet.de>
To: "Win32/CygWin porting" <mplayer-cygwin at mplayerhq.hu>
Sent: Tuesday, June 15, 2004 6:16 PM
Subject: Re: [MPlayer-cygwin] mingw mplayer rar support?


> > Sascha Sommer writes:
> > > I build mplayer streight from the mplayer sources with mingw/msys no
> extra
> > > patches are needed
> > >
>
./configure --enable-runtimecpudetection --with-codecsdir=codecs --enable-st
> > > atic --enable-debug=3
> >
> > Hmm, why do you package debug builds?  And out of curiosity: Is
>
> I don't want to build it two times and after stripping there
> shouldn't be much differences.
>
> > --enable-static necessary?  I thought (almost) everything was built
> > statically by default..
> >
>
> No idea, the static is to be sure.

I wanted to try mencoder for encoding MPEG4 on win32, and I ran into lots of
problems during complation, especially using MinGW on my P4  system running
WinXP SP1.
I have problems getting mencoder working under win32 properly in MinGW.
While Cygwin seams to work perfectly now (was much worse with
MPlayer20040616!).
As my comments easily get lost between all the mplayer output, i have
seperated the different tryes with long dash lines (------------------) and
have written the text above and below the dash lines.
Often i gave a small summary below a dash line telling what will happen in
the output below.

MinGW:

MPlayer20040620.
MSYS 1.0.9
MinGW 3.1.0-1
gcc v3.3.3-20040217
WinXP SP1 P4-3GHz

xvid v1.0.1: ./configure && make && make install
lame v3.96:  ./configure && make && make install

lame and libmp3 do not work together, I have to disable libmp3 to get
mencoder to compile.

Stefan at CF ~
$ ls /usr/local/lib/
libmp3lame.a  libmp3lame.la  xvidcore.a  xvidcore.dll

Stefan at CF ~
$ cd MPlayer-20040620

Stefan at CF ~/MPlayer-20040620
$
./configure --prefix=/opt/mplayer20040620 --with-extraincdir=/usr/local/incl
u
de --with-extralibdir=/usr/local/lib --with-codecsdir=codecs
...
Checking for XviD ... yes
Checking for DivX4 compatibility in XviD ... no
Checking for DivX4linux/DivX5linux/OpenDivX decore ... no
Checking for libmp3lame (for mencoder) ... yes
Checking for DivX4linux encore (for mencoder) ... no
Checking for mencoder ... yes
...
  Enabled optional drivers:
    Input: ftp network edl tv matroska(internal) mpdvdkit2
    Codecs: qtx xvid libavcodec real dshow/dmo win32 faad2(internal)
libmpeg2 liba52 mp3lib
    Audio output: win32 mpegpes(file)
    Video output: winvidix cvidix directx mpegpes(file) opengl tga
  Disabled optional drivers:
    Input: tv-v4l2 tv-v4l tv-bsdbt848 live.com cdda dvdread vcd dvb smb
    Codecs: opendivx libdv xanim libtheora libvorbis libmad liblzo gif
    Audio output: sgi sun alsa esd arts oss dxr2 nas sdl macosx
    Video output: xvidix bl zr zr2 dxr3 dxr2 sdl vesa gif89a jpeg png fbdev
svga caca aa ggi xmga mga dga xvmc xv x11 directfb tdfx_vid tdfxfb 3dfx
quartz
...

Stefan at CF ~/MPlayer-20040620
$ make && make install
...
C:/Programme/Stefan/msys/1.0/local/lib/libmp3lame.a(decode_i386.o)(.text+0x0
):decode_i386.c: multiple definition of `synth_1to1'
mp3lib/libMP3.a(sr1.o)(.text+0x2a73):sr1.c: first defined here
make: *** [mplayer] Error 1

Stefan at CF ~/MPlayer-20040620
$

:-(
------------------------------------------------------------------------
Now lets disable libmp3, and i can compile:

Stefan at CF ~/MPlayer-20040620
$
./configure --prefix=/opt/mplayer20040620 --with-extraincdir=/usr/local/incl
ude --with-extralibdir=/usr/local/lib --with-codecsdir=codecs --disable-mp3l
ib
...
Checking for XviD ... yes
Checking for DivX4 compatibility in XviD ... no
Checking for DivX4linux/DivX5linux/OpenDivX decore ... no
Checking for libmp3lame (for mencoder) ... yes
Checking for DivX4linux encore (for mencoder) ... no
Checking for mencoder ... yes
...
  Enabled optional drivers:
    Input: ftp network edl tv matroska(internal) mpdvdkit2
    Codecs: qtx xvid libavcodec real dshow/dmo win32 faad2(internal)
libmpeg2 liba52
    Audio output: win32 mpegpes(file)
    Video output: winvidix cvidix directx mpegpes(file) opengl tga
  Disabled optional drivers:
    Input: tv-v4l2 tv-v4l tv-bsdbt848 live.com cdda dvdread vcd dvb smb
    Codecs: opendivx libdv xanim mp3lib libtheora libvorbis libmad liblzo
gif
    Audio output: sgi sun alsa esd arts oss dxr2 nas sdl macosx
    Video output: xvidix bl zr zr2 dxr3 dxr2 sdl vesa gif89a jpeg png fbdev
svga caca aa ggi xmga mga dga xvmc xv x11 directfb tdfx_vid tdfxfb 3dfx
quartz
...
Stefan at CF ~/MPlayer-20040620
$ make && make install
...
install -m 755 -s mencoder /opt/mplayer20040620/bin/mencoder
for i in en; do \
        if test "$i" = en ; then \
                ln -sf mplayer.1 /opt/mplayer20040620/man/man1/mencoder.1 ;
\
        else \
                ln -sf mplayer.1 /opt/mplayer20040620/man/$i/man1/mencoder.1
; \
        fi ; \
done
ln: creating symbolic link `/opt/mplayer20040620/man/man1/mencoder.1' to
`mplayer.1': No such file or directory
make: *** [install] Error 1

Stefan at CF ~/MPlayer-20040620
$
:), I always get the error at linking, but building went all right.
------------------------------------------------------------------------
Now lets try to work with it.
Trying to encode the audio with lame will make mplayer crash for sure.
Some codecs/options for video encoding will make mencoder crash, too.

Stefan at CF ~/MPlayer-20040620
$ export PATH=/opt/mplayer20040620/bin:$PATH

Stefan at CF ~/MPlayer-20040620
$ mencoder.exe /d/Filme/RahXephon.avi -nosound -ovc lavc -lavcopts
vcodec=mpeg4
:mbd=1:vpass=1:vbitrate=800

CPU: Intel Pentium 4/Xeon/Celeron Foster 2949 MHz (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/codecs.conf: Can't
open 'C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/codecs.conf': No such
file or directory
Reading /opt/mplayer20040620/etc/mplayer/codecs.conf: Can't open
'/opt/mplayer20040620/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file
C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/mencoder: No such file or
directory
font: can't open file:
C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/font/font.desc
font: can't open file: /opt/mplayer20040620/share/mplayer/font/font.desc
success: format: 0  data: 0x0 - 0x99C5C
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
VIDEO:  [div3]  352x236  24bpp  30,000 fps  677,8 kbps (82,7 kbyte/s)
[V] filefmt:3  fourcc:0x33766964  size:352x236  fps:30,00  ftime:=0,0333
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp header.
VDec: vo config request - 352 x 236 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (352x236 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!

MESSAGE BOX:
mencoder.exe - Fehler in Anwendung
Die Ausnahme "unknown software exception" (0xc000096) ist in der Anwendung
an der Stelle 0x006a0c53 aufgetreten. ...

Stefan at CF ~/MPlayer-20040620
$

Stefan at CF ~/MPlayer-20040620
$ mencoder.exe /d/Filme/RahXephon.avi -nosound -ovc lavc -lavcopts
vcodec=mjpeg
 -o test.avi
OK.
---------------------------------------------------------------------------

Stefan at CF ~/MPlayer-20040620
$ mencoder.exe /d/Filme/RahXephon.avi -nosound -ovc lavc -lavcopts
vcodec=mpeg4
 -o test.avi
MEncoder dev-CVS-040620-18:30-3.3.3 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Foster 2961 MHz (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/codecs.conf: Can't
open
'C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/codecs.conf': No such file
or                                              directory
Reading /opt/mplayer20040620/etc/mplayer/codecs.conf: Can't open
'/opt/mplayer20
040620/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file
C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/mencoder: N
o such file or directory
font: can't open file:
C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/font/fon
t.desc
font: can't open file: /opt/mplayer20040620/share/mplayer/font/font.desc
success: format: 0  data: 0x0 - 0x99C5C
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
VIDEO:  [div3]  352x236  24bpp  30,000 fps  677,8 kbps (82,7 kbyte/s)
[V] filefmt:3  fourcc:0x33766964  size:352x236  fps:30,00  ftime:=0,0333
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp h                                             eader.
VDec: vo config request - 352 x 236 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (352x236 fourcc=58564944 [DIVX])

MESSAGE BOX:
mencoder.exe - Fehler in Anwendung
Die Ausnahme "unknown software exception" (0xc000096) ist in der Anwendung
an der Stelle 0x006a0c53 aufgetreten. ...

Stefan at CF ~/MPlayer-20040620
$

Stefan at CF ~/MPlayer-20040620
$ mencoder.exe /d/Filme/RahXephon.avi -oac mp3lame -lameopts preset=96  -ovc
lavc -lavcopts vcodec=mjpeg -o test.avi
MEncoder dev-CVS-040620-18:30-3.3.3 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Foster 2959 MHz (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/codecs.conf: Can't
open 'C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/codecs.conf': No such
file or directory
Reading /opt/mplayer20040620/etc/mplayer/codecs.conf: Can't open
'/opt/mplayer20040620/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file
C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/mencoder: No such file or
directory
font: can't open file:
C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/font/font.desc
font: can't open file: /opt/mplayer20040620/share/mplayer/font/font.desc
success: format: 0  data: 0x0 - 0x99C5C
AVI file format detected.
VIDEO:  [div3]  352x236  24bpp  30,000 fps  677,8 kbps (82,7 kbyte/s)
[V] filefmt:3  fourcc:0x33766964  size:352x236  fps:30,00  ftime:=0,0333
==========================================================================
Requested audio codec family [mp3] (afm=mp3lib) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 8000->192000 (64,0 kbit)
Selected audio codec: [ffmp3] afm:ffmpeg (FFmpeg MPEG layer-3 audio decoder)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
MP3 audio selected
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp header.

preset=96

VDec: vo config request - 352 x 236 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (352x236 fourcc=47504a4d [MJPG])

MESSAGE BOX:
mencoder.exe - Fehler in Anwendung
Die Ausnahme "unknown software exception" (0xc000096) ist in der Anwendung
an der Stelle 0x006a0c53 aufgetreten. ...


Stefan at CF ~/MPlayer-20040620
$

Stefan at CF ~/MPlayer-20040620
$ mencoder.exe /d/Filme/RahXephon.avi -oac copy  -ovc lavc -lavcopts
vcodec=mjpeg -o test.avi
MEncoder dev-CVS-040620-18:30-3.3.3 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Foster 2956 MHz (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/codecs.conf: Can't
open 'C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/codecs.conf': No such
file or directory
Reading /opt/mplayer20040620/etc/mplayer/codecs.conf: Can't open
'/opt/mplayer20040620/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file
C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/mencoder: No such file or
directory
font: can't open file:
C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/font/font.desc
font: can't open file: /opt/mplayer20040620/share/mplayer/font/font.desc
success: format: 0  data: 0x0 - 0x99C5C
AVI file format detected.
VIDEO:  [div3]  352x236  24bpp  30,000 fps  677,8 kbps (82,7 kbyte/s)
[V] filefmt:3  fourcc:0x33766964  size:352x236  fps:30,00  ftime:=0,0333
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
audiocodec: framecopy (format=55 chans=2 rate=48000 bits=0 bps=8000
sample=1)
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp header.
VDec: vo config request - 352 x 236 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.

MESSAGE BOX:
mencoder.exe - Fehler in Anwendung
Die Ausnahme "unknown software exception" (0xc000096) ist in der Anwendung
an der Stelle 0x006a0c53 aufgetreten. ...


Stefan at CF ~/MPlayer-20040620
------------------------------------------------------------------------
Now lets try to link lame statically and see if its gets better.
Crashes because of encoding lame will stop, but xvid will not be enabled no
more.

Stefan at CF ~/MPlayer-20040620
$
./configure --prefix=/opt/mplayer20040620 --with-extraincdir=/usr/local/incl
ude --with-extralibdir=/usr/local/lib --with-c
odecsdir=codecs --disable-mp3lib --enable-static
...
Checking for XviD ... no
Checking for DivX4linux/DivX5linux/OpenDivX decore ... no
Checking for libmp3lame (for mencoder) ... yes
Checking for DivX4linux encore (for mencoder) ... no
Checking for mencoder ... yes

...
 Enabled optional drivers:
    Input: ftp network edl tv matroska(internal) mpdvdkit2
    Codecs: qtx libavcodec real dshow/dmo win32 faad2(internal) libmpeg2
liba52
    Audio output: win32 mpegpes(file)
    Video output: winvidix cvidix directx mpegpes(file) opengl tga
  Disabled optional drivers:
    Input: tv-v4l2 tv-v4l tv-bsdbt848 live.com cdda dvdread vcd dvb smb
    Codecs: opendivx xvid libdv xanim mp3lib libtheora libvorbis libmad
liblzo gif
    Audio output: sgi sun alsa esd arts oss dxr2 nas sdl macosx
    Video output: xvidix bl zr zr2 dxr3 dxr2 sdl vesa gif89a jpeg png fbdev
svga caca aa ggi xmga mga dga xvmc xv x11 directfb tdfx_vid tdfxfb 3dfx
quartz
...

Stefan at CF ~/MPlayer-20040620
$ make && make install
install -m 755 -s mencoder /opt/mplayer20040620/bin/mencoder
for i in en; do \
        if test "$i" = en ; then \
                ln -sf mplayer.1 /opt/mplayer20040620/man/man1/mencoder.1 ;
\
        else \
                ln -sf mplayer.1 /opt/mplayer20040620/man/$i/man1/mencoder.1
; \
        fi ; \
done
ln: creating symbolic link `/opt/mplayer20040620/man/man1/mencoder.1' to
`mplayer.1': No such file or directory
make: *** [install] Error 1

Stefan at CF ~/MPlayer-20040620
$

$ mencoder.exe /d/Filme/RahXephon.avi -oac copy  -ovc lavc -lavcopts
vcodec=mjpeg -o test.avi
MEncoder dev-CVS-040620-19:00-3.3.3 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Foster 3714 MHz (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/codecs.conf: Can't
open 'C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/codecs.conf': No such
file or directory
Reading /opt/mplayer20040620/etc/mplayer/codecs.conf: Can't open
'/opt/mplayer20040620/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file
C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/mencoder: No such file or
directory
font: can't open file:
C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/font/font.desc
font: can't open file: /opt/mplayer20040620/share/mplayer/font/font.desc
success: format: 0  data: 0x0 - 0x99C5C
AVI file format detected.
VIDEO:  [div3]  352x236  24bpp  30,000 fps  677,8 kbps (82,7 kbyte/s)
[V] filefmt:3  fourcc:0x33766964  size:352x236  fps:30,00  ftime:=0,0333
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
audiocodec: framecopy (format=55 chans=2 rate=48000 bits=0 bps=8000
sample=1)
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp header.
VDec: vo config request - 352 x 236 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (352x236 fourcc=47504a4d [MJPG])
Pos:   0,0s      2f (10%)   0fps Trem:   0min   0mb  A-V:0,003 [0:0]
1 duplicate frame(s)!
Pos:   6,6s    198f (101%)   0fps Trem:   0min   2mb  A-V:0,033 [3163:64]
Writing AVI index...
Fixing AVI header...
ODML: vprp aspect is 16384:10984.

Video stream: 3163,879 kbit/s  (395484 bps)  size: 2610200 bytes  6,600 secs
198 frames

Audio stream:   64,000 kbit/s  (8000 bps)  size: 56640 bytes  7,080 secs

Stefan at CF ~/MPlayer-20040620
$
Stefan at CF ~/MPlayer-20040620
$ mencoder.exe /d/Filme/RahXephon.avi -oac mp3lame -lameopts preset=96  -ovc
lavc -lavcopts vcodec=mjpeg -o test.avi
MEncoder dev-CVS-040620-19:00-3.3.3 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Foster 2976 MHz (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/codecs.conf: Can't
open 'C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/codecs.conf': No such
file or directory
Reading /opt/mplayer20040620/etc/mplayer/codecs.conf: Can't open
'/opt/mplayer20040620/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file
C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/mencoder: No such file or
directory
font: can't open file:
C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/font/font.desc
font: can't open file: /opt/mplayer20040620/share/mplayer/font/font.desc
success: format: 0  data: 0x0 - 0x99C5C
AVI file format detected.
VIDEO:  [div3]  352x236  24bpp  30,000 fps  677,8 kbps (82,7 kbyte/s)
[V] filefmt:3  fourcc:0x33766964  size:352x236  fps:30,00  ftime:=0,0333
==========================================================================
Requested audio codec family [mp3] (afm=mp3lib) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 8000->192000 (64,0 kbit)
Selected audio codec: [ffmp3] afm:ffmpeg (FFmpeg MPEG layer-3 audio decoder)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
MP3 audio selected
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp header.

preset=96

VDec: vo config request - 352 x 236 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (352x236 fourcc=47504a4d [MJPG])
Pos:   0,0s      2f ( 3%)   0fps Trem:   0min   0mb  A-V:0,003 [0:0]
1 duplicate frame(s)!
Pos:   0,8s     24f (13%)   0fps Trem:   0min   1mb  A-V:0,068 [0:97]
Skipping frame!
Pos:   6,6s    198f (101%) 180fps Trem:   0min   2mb  A-V:0,046 [3165:98]
Writing AVI index...
Fixing AVI header...
ODML: vprp aspect is 16384:10984.

Video stream: 3165,868 kbit/s  (395733 bps)  size: 2598650 bytes  6,567 secs
198 frames

Audio stream:   98,386 kbit/s  (12298 bps)  size: 87072 bytes  7,080 secs

Stefan at CF ~/MPlayer-20040620
$

Stefan at CF ~/MPlayer-20040620
$ mencoder.exe /d/Filme/RahXephon.avi -oac mp3lame -lameopts preset=96  -ovc
lavc -lavcopts vcodec=mpeg4 -o test.avi
MEncoder dev-CVS-040620-19:00-3.3.3 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Foster 2966 MHz (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/codecs.conf: Can't
open 'C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/codecs.conf': No such
file or directory
Reading /opt/mplayer20040620/etc/mplayer/codecs.conf: Can't open
'/opt/mplayer20040620/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file
C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/mencoder: No such file or
directory
font: can't open file:
C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/font/font.desc
font: can't open file: /opt/mplayer20040620/share/mplayer/font/font.desc
success: format: 0  data: 0x0 - 0x99C5C
AVI file format detected.
VIDEO:  [div3]  352x236  24bpp  30,000 fps  677,8 kbps (82,7 kbyte/s)
[V] filefmt:3  fourcc:0x33766964  size:352x236  fps:30,00  ftime:=0,0333
==========================================================================
Requested audio codec family [mp3] (afm=mp3lib) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 8000->192000 (64,0 kbit)
Selected audio codec: [ffmp3] afm:ffmpeg (FFmpeg MPEG layer-3 audio decoder)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
MP3 audio selected
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp header.

preset=96

VDec: vo config request - 352 x 236 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (352x236 fourcc=58564944 [DIVX])
Pos:   0,0s      2f ( 3%)   0fps Trem:   0min   0mb  A-V:0,003 [0:0]
1 duplicate frame(s)!
Pos:   0,8s     24f (13%)   0fps Trem:   0min   0mb  A-V:0,068 [0:97]
Skipping frame!
Pos:   6,6s    198f (101%) 170fps Trem:   0min   0mb  A-V:0,046 [705:98]
Writing AVI index...
Fixing AVI header...
ODML: vprp aspect is 16384:10984.

Video stream:  705,439 kbit/s  (88179 bps)  size: 579048 bytes  6,567 secs
198 frames

Audio stream:   98,386 kbit/s  (12298 bps)  size: 87072 bytes  7,080 secs

Stefan at CF ~/MPlayer-20040620
$

Stefan at CF ~/MPlayer-20040620
$ mencoder.exe /d/Filme/RahXephon.avi -nosound -ovc lavc -lavcopts
vcodec=mpeg4:mbd=1:vqmin=2:vpass=1 -o /dev/null
MEncoder dev-CVS-040620-19:00-3.3.3 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Foster 2972 MHz (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/codecs.conf: Can't
open 'C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/codecs.conf': No such
file or directory
Reading /opt/mplayer20040620/etc/mplayer/codecs.conf: Can't open
'/opt/mplayer20040620/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file
C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/mencoder: No such file or
directory
font: can't open file:
C:/Programme/Stefan/msys/1.0/home/Stefan/mplayer/font/font.desc
font: can't open file: /opt/mplayer20040620/share/mplayer/font/font.desc
success: format: 0  data: 0x0 - 0x99C5C
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
VIDEO:  [div3]  352x236  24bpp  30,000 fps  677,8 kbps (82,7 kbyte/s)
[V] filefmt:3  fourcc:0x33766964  size:352x236  fps:30,00  ftime:=0,0333
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp header.
VDec: vo config request - 352 x 236 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (352x236 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!


MESSAGE BOX:
mencoder.exe - Fehler in Anwendung
Die Ausnahme "unknown software exception" (0xc000096) ist in der Anwendung
an der Stelle 0x0069ea73 aufgetreten. ...

Stefan at CF ~/MPlayer-20040620
$

$ mencoder.exe /d/Filme/RahXephon.avi -nosound -ovc lavc -lavcopts
vcodec=mpeg4:vqmin=2 -o /dev/null OK!
$ mencoder.exe /d/Filme/RahXephon.avi -nosound -ovc lavc -lavcopts
vcodec=mpeg4:vpass=1 -o /dev/null OK!
$ mencoder.exe /d/Filme/RahXephon.avi -nosound -ovc lavc -lavcopts
vcodec=mpeg4:vqmin=2:vpass=1 -o /dev/null ERROR!
$ mencoder.exe /d/Filme/AI_MPEG4/AI_AutoGK.avi -nosound -ovc lavc -lavcopts
vcodec=mpeg4:vqmin=2:mbd=1:vpass=1 -o /dev/null OK!
$ mencoder.exe /d/Filme/AI_MPEG4/AI_AutoGK.avi -oac mp3lame -lameopts
preset=128 -ovc lavc -lavcopts vcodec=mpeg4:vqscale=3:mbd=1 -o test1.avi OK!
$ mencoder.exe /d/Filme/AI_MPEG4/AI_AutoGK.avi -oac mp3lame -lameopts
cbr:br=128 -ovc lavc -lavcopts vcodec=mpeg4:vqscale=3:mbd=1 -o test1.avi OK!
$ mencoder.exe /d/Filme/AI_MPEG4/AI_AutoGK.avi -oac mp3lame -lameopts
cbr:br=128 -ovc lavc -lavcopts vcodec=mpeg4:vqscale=3:mbd=1:vpass=1 -o
test1.avi ERROR!
$ mencoder.exe /d/Filme/AI_MPEG4/AI_AutoGK.avi -oac mp3lame -lameopts
cbr:br=128 -ovc lavc -lavcopts vcodec=mpeg4:vbitrat=1800:mbd=1:vpass=1 -o
test1.avi ERROR!


Without linking lame statically, no sound encoding is possible. But then
xvid is not found anymore.
Still encoding with lavc is not possible without problems. The lavcopts that
make mencoder crash vary form file to file that is to be encoded!
------------------------------------------------------------------------
------------------------------------------------------------------------

Now lets try on cygwin:
Here lame works without adding --enable-static. And i can not get mencoder
crashing.

Stefan at CF ~/MPlayer-20040620
$ ls /usr/local/lib
libmp3lame.a  libmp3lame.dll.a  libmp3lame.la  xvidcore.a  xvidcore.dll

Stefan at CF ~
$ tar xfj MPlayer-20040620.tar.bz2

Stefan at CF ~
$ cd MPlayer-20040620

$
./configure --prefix=/opt/mplayer20040620 --with-extraincdir=/usr/local/incl
ude:/opt/gnome/include --with-extralibdir=/usr/local/lib:/opt/gnome/lib --wi
th-codecsdir=codecs --enable-vidix --enable-gui
...
Checking for XviD ... yes
Checking for DivX4 compatibility in XviD ... no
Checking for DivX4linux/DivX5linux/OpenDivX decore ... no
Checking for libmp3lame (for mencoder) ... yes
Checking for DivX4linux encore (for mencoder) ... no
Checking for mencoder ... yes
...
  Enabled optional drivers:
    Input: ftp network edl tv matroska(internal) mpdvdkit2
    Codecs: qtx xvid libavcodec real xanim dshow/dmo win32 faad2(internal)
libmpeg2 liba52 mp3lib
bvorbis gif
    Audio output: oss win32 mpegpes(file)
    Video output: xvidix winvidix cvidix directx gif89a jpeg png
mpegpes(file) opengl x11 xover tg

  Disabled optional drivers:
    Input: tv-v4l2 tv-v4l tv-bsdbt848 live.com cdda dvdread vcd dvb smb
    Codecs: opendivx libdv libtheora libmad liblzo
    Audio output: sgi sun alsa esd arts dxr2 nas sdl macosx
    Video output: bl zr zr2 dxr3 dxr2 sdl vesa fbdev svga caca aa ggi xmga
mga dga xvmc xv directf
tdfx_vid tdfxfb 3dfx quartz
...

Stefan at CF ~/MPlayer-20040620
$ make && make install

All OK, even no linker error.

Stefan at CF ~/MPlayer-20040620
$ export PATH=/opt/mplayer20040620/bin:$PATH

$ mencoder.exe d/Filme/RahXephon.avi -oac copy -ovc lavc vcodec=mjepec -o
test.avi OK!
$ mencoder.exe d/Filme/RahXephon.avi -oac mp3lame -lameopts preset=96 -ovc
lavc vcodec=mjepec -o test.avi OK!
$ mencoder.exe d/Filme/RahXephon.avi -oac mp3lame -lameopts preset=96 -ovc
lavc vcodec=mpeg4 -o test.avi OK!
$ mencoder.exe d/Filme/RahXephon.avi -oac mp3lame -lameopts preset=96 -ovc
lavc vcodec=mpeg4:vqscale=3:mbd=1 -o test.avi OK!
$ mencoder.exe d/Filme/RahXephon.avi -oac mp3lame -lameopts preset=96 -ovc
lavc vcodec=mpeg4:vqscale=3:mbd=1:vpass=1 -o test.avi OK!
$ mencoder.exe d/Filme/RahXephon.avi -oac mp3lame -lameopts preset=96 -ovc
lavc vcodec=mpeg4:vqscale=3:mbd=1:vpass=2 -o test.avi OK!

Looks like everything works here.

Is that an SSE issue with MinGW? Any idea how to solve the problems with
msys?

Stefan




More information about the MPlayer-cygwin mailing list