Log in

View Full Version : Gknot can't open .sub file


LoCo
23rd March 2005, 19:37
Hi
I'm trying to add permanent subtitles to an avi file by re-encoding it.
I open the avi file in gknot, click 'save and encode', then 'Select VobSub Files' and choose the .sub file. But then when i click preview, windows media player classic opens and shows an error;

TextSub: Can't open "D:\directory\filename.sub" (C:\prog~1\gordia~1\preview.avs, line 66)

and line 66 in file preview.avs is
TextSub("D:directory\filename.sub")

Also when i don't choose subtitles in the 'save and encode' window the movie previews fine.
So how do i fix this so that i can re-encode with perm subs?
thanks

manono
23rd March 2005, 20:15
Hello and welcome to the forum-

There are 2 kinds of .sub files. There are the text based ones, and for them you'll get the TextSub line. Then there are the image based .sub files which always have an .idx file to go along with them, and for them you'll get the VobSub line instead. If you have idx/sub files, and you choose the .sub, GKnot thinks you're choosing the text based .sub files, and you'll get that error.

So, if you have the kind with an .idx, choose "Select VobSub Files" and select the .idx instead.

Of course, I may be wrong here, as my ver 0.35.0 doesn't seem to have an option to choose text based subs. I don't see it anyway.

LoCo
23rd March 2005, 20:43
My .sub comes with the .idx file and when i chose .idx i still get the same error
TextSub("D:\directory\filename")
(no file extension, any importance?)
Also the .sub has two languages (korean and english) when i play with media player & vobsub, if thats a problem?
Is there another subtitle format i could convert them to for it to work? Or any other way to re-encode avi with perm subs?
This is all so i can play the file on my standalone dvd/divx player which doesn't support soft subtitles.
Thanks

len0x
23rd March 2005, 21:27
Originally posted by LoCo
TextSub("D:\directory\filename")

This can't happen (I checked) - its should be VobSub("D:\directory\filename") in GK 0.35.

P.S. if extension is different from IDX then TextSub is used indeed.

niamh
23rd March 2005, 21:40
Hi manono :), that new feature's sort of my fault, I begged len0x to implement this if he could (he could.)... it's there alright, once you select vobsub files from the avs encode thingee box, the drop-down menu now shows text subs as well as vobsubs :) It's well hidden,mind.

LoCo: I don't know how you get this error, because if I select an idx or sub through "vobsub files" it works fine for me. I would think you picked text files instead of vobsub files in the drop down menu, as manono explained, .sub can be two different things, but you shouldn't be able to see the idx file through this though.Would you mind double checking you used the "vobsub files" type in the "files of type" menu?
No extension is normal, but the line should be

VobSub("D:\directory\filename") not TextSub

vobsub files have most of the time several languages, it isn't a problem, GK will simply burn in the first stream. Simply make sure in preview(when we get it to work) that the correct stream is showing.

You can certainly convert the subtitles to srt for example, with subrip or vobsub itself (in that case, you need to use TextSub, with an extension; But GK is meant to set all this for you in the first place)


Anyway, the fastest workaround is to replace manually "textsub" by "vobsub",and all your troubles will be over, but it would be nice to corner the problem for other users :)

Edit: just got beaten to it, in a much more concise manner ;)

manono
23rd March 2005, 23:53
I don't know, niamh (pronounced Nee-AHV, and not Nee-AM :)). I make the "files of type" box drop down, and all I see is still "VobSub Files", and I can see no subs except those with an .idx extension. I seem to have the opposite problem as LoCo. So, I'm inclined to believe LoCo when he says all he gets is TextSub, and can't access VobSub. Something screwy's going on.

So LoCo, as niamh says, until this gets sorted out, you'll have to edit the .avs (hit "Edit" next to the "Preview") to replace "TextSub" with "VobSub".

niamh
24th March 2005, 08:27
I think we all have a different version of 0.35 ;) want mine?
Something curious is going on indeed

I don't know, niamh (pronounced Nee-AHV, and not Nee-AM )
heh, you don't miss much, do you? :)

LoCo
24th March 2005, 11:32
In the 'files of type' dropdown menu, just like manono I can only select 'VobSub Files'.

Also, i tried another .avi file that comes with an .srt sub file, but when i 'Select VobSub Files', the .srt is not displayed. (It only lets me choose either an .idx or .sub file)

I tried manually editing the .avs file of line #66 from TextSub to VobSub, but what .dll (or .vdf?) file should i specify for the 'LoadPlugin'?

hmmm.. could it be a vsfilter.dll problem?
Or does the OS I'm using matter? (win2k)
Or could having AutoGK installed as well cause some registry conflicts? dunno just some wild guesses =/
I'll try reinstalling gk again in the meantime
Thanks for your help so far guys ^^

len0x
24th March 2005, 12:18
I know what's the problem with File Open dialog filter - language ini file that contains description of the filter was not updated in 0.35.

Its has this:

OpenSubsDialog_Filter=VobSub Files|*.ifo;*.idx;*.sub


and it should be:

OpenSubsDialog_Filter=VobSub Files|*.idx|Text Sub Files|*.txt;*.sub;*.srt;*.ssa|All Files|*.*

manono
24th March 2005, 13:13
Yes, that fixed it for me.

You have to go into the Language Folder of where you have Gordian Knot installed, and change that line in the .ini file of the language you're using, as len0x described. Good luck, because that line is hard as heck to find.

If, when trying to choose the idx file, you see only that TextSub box in the "Files of type", hit that little down pointing arrow to the right to change to VobSub files, or vice versa. If you see VobSub, and you want to use an .srt, .ssa, .txt, or .sub text file, hit that down pointing arrow to change to TextSub Files.

If you can't find the right line in the ini file, Loco, or the fix doesn't work, or you prefer to wait for the next update, then in addition to making the TextSub to VobSub change as niamh mentioned before, you also have to remove the "#" from the left of the VSFilter Plugin line up near the top of the .avs. Sorry, I forgot to mention that last time. But I hope you figured it out.

niamh
24th March 2005, 15:55
:confused: how come I have the right ini file then?
come to think of it, maybe I still have that test 0.35 build, instead of the official one that came right after, it's the only thing I can think of .So we DID have a different version after all :)

Good luck, because that line is hard as heck to find.
CTRL+F ;)

[edit]: Actually,only my english ini file is up to date.

LoCo
26th March 2005, 07:35
Changing the OpenSubsDialog fixes the problem for avi's with .srt subs, but I still get the same error with .idx and .sub vobsub files; line 66 still shows TextSub("D:\directory\filename")
But as stated, by manually changing it to vobsub and re-opening the preview.avs, it works :p