[MPlayer-dev-eng] mencoder crash with dct motion estimation (cmp=3:subcmp=3:mbcmp=3 )

DD DD d2ncal2 at gmail.com
Wed Aug 23 01:30:30 CEST 2006


On 8/3/06, Michael Niedermayer <michaelni at gmx.at > wrote:
>
> Hi
>
> On Thu, Aug 03, 2006 at 03:51:19PM -0700, DD DD wrote:
> > Hi
> > mencoder (cvs trunk 07/24/2006) is segfaulting with libavcodec if I use
> > cmp=3:subcmp=3:mbcmp=3 as motion estimation. Is there something wrong
> with
> > this ?
> > Surprisingly, it works if its compiled with debug on (--enable-debug=1)
> >
> > ./mencoder -lavfopts
> i_certify_that_my_video_stream_does_not_use_b_frames
> > -quiet -of lavf -ffourcc FLV1 -ovc lavc -lavcopts
> > vcodec=flv:vbitrate=256:v4mv:mbd=2:trell:cmp=6:subcmp=6:mbcmp=6  -oac
> > mp3lame -srate 22050 -lameopts preset=64:mode=3 ia.mov -o ia.flv
> >
> > Any ideas?
>
> * your comment says =3 the command line =6
> * valgrind
> * gdb output without symbols is better then nothing ...
> * which platform & compiler did you use?
> * try make distclean
>
> [...]
>
> --
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> In the past you could go to a library and read, borrow or copy any book
> Today you'd get arrested for mere telling someone where the library is
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>




Hi

Here is the command I am using:
./mencoder  -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames
-of lavf -ffourcc FLV1 -ovc lavc  -oac mp3lame -srate 22050 -lameopts
preset=64:mode=3  ~/videos/testvid.mov -o ~/videos/testvid.flv  -lavcopts
vcodec=flv:vbitrate=256:v4mv:mbd=2:trell:mbcmp=3

MEncoder dev-SVN-r19184-4.0.2 (C) 2000-2006 MPlayer Team
.
.
.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (848x448 fourcc=31564c46 [FLV1])
[VE_LAVC] High quality encoding selected (non-realtime)!
VIDEO CODEC ID: 22
AUDIO CODEC ID: 15001, TAG: 0
Writing header...
Segmentation faultf ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.004 [0:0]


I debugged it a bit more, its crashing in ff_fdct_sse2() method.


GCC Details:

Using built-in specs.
Target: i586-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib
--enable-languages=c,c++,objc,f95,java,ada --disable-checking
--with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-java-awt=gtk
--disable-libjava-multilib --with-slibdir=/lib --with-system-zlib
--enable-shared --enable-__cxa_atexit --without-system-libunwind
--host=i586-suse-linux
Thread model: posix
gcc version 4.0.2 20050901 (prerelease) (SUSE Linux)


Machine Details:
Linux <hostname> 2.6.13-15-smp #1 SMP Tue Sep 13 14:56:15 UTC 2005 i686
athlon i386 GNU/Linux

CPU Details:
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 5
model name      : AMD Opteron(tm) Processor 246
stepping        : 8
cpu MHz         : 1992.433
cache size      : 1024 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 pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow
bogomips        : 3989.60

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 5
model name      : AMD Opteron(tm) Processor 246
stepping        : 8
cpu MHz         : 1992.433
cache size      : 1024 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 pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow
bogomips        : 3984.37


disabling sse2 in configure (had to hack configure script to do so), but it
still uses the method.


$> ./configure --with-extraincdir=$USR_DIR/include
--with-extralibdir=$USR_DIR/lib --with-codecsdir=$USR_DIR/lib/codecs
--enable-amr_nb --enable-amr_wb --prefix=$ENCAP_DIR/mplayer-trunk_07242006
--enable-crash-debug --disable-sse --disable-sse2
Detected operating system: Linux
Detected host architecture: i386
Checking for cc version ... 4.0.2, ok
Checking for host cc ... cc
Checking for cross compilation ... no
Checking for CPU vendor ... AuthenticAMD (15:5:8)
Checking for CPU type ...  AMD Opteron(tm) Processor 246
Checking for GCC & CPU optimization abilities ... k8
Checking for kernel support of mmx ... yes
Checking for kernel support of mmxext ... yes
Checking for kernel support of 3dnow ... yes
Checking for kernel support of 3dnowext ... yes
Checking for mtrr support ... yes
Checking for xmmintrin.h ... yes
Checking for mm3dnow.h ... yes
Checking for assembler support of -pipe option ... yes
Checking for assembler
(/usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/as
2.16.91.0.2) ... ok
Checking for Linux kernel version ... 2.6.13-15-smp, ok
Checking for MPlayer binary name ... mplayer
Checking for awk ... gawk
Checking for extra headers ... -I/home/dwipal/usr/include
Checking for extra libs ... -L/home/dwipal/usr/lib
Checking for -lposix ... no
Checking for -lm ... yes
Checking for langinfo ... yes
Checking for language ... using en (man pages:  en)
Checking for enable sighandler ... yes
Checking for runtime cpudetection ... no
Checking for restrict keyword ... __restrict
Checking for __builtin_expect ... yes
Checking for kstat ... no
Checking for posix4 ... no
Checking for lrintf ... yes
Checking for round ... yes
Checking for nanosleep ... yes
Checking for socklib ... yes (using -lnsl)
Checking for inet_pton() ... yes (using -lnsl)
Checking for inttypes.h (required) ... yes
Checking for int_fastXY_t in inttypes.h ... yes
Checking for word size ... 32
Checking for stddef.h ... yes
Checking for malloc.h ... yes
Checking for memalign() ... yes
Checking for alloca.h ... yes
Checking for mman.h ... yes
Checking for dynamic loader ... yes
Checking for dynamic a/v plugins support ... no
Checking for pthread ... yes (using -lpthread)
Checking for rpath ... no
Checking for iconv ... yes
Checking for sys/soundcard.h ... yes
Checking for sys/dvdio.h ... no
Checking for sys/cdio.h ... no
Checking for linux/cdrom.h ... yes
Checking for dvd.h ... no
Checking for termcap ... yes (using -lncurses)
Checking for termios ... yes (using sys/termios.h)
Checking for shm ... yes
Checking for linux devfs ... no
Checking for scandir() ... yes
Checking for strsep() ... yes
Checking for strlcpy() ... no
Checking for strlcat() ... no
Checking for fseeko() ... yes
Checking for localtime_r() ... yes
Checking for vsscanf() ... yes
Checking for swab() ... yes
Checking for POSIX select() ... yes
Checking for gettimeofday() ... yes
Checking for glob() ... yes
Checking for setenv() ... yes
Checking for sys/sysinfo.h ... yes
Checking for Samba support (libsmbclient) ... no
Checking for 3dfx ... no
Checking for tdfxfb ... no
Checking for s3fb ... no
Checking for tdfxvid ... no
Checking for tga ... yes
Checking for DirectFB headers presence ... not found
Checking for DirectFB ... no
Checking for X11 headers presence ... yes (using /usr/X11/include)
Checking for X11 ... yes (using /usr/X11R6/lib)
Checking for DPMS ... yes (using Xdpms 4)
Checking for Xv ... yes
Checking for XvMC ... no
Checking for Xinerama ... yes
Checking for Xxf86vm ... yes
Checking for XF86keysym ... yes
Checking for DGA ... 2 (using DGA 2.0)
Checking for OpenGL ... yes
Checking for /dev/mga_vid ... no
Checking for xmga ... no
Checking for GGI ... no
Checking for GGI extension: libggiwmh ... no
Checking for AA ... no
Checking for CACA ... no
Checking for SVGAlib ... no
Checking for FBDev ... no
Checking for DVB ... no (specify path to DVB/ost/include with
--with-dvbincdir=DIR)
Checking for DVB HEAD ... yes
Checking for PNG support ... yes
Checking for JPEG support ... yes
Checking for PNM support ... yes
Checking for GIF support ... yes
Checking for broken giflib workaround ... disabled
Checking for VESA support ... no
Checking for SDL ... no
Checking for NAS ... no
Checking for DXR2 ... no
Checking for DXR3/H+ ... no
Checking for IVTV TV-Out ... no
Checking for libfame ... no
Checking for OSS Audio ... yes
Checking for aRts ... no
Checking for EsounD ... no
Checking for Polyp ... no
Checking for JACK ... no
Checking for OpenAL ... no
Checking for ALSA audio ... no
Checking for Sun audio ... no
Checking for VCD support ... yes
Checking for DVD support (libmpdvdkit2) ... yes
Checking for DVD support (libdvdread) ... no (disabled by libmpdvdkit2)
Checking for DVD support (libdvdnav) ... no
Checking for cdparanoia ... no
Checking for libcdio ... no
Checking for freetype >= 2.0.9 ... yes
Checking for fontconfig ... yes
Checking for SSA/ASS support ... yes
Checking for fribidi with charsets ... no
Checking for ENCA ... no
Checking for zlib ... yes
Checking for RTC ... yes
Checking for external liblzo support ... no
Checking for mad support ... yes
Checking for Toolame ... no
Checking for Twolame ... no
Checking for OggVorbis support ... yes (internal Tremor)
Checking for libspeex (version >= 1.1 required) ... yes
Checking for OggTheora support ... yes
Checking for mp3lib support ... yes
Checking for liba52 support ... yes
Checking for libdts support ... no
Checking for libmpeg2 support ... yes
Checking for libmpcdec (musepack, version >= 1.2.1 required) ... no
Checking for FAAC (AAC encoder) support ... yes
Checking for FAAD2 (AAC) support ... yes
Checking for LADSPA plugin support ... no
Checking for Win32 codec DLL support ... yes (using
/home/dwipal/usr/lib/codecs)
Checking for Win32 loader support ... yes
Checking for XAnim DLL ... yes (using /home/dwipal/usr/lib/codecs)
Checking for RealPlayer DLL ... yes (using /home/dwipal/usr/lib/codecs)
Checking for LIVE555 Streaming Media libraries ... no
Checking for FFmpeg libavutil (static) ... yes
Checking for FFmpeg libavcodec (static) ... yes
Checking for FFmpeg libavformat (static) ... yes
Checking for FFmpeg libpostproc (static) ... yes
Checking for md5sum support ... yes
Checking for AMR narrowband ... yes
Checking for AMR narrowband, fixed point ... no
Checking for AMR wideband ... yes
Checking for libdv-0.9.5+ ... no
Checking for zr ... no
Checking for bl ... no
Checking for XviD ... yes
Checking for XviD two pass plugin ... yes
Checking for DivX4 compatibility in XviD ... no
Checking for x264 ... yes
Checking for libmp3lame (for mencoder) ... yes
Checking for mencoder ... yes
Checking for fastmemcpy ... yes
Checking for UniquE RAR File Library ... yes
Checking for TV interface ... yes
Checking for Video 4 Linux TV interface ... yes
Checking for Video 4 Linux 2 TV interface ... yes
Checking for Video 4 Linux 2/IVTV PVR interface ... no
Checking for audio select() ... yes
Checking for network ... yes
Checking for ftp ... yes
Checking for vstream client ... no
Checking for byte order ... little-endian
Checking for OSD menu ... no
Checking for QuickTime codecs ... yes
Checking for Subtitles sorting ... yes
Checking for XMMS inputplugin support ... no
Checking for inet6 ... yes
Checking for gethostbyname2 ... yes
Checking for GUI ... no
Checking for iconv program ... yes
Checking for automatic gdb attach ... yes
Checking for compiler support for -fno-PIC ... yes
Checking for compiler support for noexecstack ... yes
Checking for ftello() ... yes
Checking for VIDIX (internal) ... yes
Checking for VIDIX (external) ... no
Checking for joystick ... no
Checking for lirc ... no
Checking for lircc ... no
Creating config.mak
Creating config.h

Config files successfully generated by ./configure !

  Install prefix: /home/dwipal/encap/mplayer-trunk_07242006
  Data directory: /home/dwipal/encap/mplayer-trunk_07242006/share/mplayer
  Config direct.: /home/dwipal/encap/mplayer-trunk_07242006/etc/mplayer

  Byte order: little-endian
  Optimizing for: k8 mmx mmxext 3dnow 3dnowext mtrr

  Languages:
    Messages/GUI: en
    Manual pages:  en

  Enabled optional drivers:
    Input: ftp network tv-v4l2 tv-v4l tv mpdvdkit2 vcd dvb
    Codecs: qtx x264 xvid amr_wb amr_nb libavcodec real xanim win32 faad2
faac libmpeg2 liba52 mp3lib libtheora speex tremor(internal) libmad gif
    Audio output: oss mpegpes(dvb)
    Video output: xvidix cvidix md5sum gif89a pnm jpeg png mpegpes(dvb)
opengl dga xv x11 xover tga
    Audio filters:
  Disabled optional drivers:
    Input: vstream pvr live555 cdda dvdnav dvdread smb
    Codecs: libdv musepack libdts twolame toolame liblzo
    Audio output: sun alsa openal jack polyp esd arts dxr2 nas sdl
    Video output: winvidix bl zr zr2 ivtv dxr3 dxr2 sdl vesa fbdev svga caca
aa ggi xmga mga xvmc directfb tdfx_vid s3fb tdfxfb 3dfx
    Audio filters: ladspa

'config.h' and 'config.mak' contain your configuration options.
Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer
      compile *** DO NOT REPORT BUGS if you tweak these files ***

'make' will now compile MPlayer and 'make install' will install it.
Note: On non-Linux systems you might need to use 'gmake' instead of 'make'.

Please check mtrr settings at /proc/mtrr (see DOCS/HTML/en/video.html#mtrr)


Check configure.log if you wonder why an autodetection failed (check whether
the development headers/packages are installed).
Do not report compilation errors if you used any of the --enable-* options
(except --enable-gui and maybe --enable-debug).

If you suspect a bug, please read DOCS/HTML/en/bugreports.html.


Thanks,
Dwipal



More information about the MPlayer-dev-eng mailing list