PDA

View Full Version : [LINUX/MAC/WINDOWS] Browsing for subtitle dosn't show .txt subtitles


merphi
2008-09-04, 11:02
XBMC atlantis 4

when i play video and subtitle file has name same as video
like:
movie.avi
movie.txt
then xbmc itself read it and shows susb correctly

but when subtitle filename dosnt match movie name and when i browse for subtitles i dont see any files with .txt extension
i tried changing subtitle extension to sub (then movie stops playing), srt (no subtitle shows)

subtitle format is microdvd (text based with timeframes)

{15}{110}/Nazywam Michael Westen.|/By│em szpiegiem, dopˇki...
{111}{189}/Jesteť spalony.|/Trafi│eť na czarn╣ listŕ.


is there any way to set xbmc subtitle extension?

kraqh3d
2008-09-04, 17:27
no. its not there because its not supported. on the non-xbox version of xbmc, these are the valid subtitle extensions based off what subtitle formats are supported.

".srt|.rar|.zip|.ifo|.smi|.sub|.idx|.ass|.ssa";

the xbox version supports more because the subtitle support comes from mplayer. and, yes, txt is one of them.

merphi
2008-09-04, 19:35
thats wired, couse when i name subtitle file as movie then it shows corectly
so looks like there are supported

captured few mins ago
http://sep04.imgshare.us/O2f.jpg

kraqh3d
2008-09-04, 21:54
thats wired, couse when i name subtitle file as movie then it shows corectly

do you mean if you name the txt file to match the video filename so the subs are automatic?

and that was taken right from the code. its how the "browse for subtitles" list is filtered by file extension. the only assumption i can make from the code is this is how its supposed to be because that type not supported. and its clearly supported when the player is mplayer (which only exists in the xbox version). maybe the restriction is no longer necessary. i dont know. open a bug trac ticket on it. put in the details, and reference this thread.



void CGUIDialogAudioSubtitleSettings::OnSettingChanged( unsigned int num)
{

...

else if (setting.id == SUBTITLE_SETTINGS_BROWSER)
{

...

CStdString strMask = ".utf|.utf8|.utf-8|.sub|.srt|.smi|.rt|.txt|.ssa|.aqt|.jss|.ass|.idx |.rar|.zip";
if (g_application.GetCurrentPlayer() == EPC_DVDPLAYER)
strMask = ".srt|.rar|.zip|.ifo|.smi|.sub|.idx|.ass|.ssa";

merphi
2008-11-17, 16:10
I opened ticked 2 months ago - no response - but i pick feature request which i think is wrong since its actually BUT if txt subtitles seems to work fine

maybe some develeper would try to investigate that
details:
http://xbmc.org/trac/ticket/4802

jmarshall
2008-11-18, 04:48
Fixed in r16222.