| View previous topic :: View next topic |
| Author |
Message |
VinzC Advocate


Joined: 17 Apr 2004 Posts: 4550 Location: Spa (Belgium)
|
Posted: Wed Apr 18, 2012 8:40 pm Post subject: PBM: mplayer doesn't like commas in subtitle file names |
|
|
HI all.
I was playing around with mplayer and subtitle files. I usually name my video files with the movie title then some attributes between parenthesis, like date and DTS/AC3, e.g.: «Me myself and I (VF, AC3, 2001).avi» My subtitle files are named in a similar way, just that they have the .srt extension.
To my surprise, mplayer doesn't expect subtitle files to contain commas as I see on the standard output an error message like: «failed to open Me myself and I (VF : no such file or directory»! Is there a way to have mplayer load subtitle files with commas in their name anyway? I have tried enclosing the file name in double and single quotes, doesn't seem to work.
Thanks in advance. _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
GNU/Linux user #369763
“Wow! I feel root” |
|
| Back to top |
|
 |
avx Advocate


Joined: 21 Jun 2004 Posts: 2063
|
Posted: Wed Apr 18, 2012 9:23 pm Post subject: |
|
|
Mh, googling suggests, that this should have been fixed years ago, but maybe not upstream.
In the meantime, try in your mplayer.conf or | Code: | | mplayer -sub-fuzziness 1 args1-n |
_________________ ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>. |
|
| Back to top |
|
 |
VinzC Advocate


Joined: 17 Apr 2004 Posts: 4550 Location: Spa (Belgium)
|
Posted: Thu Apr 19, 2012 7:03 am Post subject: |
|
|
Thanks avx. I have indeed tried -sub-fuzziness 1 (before I posted actually) and it didn't change anything, subtitles aren't loaded. _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
GNU/Linux user #369763
“Wow! I feel root” |
|
| Back to top |
|
 |
avx Advocate


Joined: 21 Jun 2004 Posts: 2063
|
Posted: Thu Apr 19, 2012 8:43 am Post subject: |
|
|
Strange, works for me 8O
| Quote: | \mplayer "Max Payne (2008) [A:DE,EN; IMDB:0467197].mkv"
MPlayer SVN-r34840 (Gentoo)-4.5.3 (C) 2000-2012 MPlayer Team
MMX2 supported but disabled
Spiele Max Payne (2008) [A:DE,EN; IMDB:0467197].mkv.
Fülle Zwischenpuffer: 0.00% (0 Bytes)
libavformat version 53.32.100 (external)
libavformat-Dateiformat erkannt!
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (ac3), -aid 0, -alang ger
VIDEO: [H264] 718x428 0bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
Clip-Info:
title: Max Payne (2008)
Load subtitles in ./
SUB: Untertiteldatei (1) hinzugefügt: ./Max Payne (2008) [A:DE,EN; IMDB:0467197].srt
==========================================================================
Öffne Videodecoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 53.61.100 (external)
Ausgewählter Videocodec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Öffne Audiodecoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 224.0 kbit/14.58% (ratio: 28000->192000)
Ausgewählter Audiocodec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starte Wiedergabe...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Film-Aspekt ist 1.78:1 - Vorskalierung zur Korrektur der Seitenverhältnisse.
VO: [vdpau] 718x428 => 760x428 Planar YV12
A: 73.8 V: 73.8 A-V: 0.000 ct: 0.064 0/ 0 10% 1% 0.4% 0 0 50%
Beenden... (Ende) |
_________________ ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>. |
|
| Back to top |
|
 |
VinzC Advocate


Joined: 17 Apr 2004 Posts: 4550 Location: Spa (Belgium)
|
Posted: Fri Apr 20, 2012 7:27 am Post subject: |
|
|
It looks like you have an SVN version of mplayer while I'm using Portage's 1.0_rc4_p20110322-r1. Do you think that could be the reason? It also came to my mind to try mplayer2 and see if it solves the issue.
EDIT: Ah, oops, it's always an SVN version I bet, here's mine (from a different machine but I'm using the stable branch on the “problematic” machine too): MPlayer SVN-r33094-4.5.3 (C) 2000-2011 . _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
GNU/Linux user #369763
“Wow! I feel root” |
|
| Back to top |
|
 |
avx Advocate


Joined: 21 Jun 2004 Posts: 2063
|
Posted: Fri Apr 20, 2012 11:37 am Post subject: |
|
|
I'm on ~amd64, so unstable, yes. It may be, that this branch fixes it, though I can't remember personally having this problem anytime in the past.
For reference, this is my rather simple mplayer-config | Code: | [default]
vo=vdpau
ao=alsa
aspect=16:9
cache=32768
geometry=+0+0
double=yes
menu=yes
subfont-encoding="unicode"
unicode=yes
utf8=yes
sub-fuzziness=1 | (stripped some tv related stuff) _________________ ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>. |
|
| Back to top |
|
 |
VinzC Advocate


Joined: 17 Apr 2004 Posts: 4550 Location: Spa (Belgium)
|
Posted: Fri Apr 20, 2012 3:39 pm Post subject: |
|
|
Thanks a lot. Will try that and report.  _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
GNU/Linux user #369763
“Wow! I feel root” |
|
| Back to top |
|
 |
VinzC Advocate


Joined: 17 Apr 2004 Posts: 4550 Location: Spa (Belgium)
|
Posted: Mon Apr 23, 2012 6:53 pm Post subject: |
|
|
Hi again avx.
I have upgraded mplayer to the same version as yours now. Two facts: - I had spelled the subtitle file incorrectly the last time so I named it after the movie title and
- even with that version mplayer still doesn't open the subtitle file when passed in a -sub command-line option
but...
Having the subtitle file correctly spelled now has mplayer automatically pick the right one at startup, just like you, even if I placed all of my subtitles in a subdirectory of my movie folder.
Now, between you and I, it's an utterly stupid idea to use commas as a separator with arguments of that kind... knowing that it just needs to _repeat_ the -sub option! (mplayer -sub file1.srt -sub file2.srt ... KISS!) Wonder if I'm gonna file a bug report for this...
Thanks a lot for your lights BTW. _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
GNU/Linux user #369763
“Wow! I feel root” |
|
| Back to top |
|
 |
|