[MPlayer-advusers] [BUG] -sws 10 -vf screenshot leads to hang up
Andrew Savchenko
Bircoph at list.ru
Sun Sep 28 13:43:58 CEST 2008
Hello, all,
With revision 27668 and some earlier ones (haven't perform
regression search yet) mplayer hangs when playing certain types of
video if -sws 10 and -vf screenshot options are used together.
This happens only with some video files, regardless to their codec
type.
It seems to happen just before the output of the first video frame.
CPU usage grows up to 100% and mplayer seems to enter an eternal
loop.
Example was uploaded ftp://mplayerhq.hu/ as
sws10_screenshot_failure.mkv
A way to reproduce:
mplayer -noconfig all -sws 10 -vf screenshot
sws10_screenshot_failure.mkv
It works fine if screenshot filter is omitted or any other software
scaler (0-9) is used.
Here is my mplayer's log for this file:
$ ./mplayer -v -noconfig all -sws 10 -vf
screenshot /home/andrew/media/video/anime/\{Byousoku\ 5\
Centimeter\}/sws1>
<ot /home/andrew/media/video/anime/\{Byousoku\ 5\
Centimeter\}/sws10_screenshot_failure.mkv
MPlayer dev-SVN-r27668-4.3.0 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) XP 3200+ (Family: 6, Model: 10, Stepping: 0)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
get_path('codecs.conf') -> '/home/andrew/.mplayer/codecs.conf'
Reading /home/andrew/.mplayer/codecs.conf: Can't open
'/home/andrew/.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
Using built-in default codecs.conf.
Configuration: --language=en --enable-debug=3 --enable-menu
--enable-xmms --enable-largefiles --enable-xvmc --disable-tv
--disable-v4l2 --disable-lirc
CommandLine: '-v' '-noconfig' 'all' '-sws' '10' '-vf' 'screenshot'
'/home/andrew/media/video/anime/{Byousoku 5
Centimeter}/sws10_screenshot_failure.mkv'
init_freetype
get_path('font/font.desc') ->
'/home/andrew/.mplayer/font/font.desc'
font: can't open file: /home/andrew/.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') -> '/home/andrew/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/andrew/.mplayer/input.conf'
Can't open input config file /home/andrew/.mplayer/input.conf: No
such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No
such file or directory
Falling back on default (hardcoded) input config
get_path('sws10_screenshot_failure.mkv.conf') ->
'/home/andrew/.mplayer/sws10_screenshot_failure.mkv.conf'
Playing /home/andrew/media/video/anime/{Byousoku 5
Centimeter}/sws10_screenshot_failure.mkv.
get_path('sub/') -> '/home/andrew/.mplayer/sub/'
[file] File size is 4134823 bytes
STREAM: [file] /home/andrew/media/video/anime/{Byousoku 5
Centimeter}/sws10_screenshot_failure.mkv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: Matroska file format
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
[mkv] Found the head...
[mkv] + a segment...
[mkv] /---- [ parsing seek head ] ---------
[mkv] /---- [ parsing seek head ] ---------
[mkv] \---- [ parsing seek head ] ---------
[mkv] /---- [ parsing cues ] -----------
[mkv] \---- [ parsing cues ] -----------
[mkv] /---- [ parsing chapters ] ---------
[mkv] Chapter 0 from 00:00:00.000 to 00:00:00.000, Episode 1:
Oukashou
[mkv] \---- [ parsing chapters ] ---------
[mkv] \---- [ parsing seek head ] ---------
[mkv] |+ segment information...
[mkv] | + timecode scale: 1000000
[mkv] | + duration: 31.610s
[mkv] |+ segment tracks...
[mkv] | + a track...
[mkv] | + Track number: 1
[mkv] | + Track type: Video
[mkv] | + Default flag: 1
[mkv] | + Codec ID: V_MPEG4/ISO/AVC
[mkv] | + CodecPrivate, length 40
[mkv] | + Default duration: 41.708ms ( = 23.976 fps)
[mkv] | + Language: und
[mkv] | + Video track
[mkv] | + Pixel width: 720
[mkv] | + Pixel height: 480
[mkv] | + Display width: 853
[mkv] | + Display height: 480
[mkv] | + a track...
[mkv] | + Track number: 2
[mkv] | + Track type: Audio
[mkv] | + Default flag: 1
[mkv] | + Codec ID: A_VORBIS
[mkv] | + CodecPrivate, length 4329
[mkv] | + Language: jpn
[mkv] | + Audio track
[mkv] | + Sampling frequency: 48000.000000
[mkv] | + Channels: 2
[mkv] | + a track...
[mkv] | + Track number: 3
[mkv] | + Track type: Subtitle
[mkv] | + Default flag: 1
[mkv] | + Codec ID: S_TEXT/ASS
[mkv] | + CodecPrivate, length 1008
[mkv] | + Language: eng
[mkv] /---- [ parsing attachments ] ---------
[mkv] | + an attachment...
[mkv] | + FileName: Californian_FB.ttf
[mkv] | + FileMimeType: application/x-truetype-font
[mkv] | + FileData, length 105300
[mkv] Attachment: Californian_FB.ttf, application/x-truetype-font,
105300 bytes
[mkv] | + an attachment...
[mkv] | + FileName: ChaparralPro-SemiboldIt.ttf
[mkv] | + FileMimeType: application/x-truetype-font
[mkv] | + FileData, length 116384
[mkv] Attachment: ChaparralPro-SemiboldIt.ttf,
application/x-truetype-font, 116384 bytes
[mkv] | + an attachment...
[mkv] | + FileName: GosmickSans.ttf
[mkv] | + FileMimeType: application/x-truetype-font
[mkv] | + FileData, length 59696
[mkv] Attachment: GosmickSans.ttf, application/x-truetype-font,
59696 bytes
[mkv] \---- [ parsing attachments ] ---------
[mkv] |+ found cluster, headers are parsed completely :)
==> Found video stream: 1
[mkv] Aspect: 1.777083
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
==> Found audio stream: 2
[mkv] Track ID 2: audio (A_VORBIS), -aid 0, -alang jpn
[mkv] Track ID 3: subtitles (S_TEXT/ASS), -sid 0, -slang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO: [avc1] 720x480 24bpp 23.976 fps 0.0 kbps ( 0.0
kbyte/s)
[V] filefmt:31 fourcc:0x31637661 size:720x480 fps:23.976
ftime:=0.0417
get_path('sub/') -> '/home/andrew/.mplayer/sub/'
X11 opening display: :0.0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1440x900 with depth 24 and 32 bpp (":0.0" =>
local display)
[x11] Detected wm supports layers.
[x11] Using workaround for Metacity bugs.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports FULLSCREEN state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
[VO_XV] Using Xv Adapter #0 (NV17 Video Texture)
[xv common] Drawing no colorkey.
[xv common] Maximum source image dimensions: 2046x2046
Opening video filter: [screenshot]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 192000 + 65536 = 257536 bytes for output
buffer.
FFmpeg's libavcodec audio codec
INFO: libavcodec init OK!
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis
decoder)
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Trying every known audio driver...
ao2: 48000 Hz 2 chans s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or
resource busy
alsa-init: requested format: 48000 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.17
alsa-init: setup for 1/2 channel(s)
alsa-init: using device default
alsa-init: pcm opened in blocking mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=16
alsa-init: got buffersize=65536
alsa-init: got period size 1024
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit
Little Endian
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy at streamminister.de>
AO: Comment: under developement
Building audio filter chain for 48000Hz/2ch/s16le ->
48000Hz/2ch/s16le...
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Starting playback...
Increasing filtered audio buffer size from 0 to 65536
[h264 @ 0x88b6eb0]no picture
[h264 @ 0x88b6eb0]no picture
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 720 x 480 (preferred colorspace: Planar
YV12)
Trying filter chain: screenshot vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (720x480->854x480,flags=0,'MPlayer',0x32315659)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-advusers/attachments/20080928/554e9b31/attachment.pgp>
More information about the MPlayer-advusers
mailing list