[MPlayer-users] mencoder segfaults with lavc - complete bug report [NOVIRUS]

Philippe Combes Philippe.Combes at ens-lyon.fr
Thu Oct 30 11:27:53 CET 2003


Philippe Combes wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> 
> Hi all,
> 
> I have a high-quality ffmpeg file that I want to encode with lavc codec.
> I use the following commands:
> 
> mencoder big_file.avi -o frameno.avi -ovc frameno -oac copy
> mencoder big_file.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=870:vpass=1
> 
> Similar commands worked well last summer, before I updated my Linux 
> Debian unstable. Now, it seems broken: a segfault occurs when opening 
> the libavc.
> 
> Is it a known bug of the latest libavc ?
> Or of mencoder ?
> 
> Thanks in advance for any help
> 


$ gdb mencoder GNU gdb 6.0-debian
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-linux"...(no debugging symbols found)...
(gdb) r -v big_file.avi -vop crop=580:356 -o test.avi -ovc lavc
-lavcopts vcodec=mpeg4:vbitrate=870:vpass=1
Starting program: /usr/bin/mencoder -v big_file.avi -vop crop=580:356 -o
test.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=870:vpass=1
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...[New Thread 16384 (LWP 1292)]
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found)...MEncoder 1.0pre2-3.3.2 (C) 2000-2003 MPlayer Team

CPU: Intel Celeron 2/Pentium III Tualatin 798.0 MHz (Family: 6, Stepping: 4)
Detected cache-line size is 32 bytes
MMX2 supported but disabled
CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX SSE

Reading /home/pcombes/.mplayer/mencoder_codecs.conf: Can't open
'/home/pcombes/.mplayer/mencoder_codecs.conf': Aucun fichier ou
répertoire de ce type
Reading /etc/mplayer/mencoder_codecs.conf: 61 audio & 157 video codecs
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
AVI: No audio stream found -> no sound.
VIDEO:  [FrNo]  608x356  24bpp  25,000 fps    0,8 kbps ( 0,1 kbyte/s)
Using pass3 control file: frameno.avi
Reading config file /home/pcombes/.mplayer/mencoder: Aucun fichier ou
répertoire de ce type
init_freetype
Using MMX Optimized OnScreenDisplay
[file] File size is 717059358 bytes
STREAM: [file] big_file.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
success: format: 0  data: 0x0 - 0x2ABD751E
AVI file format detected.
list_end=0xD4
======= AVI Header =======
us/frame: 40000  (fps=25,000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 140906   initial: 0
streams: 1
Suggested BufferSize: 0
Size:  608 x 356
==========================
list_end=0xD4
==> Found video stream: 0
====== STREAM Header =====
Type: vids   FCC: DIVX (58564944)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 25000000/1000000 = 25,000
Start: 0   Len: 140906
Suggested BufferSize: 0
Quality 0
Sample size: 0
==========================
found 'bih', 40 bytes of 40
======= VIDEO Format ======
   biSize 40
   biWidth 608
   biHeight 356
   biPlanes 1
   biBitCount 24
   biCompression 1482049860='DIVX'
   biSizeImage 649344
===========================
Regenerating keyframe table for DIVX 4 video
list_end=0x128
hdr=Software  size=64
Software  : transcode-0.6.7
Broken chunk?  chunksize=1732  (id=JUNK)
list_end=0x2A9B0E76
Found movie at 0x800 - 0x2A9B0E76
Reading INDEX block, 140906 chunks for 140906 frames (fpos=0x2a9b0e7e)
AVI index offset: 0x0 (movi=0x800 idx0=0x800 idx1=0x11B0)
Auto-selected AVI video ID = 0
AVI_NI: No audio stream found -> no sound.
AVI video size=713604869 (140906) audio size=0 (0)
VIDEO:  [DIVX]  608x356  24bpp  25,000 fps  1012,9 kbps (123,6 kbyte/s)
[V] filefmt:3  fourcc:0x58564944  size:608x356  fps:25,00  ftime:=0,0400
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [crop w=580 h=356]
Crop: 580 x 356, -1 ; -1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Writing AVI header...
[ffmpeg] aspect_ratio: 1,707865
VDec: vo config request - 608 x 356 (preferred csp: Planar YV12)
Trying filter chain: crop expand lavc
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1,71:1 - prescaling to correct movie aspect.
VO Config (608x356->608x356,flags=0,'MPlayer',0x32315659)
REQ: flags=0x401  req=0x400
REQ: flags=0x401  req=0x0
videocodec: libavcodec (580x356 fourcc=58564944 [DIVX])
get_path('subfont.ttf') -> '/home/pcombes/.mplayer/subfont.ttf'
Unicode font: 3313 glyphs.
*** [lavc] Allocating mp_image_t, 592x356x12bpp YUV planar, 316128 bytes
*** [expand] Direct Rendering mp_image_t, 592x356x12bpp YUV planar,
316128 bytes
*** [crop] Allocating (slices) mp_image_t, 608x368x12bpp YUV planar,
335616 bytes

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 1292)]
0x402bf33f in MPV_common_init_mmx () from /usr/lib/libavcodec.so.0.4.8
(gdb) bt
#0  0x402bf33f in MPV_common_init_mmx () from /usr/lib/libavcodec.so.0.4.8
#1  0x40161f45 in ff_h263_round_chroma () from /usr/lib/libavcodec.so.0.4.8
#2  0x4015d340 in ff_copy_bits () from /usr/lib/libavcodec.so.0.4.8
#3  0x40159f47 in MPV_encode_picture () from /usr/lib/libavcodec.so.0.4.8
#4  0x40156038 in avcodec_encode_video () from /usr/lib/libavcodec.so.0.4.8
#5  0x080f624f in vf_open_encoder ()
#6  0x08401900 in ?? ()
#7  0x412cb008 in ?? ()
#8  0x00200000 in ?? ()
#9  0x08401840 in ?? ()
#10 0x0810f490 in vf_list_plugins ()
#11 0x00000164 in ?? ()
#12 0x080ed1c3 in vo_draw_text ()
#13 0x000009a7 in ?? ()
#14 0x0810847b in __pure_virtual ()
#15 0x08400908 in ?? ()
#16 0x08401ce0 in ?? ()
#17 0xbfffe17c in ?? ()
#18 0x08400a28 in ?? ()
#19 0x000009a7 in ?? ()
#20 0x08401b78 in ?? ()
#21 0x08400888 in ?? ()
#22 0x0810ed50 in vf_list_plugins ()
#23 0x00000164 in ?? ()
#24 0x0810f490 in vf_list_plugins ()
#25 0x080d04e0 in parse_cfgfiles ()
(gdb)




More information about the MPlayer-users mailing list