[MPlayer-users] mencoder crash on large PNG files

Jeff Breidenbach jeff at jab.org
Tue Feb 20 18:38:56 CET 2007


Mencoder crashes when encoding large PNG files;
anything with a width much bigger than 2000 pixels.
Interestingly, it works fine on an identically sized
"sgi" format file. Trivial to reproduce.

$  mencoder -ovc x264 mf://big.png -o crash.avi   # CRASH
$  mencoder -ovc lavc mf://big.png -o crash.avi    # CRASH
$  mencoder -ovc lavc mf://big.sgi -o ok.avi         # OK

I couldn't compile with --enable-debug=3 with today's subversion
checkout, but did spend a little bit of time with valgrind and gdb.
Is this a known problem?

-Jeff

===


==22775==
==22775== Invalid write of size 4
==22775==    at 0x819A117: swScale_MMX2 (swscale_template.c:2326)
==22775==  Address 0x776AB70 is 0 bytes after a block of size 4,000 alloc'd
==22775==    at 0x5BD1970: memalign (vg_replace_malloc.c:332)
==22775==    by 0x8449C50: av_mallocz (in /var/tmp/mplayer/mencoder)
==22775==    by 0x80D0750: config (vf_scale.c:229)
==22775==    by 0x80ACE3E: vf_config_wrapper (vf.c:621)
==22775==    by 0x80AAAC6: mpcodecs_config_vo (vd.c:305)
==22775==    by 0x80E0D91: init_vo (vd_ffmpeg.c:542)
==22775==    by 0x80E1427: decode (vd_ffmpeg.c:865)
==22775==    by 0x80AA102: decode_video (dec_video.c:366)
==22775==    by 0x8073954: main (in /var/tmp/mplayer/mencoder)

[ first of many errors caught by valgrind... ]



$ ./mencoder -ovc lavc mf://big.png -o crash.avi
MEncoder dev-SVN-r22290-4.0.3 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.40GHz (Family: 15, Model: 4, Stepping: 3)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

success: format: 16  data: 0x0 - 0x0
MF file format detected.
[mf] search expr: big.png*
[mf] number of files: 1 (4)
[demux_mf] file type was not set! trying 'type=png'...
VIDEO:  [MPNG]  0x0  24bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:16  fourcc:0x474E504D  size:0x0  fps:25.00  ftime:=0.0400
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
Selected video codec: [ffpng] vfm: ffmpeg (FFmpeg PNG decoder)
==========================================================================
VDec: vo config request - 4200 x 300 (preferred colorspace: RGB 24-bit)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using RGB 24-bit as output csp (no 5)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8
[swscaler @ 0x86d6d80]SwScaler: BICUBIC scaler, from rgb24 to yuv420p using MMX2
[swscaler @ 0x86d6d80]SwScaler: using 4-tap MMX scaler for horizontal
luminance scaling
[swscaler @ 0x86d6d80]SwScaler: using 4-tap MMX scaler for horizontal
chrominance scaling
[swscaler @ 0x86d6d80]SwScaler: using 1-tap MMX "scaler" for vertical
scaling (YV12 like)
[swscaler @ 0x86d6d80]SwScaler: 4200x300 -> 4200x300
videocodec: libavcodec (4200x300 fourcc=34504d46 [FMP4])
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Segmentation fault
-------------- next part --------------
A non-text attachment was scrubbed...
Name: big.png
Type: image/png
Size: 4551 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20070220/b1a935c6/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: big.sgi
Type: image/x-sgi
Size: 23612 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20070220/b1a935c6/attachment.bin>


More information about the MPlayer-users mailing list