[MPlayer-users] MPEG/DVD crashing when taking screenshot

Josh joshf87 at live.com
Tue Sep 15 07:15:07 CEST 2015


>
>
> Seems that the problem is related to slices, in MPlayer it works for the
> first slice but fails for the 2nd (slice height is 16; offset 0 is ok,
> offset 16 crashes).
>
>
> The attached workaroud fixes the crash, but produces a wrong picture;
> unless I missed some stupid detail, it should be equivalent to the old
> code.
>
>
> Ciao,
>   Roberto
>
>
>
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>

I have one video in particular where it still crashes with -noslices 
(/incoming/mpeg_ss_crash_beetlejuice.mpg). I am also I'm having a big 
WTF moment because I tried that same video & patched mplayer executable 
through Dr. Memory & SMPlayer and it crashed regardless of 
slices/noslices; whereas through gdb and the normal command-line your 
patch stopped the crash when using slices (although with a wrong 
picture). Confused yet? Same junk from gdb. Except for SMPlayer I am 
only issuing these commands to Dr Memory, gdb and command line:

-v -vo direct3d -vf screenshot

D:/Programs/SMPlayer/mplayer/mplayer.exe -noquiet -slave -identify -v 
-nofs -lavdopts threads=4 -sub-fuzziness 1 -vo direct3d -ao dsound 
-priority abovenormal -framedrop -dr -double -nomouseinput -nokeepaspect 
-wid 7864784 -monitorpixelaspect 1 -subfont-osd-scale 3 -ass 
-embeddedfonts -ass-line-spacing 0 -ass-font-scale 1 -noflip-hebrew 
-ass-styles D:/Programs/SMPlayer/styles.ass -subcp ISO-8859-1 -vid 0 
-subpos 100 -volume 42 -cache 9999 -osdlevel 0 -vf-add screenshot 
-slices -channels 2 -af-add volnorm=1 -af-add scaletempo -af-add 
equalizer=0:0:0:0:0:0:0:0:0:0 -nofontconfig -subfont-osd-scale 1 
C:/Users/Joshua/Desktop/mpeg_crash_ss_beetlejuice.mpg

MPlayer SVN-r37524-4.9.3 (C) 2000-2015 MPlayer Team
CPU vendor name: GenuineIntel  max cpuid level: 13
CPU: Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz (Family: 6, Model: 42, 
Stepping: 7)
extended cpuid-level: 8
extended cache-info: 16801856
Detected cache-line size is 64 bytes
Testing OS support for SSE... yes.
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSE3: 1 
SSSE3: 1 SSE4: 1 SSE4.2: 1 AVX: 1
Compiled with runtime CPU detection.
Setting PATH to D:\Programs\SMPlayer\mplayer\codecs
Setting process priority: abovenormal

get_path('codecs.conf') -> 
'D:/Programs/SMPlayer/mplayer/mplayer/codecs.conf'
Reading optional codecs config file 
D:/Programs/SMPlayer/mplayer/mplayer/codecs.conf: No such file or directory
Reading optional codecs config file /usr/local/etc/mplayer/codecs.conf: 
No such file or directory
Using built-in default codecs.conf.
init_freetype
get_path('font/font.desc') -> 
'D:/Programs/SMPlayer/mplayer/mplayer/font/font.desc'
font: can't open file: D:/Programs/SMPlayer/mplayer/mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> 'D:/Programs/SMPlayer/mplayer/mplayer/fonts'
Configuration: --enable-static --enable-runtime-cpudetection 
--enable-menu --disable-inet6 --disable-liba52 
--disable-libmpeg2-internal --disable-tv --disable-vidix 
--disable-faac-lavc --extra-cflags=-I/sources/live555 --disable-mencoder 
--enable-debug=3
CommandLine: '-noquiet' '-slave' '-identify' '-v' '-nofs' '-lavdopts' 
'threads=4' '-sub-fuzziness' '1' '-vo' 'direct3d' '-ao' 'dsound' 
'-priority' 'abovenormal' '-framedrop' '-dr' '-double' '-nomouseinput' 
'-nokeepaspect' '-wid' '7864784' '-monitorpixelaspect' '1' 
'-subfont-osd-scale' '3' '-ass' '-embeddedfonts' '-ass-line-spacing' '0' 
'-ass-font-scale' '1' '-noflip-hebrew' '-ass-styles' 
'D:/Programs/SMPlayer/styles.ass' '-subcp' 'ISO-8859-1' '-vid' '0' 
'-subpos' '100' '-volume' '42' '-cache' '9999' '-osdlevel' '0' '-vf-add' 
'screenshot' '-slices' '-channels' '2' '-af-add' 'volnorm=1' '-af-add' 
'scaletempo' '-af-add' 'equalizer=0:0:0:0:0:0:0:0:0:0' '-nofontconfig' 
'-subfont-osd-scale' '1' 
'C:/Users/Joshua/Desktop/mpeg_crash_ss_beetlejuice.mpg'
Using Windows native timing
get_path('input.conf') -> 'D:/Programs/SMPlayer/mplayer/mplayer/input.conf'
Parsing input config file D:/Programs/SMPlayer/mplayer/mplayer/input.conf
Input config file D:/Programs/SMPlayer/mplayer/mplayer/input.conf 
parsed: 92 binds
get_path('mpeg_crash_ss_beetlejuice.mpg.conf') -> 
'D:/Programs/SMPlayer/mplayer/mplayer/mpeg_crash_ss_beetlejuice.mpg.conf'

Playing C:/Users/Joshua/Desktop/mpeg_crash_ss_beetlejuice.mpg.
get_path('sub/') -> 'D:/Programs/SMPlayer/mplayer/mplayer/sub/'
WINSOCK2 init: 0
WINSOCK2 init: 0
[file] File size is 104857600 bytes
STREAM: [file] C:/Users/Joshua/Desktop/mpeg_crash_ss_beetlejuice.mpg
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
CACHE_PRE_INIT: 0 [0] 0  pre:2047795  eof:0

Cache fill:  0.00% (0 bytes)

libavformat version 57.0.100 (internal)
Configuration: --enable-gpl --enable-postproc
LAVF_check: MPEG-PS (MPEG-2 Program Stream)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for REAL
Checking for SMJPEG
SUB: opened iconv descriptor.
SUB: closed iconv descriptor.
Searching demuxer type for filename 
C:/Users/Joshua/Desktop/mpeg_crash_ss_beetlejuice.mpg ext: .mpg
Checking for Nullsoft Streaming Video
Checking for MOV
Checking for VIVO
header block 1 size: 0
AVS: avs_check_file - attempting to open file 
C:/Users/Joshua/Desktop/mpeg_crash_ss_beetlejuice.mpg
AVS: File is too big, aborting...
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 70681, FOUND 47, packet_size= 0, SEEMS A TS? 0
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=0 size=1140851704
LMLM4 Stream Format not found
system stream synced at 0xD (13)!
==> Found video stream: 0
ID_VIDEO_ID=0
==> Found audio stream: 0
ID_AUDIO_ID=0
MPEG-PS file format detected.
Searching for sequence header... OK!
VIDEO:  MPEG2  720x480  (aspect 2)  29.970 fps  8500.0 kbps (1062.5 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x480  fps:29.970  ftime:=0.0334
Load subtitles in C:/Users/Joshua/Desktop/
get_path('sub/') -> 'D:/Programs/SMPlayer/mplayer/mplayer/sub/'
ID_FILENAME=C:/Users/Joshua/Desktop/mpeg_crash_ss_beetlejuice.mpg
ID_DEMUXER=mpegps
ID_VIDEO_FORMAT=0x10000002
ID_VIDEO_BITRATE=8500000
ID_VIDEO_WIDTH=720
ID_VIDEO_HEIGHT=480
ID_VIDEO_FPS=29.970
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=80
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_START_TIME=0.10
ID_LENGTH=105.25
ID_SEEKABLE=1
ID_CHAPTERS=0
<vo_direct3d>Setting backbuffer dimensions to (1366x768).
<vo_direct3d>device_caps_power2_only 0, device_caps_square_only 0
<vo_direct3d>device_texture_sys 0
<vo_direct3d>max_texture_width 8192, max_texture_height 8192
vo: win32: running at 1366x768 with depth 32
Opening video filter: [ass auto=1]
<vo_direct3d>Accepted image format: Planar YV12
[vo] query(Planar YV12) -> 3
<vo_direct3d>Accepted image format: Planar YV12
[ass] auto-open
Opening video filter: [screenshot]
[ass] Raster: FreeType 2.6.0
[ass] Shaper: FriBidi 0.19.7 (SIMPLE)
[ass] Initialized
get_path('fonts') -> 'D:/Programs/SMPlayer/mplayer/mplayer/fonts'
get_path('subfont.ttf') -> 
'D:/Programs/SMPlayer/mplayer/mplayer/subfont.ttf'
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.1.100 (internal)
Configuration: --enable-gpl --enable-postproc
INFO: libavcodec init OK!
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
ID_VIDEO_CODEC=ffmpeg2
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
dec_audio: Allocating 8192 + 131072 = 139264 bytes for output buffer.
MPEG 1.0 layer II, 128 kbit/s, 48000 Hz stereo
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, 
II, III)
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter volnorm
[libaf] Adding filter scaletempo
[libaf] Adding filter equalizer
[scaletempo] 1.000 speed * 1.000 scale_nominal = 1.000
[libaf] Adding filter format
[format] Changing sample format from little-endian 16-bit signed int to 
little-endian 32-bit float
[format] Accelerated little-endian 16-bit signed int to little-endian 
32-bit float conversion
[scaletempo] 1.000 speed * 1.000 scale_nominal = 1.000
[format] Changing sample format from little-endian 16-bit signed int to 
little-endian 32-bit float
[format] Accelerated little-endian 16-bit signed int to little-endian 
32-bit float conversion
Trying preferred audio driver 'dsound', options '[none]'
ao_dsound: Output Devices:
0 Primary Sound Driver <--
1 Speakers / HP (IDT High Definition Audio CODEC)
ao_dsound: DirectSound initialized
ao_dsound: format floatle not supported defaulting to Signed 16-bit 
Little-Endian
ao_dsound: Samplerate:48000Hz Channels:2 Format:s16le
ao_dsound: Buffersize:192000 bytes (1000 msec)
ao_dsound: primary buffer created
ao_dsound: secondary (stream)buffer created
AO: [dsound] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: Windows DirectSound audio output
AO: Author: Gabor Szecsi <deje at miki.hu>
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[scaletempo] 1.000 speed * 1.000 scale_nominal = 1.000
[format] Changing sample format from little-endian 16-bit signed int to 
little-endian 32-bit float
[format] Accelerated little-endian 16-bit signed int to little-endian 
32-bit float conversion
[libaf] Adding filter format
[format] Changing sample format from little-endian 32-bit float to 
little-endian 16-bit signed int
[format] Accelerated little-endian 32-bit float to little-endian 16-bit 
signed int conversion
[scaletempo] 1.000 speed * 1.000 scale_nominal = 1.000
[format] Changing sample format from little-endian 16-bit signed int to 
little-endian 32-bit float
[format] Accelerated little-endian 16-bit signed int to little-endian 
32-bit float conversion
[format] Changing sample format from little-endian 32-bit float to 
little-endian 16-bit signed int
[format] Accelerated little-endian 32-bit float to little-endian 16-bit 
signed int conversion
ID_AUDIO_CODEC=mpg123
Starting playback...
[libaf] Reallocating memory in module format, old len = 0, new len = 266245
[libaf] Reallocating memory in module format, old len = 0, new len = 133129
Increasing filtered audio buffer size from 0 to 133120
ds_fill_buffer: EOF reached (stream: audio)
VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12)
Trying filter chain: screenshot ass vo
<vo_direct3d>Accepted image format: Planar YV12
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (720x480->720x480,flags=0,'MPlayer',0x32315659)
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 5 -> 4
[swscaler @ 01634920]bicubic scaler, from yuv420p to rgb24 using MMXEXT
[swscaler @ 01634920]720x480 -> 720x480
[swscaler @ 01634920]lum srcW=720 srcH=480 dstW=720 dstH=480 xInc=65536 
yInc=65536
[swscaler @ 01634920]chr srcW=360 srcH=240 dstW=360 dstH=480 xInc=65536 
yInc=32768
[swscaler @ 01634920]using unscaled yuv420p -> rgb24 special converter
<vo_direct3d>Accepted image format: Planar YV12
REQ: flags=0x2437  req=0x0
<vo_direct3d>Accepted image format: Planar YV12
REQ: flags=0x437  req=0x0
VO: [direct3d] 720x480 => 720x480 Planar YV12
VO: Description: Direct3D 9 Renderer
VO: Author: Georgi Petrov (gogothebee) <gogothebee at gmail.com>
<vo_direct3d>Accepted image format: Planar YV12
<vo_direct3d>destroy_d3d_surfaces called.
<vo_direct3d>configure_d3d called.
<vo_direct3d>destroy_d3d_surfaces called.
<vo_direct3d>destroy_d3d_surfaces called.
<vo_direct3d>New backbuffer (1366x768), VO (720x480)
<vo_direct3d>create_d3d_surfaces called.
<vo_direct3d>OSD texture size (720x480), requested (720x480).
<vo_direct3d>Fullscreen movie rectangle: t: 0, l: 0, r: 720, b:480
*** [ass] Allocating mp_image_t, 768x480x12bpp YUV planar, 552960 bytes
*** [screenshot] Direct Rendering mp_image_t, 768x480x12bpp YUV planar, 
552960 bytes
*** [ass] Allocating mp_image_t, 768x480x12bpp YUV planar, 552960 bytes
*** [screenshot] Direct Rendering mp_image_t, 768x480x12bpp YUV planar, 
552960 bytes
[ffmpeg] aspect_ratio: 1.333333
VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12)
Trying filter chain: screenshot ass vo
<vo_direct3d>Accepted image format: Planar YV12
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.3333
VO Config (720x480->720x540,flags=0,'MPlayer',0x32315659)
<vo_direct3d>Accepted image format: Planar YV12
REQ: flags=0x2437  req=0x0
<vo_direct3d>Accepted image format: Planar YV12
REQ: flags=0x437  req=0x0
VO: [direct3d] 720x480 => 720x540 Planar YV12
VO: Description: Direct3D 9 Renderer
VO: Author: Georgi Petrov (gogothebee) <gogothebee at gmail.com>
<vo_direct3d>Accepted image format: Planar YV12
<vo_direct3d>destroy_d3d_surfaces called.
<vo_direct3d>configure_d3d called.
<vo_direct3d>destroy_d3d_surfaces called.
<vo_direct3d>destroy_d3d_surfaces called.
<vo_direct3d>New backbuffer (1366x768), VO (720x540)
<vo_direct3d>create_d3d_surfaces called.
<vo_direct3d>OSD texture size (720x540), requested (720x544).
<vo_direct3d>Fullscreen movie rectangle: t: 0, l: 0, r: 720, b:540
<vo_direct3d>Direct Rendering request. Not implemented yet.
*** [vo] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
<vo_direct3d>resize_d3d called.
<vo_direct3d>create_d3d_surfaces called.
<vo_direct3d>OSD texture size (533x400), requested (544x400).
<vo_direct3d>Fullscreen movie rectangle: t: 0, l: 0, r: 533, b:400

ds_fill_buffer: EOF reached (stream: audio)
*** [ass] Allocating mp_image_t, 768x480x12bpp YUV planar, 552960 bytes
*** [screenshot] Direct Rendering mp_image_t, 768x480x12bpp YUV planar, 
552960 bytes
get_path('subfont.ttf') -> 
'D:/Programs/SMPlayer/mplayer/mplayer/subfont.ttf'
Unicode font: 2993 glyphs.
get_path('subfont.ttf') -> 
'D:/Programs/SMPlayer/mplayer/mplayer/subfont.ttf'
Unicode font: 2993 glyphs.

ds_fill_buffer: EOF reached (stream: audio)

ds_fill_buffer: EOF reached (stream: audio)
[VD_FFMPEG] DRI failure.
*** [screenshot] Exporting mp_image_t, 720x480x12bpp YUV planar, 518400 
bytes
*** [ass] Exporting mp_image_t, 720x480x12bpp YUV planar, 518400 bytes

ds_fill_buffer: EOF reached (stream: audio)

ds_fill_buffer: EOF reached (stream: audio)

[format] Changing sample format from little-endian 32-bit float to 
little-endian 16-bit signed int
[format] Accelerated little-endian 32-bit float to little-endian 16-bit 
signed int conversion

sending VFCTRL_SCREENSHOT!


MPlayer interrupted by signal 11 in module: filter_video
ID_SIGNAL=11
- MPlayer crashed by bad usage of CPU/FPU/RAM.
   Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
   disassembly. Details in 
DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
   It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
   gcc version. If you think it's MPlayer's fault, please read
   DOCS/HTML/en/bugreports.html and follow the instructions there. We 
can't and
   won't help unless you provide this information when reporting a 
possible bug.



More information about the MPlayer-users mailing list