[MPlayer-users] Another Segmentation Fault

Chisum Lindauer clindauer at gmail.com
Sat Dec 19 05:09:44 CET 2009


Hello, I am converting videos uploaded via a web form, when I changed
servers it created some issues most of which I resolved... except video
uploading is proving difficult.

I have tracked it down to mencoder.  Which gives a segmenation fault, and
thus does not create the required FLV file.  It perhaps is something to do
with fonts I am unsure.  Here is what gdb has:

[root at sss]# gdb mencoder
GNU gdb Red Hat Linux (6.5-37.el5_2.2rh)
Copyright (C) 2006 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"...(no debugging symbols
found)
Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) set args -v /var/www/vhosts/
reltv.net/httpdocs/flimmer/index2.phpvidcache/6fe895e312611905653 -of lavf
-ovc lavc -lavcopts vcodec=flv:vrc_buf_size=500:vrc_maxrate=900:vbitrate=500
-oac mp3lame -lameopts cbr:br=128:mode=3 -srate 22050 -ofps 24 -o
/var/www/vhosts/reltv.net/httpdocs/flimmer/videos/6fe895e312611905653.flv
(gdb) run
Starting program: /usr/bin/mencoder -v /var/www/vhosts/
reltv.net/httpdocs/flimmer/index2.phpvidcache/6fe895e312611905653 -of lavf
-ovc lavc -lavcopts vcodec=flv:vrc_buf_size=500:vrc_maxrate=900:vbitrate=500
-oac mp3lame -lameopts cbr:br=128:mode=3 -srate 22050 -ofps 24 -o
/var/www/vhosts/reltv.net/httpdocs/flimmer/videos/6fe895e312611905653.flv
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
MEncoder SVN-r29417-4.1.2 (C) 2000-2009 MPlayer Team
Configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/mplayer
--mandir=/usr/share/man --confdir=/etc/mplayer --libdir=/usr/lib
--disable-dvdread --enable-dynamic-plugins --enable-gui --enable-joystick
--enable-largefiles --enable-menu --enable-xvmc
--enable-runtime-cpudetection --language=all
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
[file] File size is 443434 bytes
STREAM: [file] /var/www/vhosts/
reltv.net/httpdocs/flimmer/index2.phpvidcache/6fe895e312611905653
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
success: format: 0  data: 0x0 - 0x6c42a
LAVF_check: FLV format
libavformat file format detected.
==> Found video stream: 0
[lavf] Video stream found, -vid 0
======= VIDEO Format ======
  biSize 40
  biWidth 320
  biHeight 240
  biPlanes 0
  biBitCount 0
  biCompression 827739206='FLV1'
  biSizeImage 0
===========================
==> Found audio stream: 1
[lavf] Audio stream found, -aid 1
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 22050
avg byte/sec: 0
Block align: 1
bits/sample: 16
cbSize: 0
==========================================================================
LAVF: 1 audio and 1 video streams found
LAVF: build 3417088
VIDEO:  [FLV1]  320x240  0bpp  29.917 fps  278.5 kbps (34.0 kbyte/s)
[V] filefmt:44  fourcc:0x31564C46  size:320x240  fps:29.917  ftime:=0.0334
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using SSE optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 2.0, Layer III, 22050 Hz 8 kbit Joint-Stereo, BPF: 26
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 22050 Hz, 2 ch, s16le, 8.0 kbit/1.13% (ratio: 1000->88200)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[file] File size is 0 bytes
STREAM: [file] /var/www/vhosts/
reltv.net/httpdocs/flimmer/videos/6fe895e312611905653.flv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
** MUXER_LAVF
*****************************************************************
REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit.
ALLOCATED STREAM N. 1, type=0
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffflv] vfm: ffmpeg (FFmpeg Flash video)
==========================================================================
ALLOCATED STREAM N. 2, type=1
Building audio filter chain for 22050Hz/2ch/s16le -> 22050Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 22050Hz/2ch/s16le
[libaf] Adding filter format
[format] Changing sample format from little-endian 16-bit signed int to
big-endian 8-bit signed int
[dummy] Was reinitialized: 22050Hz/2ch/s16le
[format] Changing sample format from little-endian 16-bit signed int to
big-endian 8-bit signed int
LAME 3.98.2 32bits (http://www.mp3dev.org/)
CPU features: MMX (ASM used), SSE (ASM used), SSE2
Autoconverting from stereo to mono. Setting encoding to mono mode.
Using polyphase lowpass filter, transition band: 10758 Hz - 11025 Hz

misc:

        scaling: 0.95
        ch0 (left) scaling: 0
        ch1 (right) scaling: 0
        huffman search: normal
        experimental Y=0
        ...

stream format:

        MPEG-2.5 Layer 3
        1 channel - mono
        padding: off
        constant bitrate - CBR
        ...

psychoacoustic:

        using short blocks: allowed
        subblock gain: 1
        adjust masking: 0 dB
        adjust masking short: 0 dB
        quantization comparison: 9
         ^ comparison short blocks: 9
        noise shaping: 2
         ^ amplification: 0
         ^ stopping: 0
        ATH: using
         ^ type: 4
         ^ shape: 4 (only for type 4)
         ^ level adjustement: -0.3
         ^ adjust type: 3
         ^ adjust sensitivity power: 1.000000
         ^ adapt threshold type: 2
        experimental psy tunings by Naoki Shibata
           adjust masking bass=0 dB, alto=0 dB, treble=0 dB, sfb21=0 dB
        using temporal masking effect: yes
        interchannel masking ratio: 0.0002
        ...

MP3 audio selected.
Building audio filter chain for 22050Hz/2ch/s16le -> 22050Hz/2ch/s16le...
[dummy] Was reinitialized: 22050Hz/2ch/s16le
[format] Changing sample format from little-endian 16-bit signed int to
big-endian 8-bit signed int
[libaf] Removing filter format
[dummy] Was reinitialized: 22050Hz/2ch/s16le
Increasing filtered audio buffer size from 0 to 4352
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
Trying filter chain: expand lavc
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (320x240->320x240,flags=0,'MPlayer',0x32315659)
REQ: flags=0x401  req=0x0
videocodec: libavcodec (320x240 fourcc=31564c46 [FLV1])
[New Thread -1208940832 (LWP 5541)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208940832 (LWP 5541)]
0x006ec7d2 in FcFontSetMatch () from /usr/lib/libfontconfig.so.1
(gdb) backtrace
#0  0x006ec7d2 in FcFontSetMatch () from /usr/lib/libfontconfig.so.1
#1  0x006ec82a in FcFontMatch () from /usr/lib/libfontconfig.so.1
#2  0x081b46f5 in load_font_ft ()
#3  0x0815db8e in vo_update_osd_ext ()
#4  0x0815f8cf in vo_update_osd ()
#5  0x080dfd31 in Super2xSaI_ex ()
#6  0x080d44c7 in vf_get_image ()
#7  0x080d0c49 in mpcodecs_get_image ()
#8  0x081d4a0a in swap_palette ()
#9  0x0832c4a9 in ff_alloc_picture ()
#10 0x0832ca55 in MPV_frame_start ()
#11 0x08411477 in ff_h263_decode_frame ()
#12 0x082f8260 in avcodec_decode_video2 ()
#13 0x081d407e in swap_palette ()
#14 0x080cbc1e in decode_video ()
#15 0x08080b26 in main ()


More information about the MPlayer-users mailing list