Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#2218 closed defect (fixed)

External subtitles fail to load with -subcp

Reported by: redxii Owned by: beastd
Priority: normal Component: core
Version: HEAD Severity: major
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

This regression was introduced in r37309. When using the -subcp option external subtitles fail to load. I have tried external .srt and .ass and both failed (may be all external subs but those are the only two available to me). Those embedded for instance like in MKV and DVD work fine.

Possibly related to #2217

MPlayer Redxii-SVN-r37328-4.9.2 (i686) (C) 2000-2014 MPlayer Team
FFmpeg version: N-67976-g1f3d478
Build date: 2014-11-26 00:54:10 EST
CPU vendor name: GenuineIntel  max cpuid level: 13
CPU: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz (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 C:\Users\Joshua\Desktop\r37328\codecs
get_path('codecs.conf') -> 'C:/Users/Joshua/Desktop/r37328/mplayer/codecs.conf'
Reading optional codecs config file C:/Users/Joshua/Desktop/r37328/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
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> 'C:/Users/Joshua/Desktop/r37328/mplayer/fonts'
Configuration: --enable-static --enable-runtime-cpudetection --enable-menu --disable-inet6 --disable-liba52 --disable-libmpeg2-internal --disable-tv --disable-v
idix --disable-faac-lavc --extra-cflags=-I/sources/live555 --disable-mencoder
CommandLine: '-vo' 'direct3d' '-ass' '-subcp' 'enca:en:ISO-8859-1' 'G:\Videos\TV\Drama\School\School!! ep08 (704x396 x264).mp4' '-v'
Using Windows native timing
get_path('input.conf') -> 'C:/Users/Joshua/Desktop/r37328/mplayer/input.conf'
Parsing input config file C:/Users/Joshua/Desktop/r37328/mplayer/input.conf
Input config file C:/Users/Joshua/Desktop/r37328/mplayer/input.conf parsed: 92 binds
get_path('School!! ep08 (704x396 x264).mp4.conf') -> 'C:/Users/Joshua/Desktop/r37328/mplayer/School!! ep08 (704x396 x264).mp4.conf'

Playing G:\Videos\TV\Drama\School\School!! ep08 (704x396 x264).mp4.
get_path('sub/') -> 'C:/Users/Joshua/Desktop/r37328/mplayer/sub/'
WINSOCK2 init: 0
WINSOCK2 init: 0
[file] File size is 340598204 bytes
STREAM: [file] G:\Videos\TV\Drama\School\School!! ep08 (704x396 x264).mp4
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
libavformat version 56.15.100 (internal)
Configuration: --enable-gpl --enable-postproc
LAVF_check: QuickTime / MOV
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 01449560]ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 01449560]Before avformat_find_stream_info() pos: 340598159 bytes read:1591037 seeks:1
[h264 @ 01481dc0]no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 01449560]All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 01449560]After avformat_find_stream_info() pos: 1632663 bytes read:1656573 seeks:2 frames:16
==> Found video stream: 0
======= VIDEO Format ======
  biSize 81
  biWidth 704
  biHeight 396
  biPlanes 1
  biBitCount 24
  biCompression 875967048='H264'
  biSizeImage 836352
Unknown extra header dump: [1] [64] [0] [29] [ff] [e1] [0] [18] [67] [64] [0] [29] [ac] [d9] [40] [b0] [33] [fb] [c0] [44] [0] [a] [2e] [c4] [2] [62] [5a] [2] [
3c] [60] [c6] [58] [1] [0] [6] [68] [eb] [e1] [f2] [c8] [b0]
===========================
[lavf] stream 0: video (h264), -vid 0
==> Found audio stream: 1
======= WAVE Format =======
Format Tag: 20557 (0x504D)
Channels: 2
Samplerate: 48000
avg byte/sec: 24000
Block align: 1
bits/sample: 16
cbSize: 5
Unknown extra header dump: [11] [90] [56] [e5] [0]
==========================================================================
[lavf] stream 1: audio (aac), -aid 0, -alang und
LAVF: 1 audio and 1 video streams found
LAVF: build 3673956
VIDEO:  [H264]  704x396  24bpp  29.970 fps  778.4 kbps (95.0 kbyte/s)
[V] filefmt:44  fourcc:0x34363248  size:704x396  fps:29.970  ftime:=0.0334
Clip info:
 major_brand: isom
 minor_version: 1
 compatible_brands: isomavc1
 creation_time: 2011-03-07 18:27:12
Load subtitles in G:\Videos\TV\Drama\School\
get_path('sub/') -> 'C:/Users/Joshua/Desktop/r37328/mplayer/sub/'
WINSOCK2 init: 0
WINSOCK2 init: 0
[file] File size is 52704 bytes
STREAM: [file] G:\Videos\TV\Drama\School\School!! ep08 (704x396 x264).srt
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
SUB: Detected subtitle file format: subviewer
ENCA supported languages: be bg cs et hr hu lt lv pl ru sk sl uk zh __
ENCA detection failed: fallback to ISO-8859-1
SUB: opened iconv descriptor.
WINSOCK2 uninit
SUB: closed iconv descriptor.
SUB: Read 0 subtitles, 0 bad line(s).
WINSOCK2 init: 0
WINSOCK2 init: 0
[file] File size is 52704 bytes
STREAM: [file] G:\Videos\TV\Drama\School\School!! ep08 (704x396 x264).srt
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
WINSOCK2 uninit
Cannot load subtitles 'G:\Videos\TV\Drama\School\School!! ep08 (704x396 x264).srt'.
<vo_direct3d>Setting backbuffer dimensions to (1680x1050).
<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 1680x1050 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
[ass] Raster: FreeType 2.5.3
[ass] Shaper: FriBidi 0.19.6 (SIMPLE)
[ass] Initialized
get_path('fonts') -> 'C:/Users/Joshua/Desktop/r37328/mplayer/fonts'
get_path('subfont.ttf') -> 'C:/Users/Joshua/Desktop/r37328/mplayer/subfont.ttf'
[ass] Updating font cache
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 56.13.100 (internal)
Configuration: --enable-gpl --enable-postproc
INFO: libavcodec init OK!
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 1536000 + 131072 = 1667072 bytes for output buffer.
FFmpeg's libavcodec audio codec
INFO: libavcodec "aac" init OK!
AUDIO: 48000 Hz, 2 ch, floatle, 192.0 kbit/6.25% (ratio: 24000->384000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
Building audio filter chain for 48000Hz/2ch/floatle -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/floatle
[dummy] Was reinitialized: 48000Hz/2ch/floatle
Trying every known audio driver...
ao_dsound: Output Devices:
0 Primary Sound Driver <--
1 Speakers (Realtek High Definition Audio)
2 Realtek Digital Output (Realtek High Definition Audio)
3 Realtek Digital Output(Optical) (Realtek High Definition Audio)
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@miki.hu>
Building audio filter chain for 48000Hz/2ch/floatle -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 48000Hz/2ch/floatle
[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
[dummy] Was reinitialized: 48000Hz/2ch/floatle
[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
Starting playback...
[libaf] Reallocating memory in module format, old len = 0, new len = 65545
Increasing filtered audio buffer size from 0 to 65536
Increasing filtered audio buffer size from 65536 to 131072
[ffmpeg] aspect_ratio: 0.000000
[ffmpeg] aspect_ratio: 0.000000
[h264 @ 01481dc0]no picture
[h264 @ 01481dc0]no picture
[ffmpeg] aspect_ratio: 1.777778
VDec: vo config request - 704 x 396 (preferred colorspace: Planar YV12)
Trying filter chain: ass vo
<vo_direct3d>Accepted image format: Planar YV12
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (704x396->704x396,flags=0,'MPlayer',0x32315659)
<vo_direct3d>Accepted image format: Planar YV12
REQ: flags=0x437  req=0x0
VO: [direct3d] 704x396 => 704x396 Planar YV12
VO: Description: Direct3D 9 Renderer
VO: Author: Georgi Petrov (gogothebee) <gogothebee@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 (1680x1050), VO (704x396)
<vo_direct3d>create_d3d_surfaces called.
<vo_direct3d>OSD texture size (704x396), requested (704x400).
<vo_direct3d>Fullscreen movie rectangle: t: 0, l: 0, r: 704, b:396
*** [ass] Exporting mp_image_t, 704x396x12bpp YUV planar, 418176 bytes
*** [vo] Allocating mp_image_t, 704x396x12bpp YUV planar, 418176 bytes
A:   0.9 V:   0.9 A-V:  0.002 ct:  0.032   0/  0 19%  6%  0.6% 0 0
Uninit audio filters...
[libaf] Removing filter dummy
[libaf] Removing filter format
Uninit audio: ffmpeg
Uninit video: ffmpeg
WINSOCK2 uninit
<vo_direct3d>uninit called.
<vo_direct3d>uninit_d3d called.
<vo_direct3d>destroy_d3d_surfaces called.
<vo_direct3d>Stopping Direct3D.
vo: win32: uninit
ao_dsound: DirectSound uninitialized

Exiting... (Quit)

Change History (2)

comment:1 by redxii, 10 years ago

Resolution: fixed
Status: newclosed

comment:2 by beastd, 10 years ago

If I am not mistaken this problem was debugged by iive on -cvslog ML and fixed by Reimar in r37331.

Thank you for reporting this!

Note: See TracTickets for help on using tickets.