Opened 2 years ago

Closed 2 years ago

#2249 closed defect (invalid)

Subtitle file not found when filename contains ','

Reported by: Bost Owned by: beastd
Priority: normal Component: undetermined
Version: HEAD Severity: minor
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

The subtitle file is not found if it contains ',' even if properly escaped by '\'.

$ /home/bost/dev/mplayer/mplayer -v v\,fr.mp4 -sub subs\,fr.str                                                                                                                                   2015-08-18 18:01:35 
MPlayer SVN-r37451-4.9.2 (C) 2000-2015 MPlayer Team
CPU vendor name: GenuineIntel  max cpuid level: 13
CPU: Intel(R) Celeron(R) CPU        E3400  @ 2.60GHz (Family: 6, Model: 23, Stepping: 10)
extended cpuid-level: 8
extended cache-info: 67125312
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSE3: 1 SSSE3: 1 SSE4: 0 SSE4.2: 0 AVX: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 SSE3 SSSE3 CMOV
get_path('codecs.conf') -> '/home/bost/.mplayer/codecs.conf'
Reading optional codecs config file /home/bost/.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') -> '/home/bost/.mplayer/fonts'
Configuration: 
CommandLine: '-v' 'v,fr.mp4' '-sub' 'subs,fr.str'
Using nanosleep() timing
get_path('input.conf') -> '/home/bost/.mplayer/input.conf'
Reading optional input config file /home/bost/.mplayer/input.conf: No such file or directory
Reading optional input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
get_path('v,fr.mp4.conf') -> '/home/bost/.mplayer/v,fr.mp4.conf'

Playing v,fr.mp4.
get_path('sub/') -> '/home/bost/.mplayer/sub/'
[file] File size is 19609853 bytes
STREAM: [file] v,fr.mp4
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
libavformat version 56.40.101 (internal)
Configuration: --enable-gpl --enable-postproc
LAVF_check: QuickTime / MOV
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xb6c2b680]ISO: File Type Major Brand: mp42
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xb6c2b680]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xb6c2b680]Before avformat_find_stream_info() pos: 125581 bytes read:154205 seeks:0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xb6c2b680]All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xb6c2b680]After avformat_find_stream_info() pos: 157891 bytes read:186973 seeks:0 frames:14
==> Found video stream: 0
======= VIDEO Format ======
  biSize 80
  biWidth 640
  biHeight 360
  biPlanes 1
  biBitCount 24
  biCompression 875967048='H264'
  biSizeImage 691200
Unknown extra header dump: [1] [42] [c0] [1e] [ff] [e1] [0] [19] [67] [42] [c0] [1e] [da] [2] [80] [bf] [e5] [c0] [44] [0] [0] [3] [0] [4] [0] [0] [3] [0] [c8] [3c] [58] [ba] [80] [1] [0] [4] [68] [ce] [3c] [80] 
===========================
[lavf] stream 0: video (h264), -vid 0
==> Found audio stream: 1
======= WAVE Format =======
Format Tag: 20557 (0x504D)
Channels: 2
Samplerate: 44100
avg byte/sec: 12000
Block align: 1
bits/sample: 16
cbSize: 16
Unknown extra header dump: [12] [10] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] 
==========================================================================
[lavf] stream 1: audio (aac), -aid 0, -alang und
LAVF: 1 audio and 1 video streams found
LAVF: build 3680357
VIDEO:  [H264]  640x360  24bpp  25.000 fps  289.8 kbps (35.4 kbyte/s)
[V] filefmt:44  fourcc:0x34363248  size:640x360  fps:25.000  ftime:=0.0400
Clip info:
 major_brand: mp42
 minor_version: 0
 compatible_brands: isommp42
 creation_time: 2014-02-08 07:01:46
File not found: 'subs'
Failed to open subs.
Cannot load subtitles 'subs'.
File not found: 'fr.str'
Failed to open fr.str.
Cannot load subtitles 'fr.str'.
Load subtitles in ./
get_path('sub/') -> '/home/bost/.mplayer/sub/'
X11 opening display: :0.0
...

Change History (2)

comment:1 Changed 2 years ago by ib

No need to escape a comma,

/home/bost/dev/mplayer/mplayer -v v,fr.mp4 -sub subs,fr.str

should work just fine.

comment:2 Changed 2 years ago by ib

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.