[MPlayer-users] "get_buffer() failed, Segmentation fault" in mencoder-1.0pre1 with -ovc lavc

Petr Bavorovsky petr at vt.cs.nstu.ru
Thu Sep 25 08:38:44 CEST 2003


	Hello

Here is mencoder command line and output. Some mencoder messages are in 
Russian, I left them as is, just skip.

----------------------

$ mencoder /mnt/cd/GLADIATOR/VIDEO_TS/VTS_01_7.VOB -vf 
crop=712:436:4:74,scale=712:-2 -o 1.avi -oac copy -ovc lavc
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale

MEncoder 1.0pre1-3.2.2 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Athlon TB Thunderbird (Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Скомпилировано для x86 CPU со следующими расширениями: MMX MMX2 3DNow 3DNowEx

Reading /home/petr/.mplayer/codecs.conf: Can't open 
'/home/petr/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open 
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Используется встроенный codecs.conf
Файл не найден: 'frameno.avi'
Failed to open frameno.avi
Reading config file /home/petr/.mplayer/mencoder: No such file or directory
success: format: 0  data: 0x0 - 0x27D1000
Обнаружен MPEG-PS формат файла!
VIDEO:  MPEG2  720x576  (aspect 3)  25,000 fps  9800,0 kbps (1225,0 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25,00  ftime:=0,0400
==========================================================================
Открываю декодер аудио: [liba52] AC3 decoding with liba52
Using 3DNowEx optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe)  48000 Hz  384,0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 48000->192000 (384,0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
Открываю видео фильтр: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Открываю видео фильтр: [scale w=712 h=-2]
Открываю видео фильтр: [crop w=712 h=436 x=4 y=74]
Crop: 712 x 436, 4 ; 74
==========================================================================
Открываю декодер видео: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config запросил - 720 x 576 (предпочитаемый csp: Mpeg PES)
Не могу найти подходящее цветовое пространство - попытаюсь с -vop scale...
Открываю видео фильтр: [scale]
Sorry, выбранное video_out устройство не совместимо с этим кодеком.
Ошибка инициализации Декодера Видео :(
Открываю декодер видео: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
audiocodec: framecopy (format=2000 chans=2 rate=48000 bits=16 bps=48000 
sample=1)
Пишу заголовок AVI...
VDec: vo config запросил - 720 x 576 (предпочитаемый csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect - 1,78:1 - премасштабирую для коррекции соотношения сторон 
фильма.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 7 -> 6
SwScaler: reducing / aligning filtersize 7 -> 6

SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX2
videocodec: libavcodec (712x306 fourcc=58564944 [DIVX])
Pos:   4,2s    107f ( 7%)  36fps Trem:   0min   9mb  A-V:-0,081 [1074:384]
1 повторяющийся(хся) кадр(а/ов)!
VDec: vo config запросил - 720 x 576 (предпочитаемый csp: Planar YV12)384]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect - 1,78:1 - премасштабирую для коррекции соотношения сторон 
фильма.
videocodec: libavcodec (712x306 fourcc=58564944 [DIVX])
get_buffer() failed (0 -1803 0 0x410e7f30)
Segmentation fault

^^^^^
and here is the problem - segvfault after get_buffer() failed

----------------------

Gdb backtrace is below:

# gdb mencoder -c core.24032
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
Core was generated by `mencoder /mnt/cd/GLADIATOR/VIDEO_TS/VTS_01_7.VOB -vf 
crop=712:436:4:74,scale=71'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libdivxencore.so.0...done.
Loaded symbols for /usr/local/lib/libdivxencore.so.0
Reading symbols from /usr/lib/libvorbis.so.0...done.
Loaded symbols for /usr/lib/libvorbis.so.0
Reading symbols from /usr/lib/libogg.so.0...done.
Loaded symbols for /usr/lib/libogg.so.0
Reading symbols from /usr/local/lib/libdivxdecore.so.0...done.
Loaded symbols for /usr/local/lib/libdivxdecore.so.0
Reading symbols from /usr/lib/libpng12.so.0...done.
Loaded symbols for /usr/lib/libpng12.so.0
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/libfreetype.so.6...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /usr/lib/libungif.so.4...done.
Loaded symbols for /usr/lib/libungif.so.4
Reading symbols from /lib/i686/libpthread.so.0...done.
Loaded symbols for /lib/i686/libpthread.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/i686/libm.so.6...done.
Loaded symbols for /lib/i686/libm.so.6
Reading symbols from /lib/i686/libc.so.6...done.
Loaded symbols for /lib/i686/libc.so.6
---Type <return> to continue, or q <return> to quit---
Reading symbols from /usr/lib/libstdc++-libc6.2-2.so.3...done.
Loaded symbols for /usr/lib/libstdc++-libc6.2-2.so.3
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /usr/lib/gconv/KOI8-R.so...done.
Loaded symbols for /usr/lib/gconv/KOI8-R.so
#0  encode_picture (s=0x8534f90, picture_number=0) at mpegvideo.c:3407
3407                        s->current_picture.mb_var [s->mb_stride * mb_y + 
mb_x] = varc;
(gdb) bt
#0  encode_picture (s=0x8534f90, picture_number=0) at mpegvideo.c:3407
#1  0x0817712d in MPV_encode_picture (avctx=0x844fdb0,
    buf=0xe2 <Address 0xe2 out of bounds>, buf_size=226, data=0xe2)
    at mpegvideo.c:1604
#2  0x08172aca in avcodec_encode_video (avctx=0x844fdb0,
    buf=0xe2 <Address 0xe2 out of bounds>, buf_size=226, pict=0xe2)
    at utils.c:340
#3  0x08073e70 in put_image (vf=0x844fc88, mpi=0x0) at ve_lavc.c:623
#4  0x08082bf9 in vf_next_put_image (vf=0xe2, mpi=0xe2) at vf.c:498
#5  0x08082bf9 in vf_next_put_image (vf=0xe2, mpi=0xe2) at vf.c:498
#6  0x08082bf9 in vf_next_put_image (vf=0xe2, mpi=0xe2) at vf.c:498
#7  0x0807a3d1 in decode_video (sh_video=0x8432648,
    start=0xe2 <Address 0xe2 out of bounds>, in_size=226, drop_frame=0)
    at dec_video.c:327
#8  0x0804ed55 in main (argc=226, argv=0xe2) at mencoder.c:1081
#9  0x402cda07 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)

----------------------

Some information about my system:
RedHat-9.0
kernel 2.4.21
libc 2.3.2
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
GNU ld version 2.13.90.0.18 20030206
GNU assembler 2.13.90.0.18 20030206

processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 4
model name      : AMD Athlon(tm) processor
stepping        : 2
cpu MHz         : 866.728
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 pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat 
pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
bogomips        : 1730.15

----------

I don't subscribed to this mail list, so if you want to contact me, please use 
my e-mail.
	Petr.



More information about the MPlayer-users mailing list