[MPlayer-users] Subtitle pile up when using expand and vo gl2

Dominique Dumont domi.dumont at free.fr
Thu May 17 13:33:15 CEST 2007


Hello

There's an annoying bug when viewing a file with gl2 and expand (with
fglrx 8.36 drivers): the subtitles are drawn one on top of the
others. The first subtitle is perfrectly readable, then the subtitle
are drawn on each others and it becomes fast an unreadable mess.

This happens only with -vf expand 0:-80:0:0 -vo gl2.

There's no problem with vo x11, xv or gl.

Cheers

Heres's the command line and stdout (verbose mode is below) :

$ mplayer -vf expand=0:-80:0:0 -vo gl2 movie.mkv
MPlayer dev-SVN-r23328-4.1.3 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ (Family: 15, Model: 107, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing movie.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: subtitles (S_TEXT/UTF8), -sid 0, -slang fre
[mkv] Track ID 3: audio (A_AC3), -aid 0, -alang eng
[mkv] Track ID 4: audio (A_AC3), -aid 1, -alang fre
[mkv] Track ID 5: subtitles (S_TEXT/UTF8), -sid 1, -slang eng
[mkv] Will play video track 1.
[mkv] Will display subtitle track 5.
Matroska file format detected.
VIDEO:  [avc1]  1280x544  24bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
dvdsublang...movie en
Opening video filter: [expand w=0 h=-80 x=0 y=0]
Expand: 0 x -80, 0 ; 0, osd: 0, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 1280 x 544 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 2.35:1 - prescaling to correct movie aspect.
[swscaler @ 0xdca720]SwScaler: using unscaled yuv420p -> bgr24 special converter
VO: [gl2] 1280x624 => 1280x624 BGR 24-bit
[gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!)
[gl2] antialiasing off
[gl2] bilinear linear
A:   0.9 V:   0.9 A-V:  0.008 ct:  0.021  23/ 23 45% 23%  0.9% 5 0
Exiting... (Quit)

The same command in verbose mode:

$ mplayer -vf expand=0:-80:0:0 -vo gl2 -v movie.mkv
MPlayer dev-SVN-r23328-4.1.3 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ (Family: 15, Model: 107, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
get_path('codecs.conf') -> '/home/domi/.mplayer/codecs.conf'
Reading /home/domi/.mplayer/codecs.conf: Can't open '/home/domi/.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:
CommandLine: '-vf' 'expand=0:-80:0:0' '-vo' 'gl2' '-v' 'movie.mkv'
init_freetype
get_path('font/font.desc') -> '/home/domi/.mplayer/font/font.desc'
Bitmap font /home/domi/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/domi/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/domi/.mplayer/input.conf'
Parsing input config file /home/domi/.mplayer/input.conf
Input config file /home/domi/.mplayer/input.conf parsed: 68 binds
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
get_path('movie.mkv.conf') -> '/home/domi/.mplayer/movie.mkv.conf'

Playing movie.mkv.
get_path('sub/') -> '/home/domi/.mplayer/sub/'
[file] File size is 4677759301 bytes
STREAM: [file] movie.mkv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
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 seek head ] ---------
[mkv] |+ segment information...
[mkv] | + timecode scale: 1000000
[mkv] | + duration: 8667.960s
[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 41
[mkv] |  + Default duration: 40.000ms ( = 25.000 fps)
[mkv] |  + Language: eng
[mkv] |  + Video track
[mkv] |   + Pixel width: 1280
[mkv] |   + Pixel height: 544
[mkv] |   + Display width: 1280
[mkv] |   + Display height: 544
[mkv] | + a track...
[mkv] |  + Track number: 2
[mkv] |  + Track type: Subtitle
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: S_TEXT/UTF8
[mkv] |  + Language: fre
[mkv] | + a track...
[mkv] |  + Track number: 3
[mkv] |  + Track type: Audio
[mkv] |  + Default flag: 0
[mkv] |  + Codec ID: A_AC3
[mkv] |  + Default duration: 32.000ms ( = 31.250 fps)
[mkv] |  + Language: eng
[mkv] |  + Audio track
[mkv] |   + Sampling frequency: 48000.000000
[mkv] |   + Channels: 6
[mkv] | + a track...
[mkv] |  + Track number: 4
[mkv] |  + Track type: Audio
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: A_AC3
[mkv] |  + Default duration: 32.000ms ( = 31.250 fps)
[mkv] |  + Language: fre
[mkv] |  + Audio track
[mkv] |   + Sampling frequency: 48000.000000
[mkv] |   + Channels: 6
[mkv] | + a track...
[mkv] |  + Track number: 5
[mkv] |  + Track type: Subtitle
[mkv] |  + Default flag: 0
[mkv] |  + Codec ID: S_TEXT/UTF8
[mkv] |  + Language: eng
[mkv] |+ found cluster, headers are parsed completely :)
==> Found video stream: 1
[mkv] Aspect: 2.352941
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: subtitles (S_TEXT/UTF8), -sid 0, -slang fre
==> Found audio stream: 3
[mkv] Track ID 3: audio (A_AC3), -aid 0, -alang eng
==> Found audio stream: 4
[mkv] Track ID 4: audio (A_AC3), -aid 1, -alang fre
[mkv] Track ID 5: subtitles (S_TEXT/UTF8), -sid 1, -slang eng
[mkv] Will play video track 1.
[mkv] Will display subtitle track 5.
Matroska file format detected.
VIDEO:  [avc1]  1280x544  24bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:31  fourcc:0x31637661  size:1280x544  fps:25.00  ftime:=0.0400
get_path('sub/') -> '/home/domi/.mplayer/sub/'
dvdsublang...movie en
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports STAYS_ON_TOP state.
[x11] Current fstype setting honours FULLSCREEN STAYS_ON_TOP ABOVE BELOW X atoms
Disabling DPMS
DPMSDisable stat: 1
Opening video filter: [expand w=0 h=-80 x=0 y=0]
Expand: 0 x -80, 0 ; 0, osd: 0, aspect: 0.000000, round: 1
==========================================================================
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: [liba52] AC3 decoding with liba52
dec_audio: Allocating 3840 bytes for input buffer.
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer.
Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe)  48000 Hz  384.0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0xA
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
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
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
audio_setup: sample format: s16le (requested: s16le)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags:   8/8  (8192 bytes/frag)  free:  65536
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
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...
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 1280 x 544 (preferred colorspace: Planar YV12)
Trying filter chain: expand vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale expand vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 2.35:1 - prescaling to correct movie aspect.
VO Config (1280x544->1280x544,flags=0,'MPlayer',0x32315659)
[swscaler @ 0xdca720]SwScaler: using unscaled yuv420p -> bgr24 special converter
REQ: flags=0x407  req=0x0
REQ: flags=0x7  req=0x0
VO: [gl2] 1280x624 => 1280x624 BGR 24-bit
VO: Description: X11 (OpenGL) - multiple textures version
VO: Author: Arpad Gereoffy & Sven Goethel
OpenGL extensions string:
GL_ARB_multitexture GL_EXT_texture_env_add GL_EXT_compiled_vertex_array GL_S3_s3tc GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_multisample GL_ARB_occlusion_query GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_shadow GL_ARB_shadow_ambient GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_float GL_ARB_texture_mirrored_repeat GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_blend GL_ARB_vertex_buffer_object GL_ARB_pixel_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_ARB_draw_buffers GL_ATI_draw_buffers GL_ATI_element_array GL_ATI_envmap_bumpmap GL_ATI_fragment_shader GL_ATI_map_object_buffer GL_ATI_separate_stencil GL_ATI_shader_texture_lod GL_ATI_texture_compression_3dc GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_ATI_texture_mirror_once GL_ATI_vertex_array_object GL_ATI_vertex_attrib_array_object GL_ATI_vertex_streams GL_ATIX_texture_env_combine3 GL_ATIX_texture_env_route GL_ATIX_vertex_shader_output_point_size GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_object GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_EXT_texgen_reflection GL_EXT_texture3D GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_vertex_array GL_EXT_vertex_shader GL_HP_occlusion_test GL_NV_blend_square GL_NV_occlusion_query GL_NV_texgen_reflection GL_SGI_color_matrix GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SUN_multi_draw_arrays  GLX_EXT_visual_info GLX_EXT_visual_rating GLX_EXT_import_context GLX_ARB_get_proc_address GLX_ARB_multisample
[gl2] OpenGL Driver Information:
        vendor: ATI Technologies Inc.,
        renderer Radeon X1600 Series,
        version 2.0.6458 (8.36.5)
[gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!)
[gl2] Creating 1x1 textures of size 2048x1024 ...
[gl2] antialiasing off
[gl2] bilinear linear
[gl2] Using image_bpp=24, image_bytes=3,
        gl_bitmap_format=GL_BGR, gl_bitmap_type=GL_UNSIGNED_BYTE,
        rgb_size=24 (8,8,8), a_sz=8,
        gl_internal_format=GL_RGBA8
[gl2] Resize: 1280x624
*** [scale] Exporting mp_image_t, 1280x544x12bpp YUV planar, 1044480 bytes
*** [vo] Allocating mp_image_t, 1280x624x24bpp BGR packed, 2396160 bytes
*** [expand] Direct Rendering mp_image_t, 1280x544x24bpp BGR packed, 2088960 bytes
[gl2] Resize: 1280x624
Uninit audio filters... 0.007 ct:  0.023  31/ 31 37% 23%  0.8% 5 0
[libaf] Removing filter dummy
Uninit audio: liba52
Uninit video: ffmpeg
Successfully enabled DPMS
vo: uninit ...

Exiting... (Quit)



More information about the MPlayer-users mailing list