Log in

View Full Version : GK 26 and burning subtitles


cpuuk
10th January 2003, 12:36
Can't seem to get subtitles burned into final movie. I create the subtitles using GK process "Subtitles" resulting in the .sub, .ifo, and .idx files. The avs contains the subtitle string, but I do not see any subtitles on the final film. The subtitles themselves are fine, as I can see them, just nothing appears in the final avi.

I have read all the guides (I can create subrip files & do vobsub playback etc) and searched the GK forum.

#
# Created with Gordian Knot
#
# http://thewef.nav.to
#
# PLUGINS
# get them from http://users.win.be/dividee
LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\decomb.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\InverseTelecine.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\Avisynth_Spatial.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\GreedyHMA.dll")
LoadPlugin("C:\WINNT\System32\vobsub.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\SimpleResize.dll")
#
# SOURCE
mpeg2source("C:\video_ts\vts_05.d2v")
#
# TRIM
#trim(startframe,endframe)
#
# IVTC
#Telecide()
#Decimate(cycle=5)
# or use
#InverseTelecine(40,10,15)
#GreedyHMA(1,0,4,0,0,0,0,0)
#
# CROPPING
crop(2,2,716,572)
#
# DEINTERLACING
#FieldDeinterlace()
# or use
VerticalReduceBy2
# or maybe
#GreedyHMA(1,0,0,0,0,0,0,0)
#
# DENOISING: choose one combination (or none)
# 1) little noise (fast)
#TemporalSmoother(2,1)
#
# 2) medium noise (slow)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#TemporalSmoother(2)
#
# 3) heavy noise (very slow, you have been warned)
#SpatialSoftenMMX(2,4,6,false,false,4,4,6,8)
#TemporalSmoother(3)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#
# SUBTITLES
VobSub("C:\video_ts\vts_01_0")
#
# RESIZING
BicubicResize(640,352,0,0.75)
#
# BORDERS
#AddBorders(left,top,right,bottom)
#
# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
#SelectRangeEvery(280,14)
#
# FOOL CCEnc
#ResampleAudio(44100)

hakko504
10th January 2003, 12:44
It's because you use Fastdeinterlace. This cuts the resolution in half, throwing all reference points that vobsub needs far off. I'd use this script:LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec.dll")
LoadPlugin("C:\WINNT\System32\vobsub.dll")

mpeg2source("C:\video_ts\vts_05.d2v")
# uncomment one of these deinterlacers
FieldDeinterlace()
#GreedyHMA(1,0,0,0,0,0,0,0)
VobSub("C:\video_ts\vts_01_0")
crop(2,2,716,572)
BicubicResize(640,352,0,0.75)Usually you should put deinterlacers and vobsub before cropping unless you know exactly what is going on. fastdeinterlace is always a final resort when you want small resolution and a fast conversion.

N_F
10th January 2003, 13:51
You sure about that Hakko? Half a year ago or so I encoded Friends season 1-6. I used FastDeinterlace and Vobsub together in the way Gordian Knot defaults to. Though when I think about it, what you say does sound logical.

cpuuk: Have you checked the configuration that comes with Vobsub? You can try rearranging the subs there (I remember I had to do it with a movie once), though it'd probably be a good idea to use another deinterlacer as hakko recommends anyway.

hakko504
10th January 2003, 14:01
Yup, I started to investigate it when I had a 2,35:1 film letterboxed to 4:3, and I couldn't understand why I didn't get any subtitles. Turned out I was cutting them off at the bottom. After that I always check my subtitles without any filters/crop/resizing to make sure they appear in the right area before I encode.

cpuuk
10th January 2003, 15:23
Thx for the suggestions guys, I'll check the vobsub config and also try Hakko suggestion (although I may get the usual script crash when putting the cropping after deinterlace), when I get home tonight.

manono
10th January 2003, 16:24
Hi-

You could try and put the VobSub line after the resize. It should work OK then.

cpuuk
11th January 2003, 11:51
Ok, I tried Hakko's method and Manono method, neither suggestion gets the subtiltes into the final movie (didn't show up in preview):-(

So, maybe something is wrong with the vobsub configuration? Can anyone post a "good" configuration for me to check mine against ( or even a X Y setting that puts the subs smack in the middle of the screen). Thx.

cpuuk
12th January 2003, 12:03
Can anyone tell me if some reference to subtitle or vobsub should appear in the GK.log file? If yes, can your post your log file for me to look at? Thx.

It's driving me nuts, I just did my 11th conversion test, and still no subtitles :-(

manono
12th January 2003, 14:25
Hi-

Nothing worked, eh? So there's something else at work here. Now, originally you said:

The subtitles themselves are fine, as I can see them

But later you said you couldn't see them. So, when you saw them, just where did you see them? In the preview?. In VDub before encoding? But they still didn't show up in the final avi? That's very strange. Don't fool with the x coordinate unless you want the subs off to one side. Giving the y coordinate a positive value lowers them (I usually give it 40 or so which usually puts them near the bottom of the video). So, a negative y raises them. Maybe -50 or so should put them near the middle, but I really don't know, as the last place I want them is smack dab in the middle of the video. Did you choose the correct subtitle stream? If you used SmartRipper, in the INFO.txt, it tells you which sub streams are available. DVDDecrypter must have something like that also. Try and put all the settings back at default, open the .avs in VDub and scroll to see if they're there. If you can't remember what the default settings were (especially the check marks), then maybe start over.

And if you've been fooling with the check marks under the color boxes, then all bets are off, as you may have made them invisible or something. Don't touch the scale sliders (unless you know what you're doing) or the transparency slider either. If you need a guide, there's one at the bottom of This (http://www.doom9.org/gknot-basics-divx5.htm). Good Luck.

Edit: I decided to create some since I didn't have any lying around. You start with the .idx and .ifo files, and the sub creation process makes the .sub file and another .idx file. And -60 or -70 puts them near the center. But I think that also depends on the vertical resolution (I was testing with 576x336).

cpuuk
13th January 2003, 01:19
Thx for the response Manono, I'll try and clear up a few misunderstandings-

OK, when I say I can see them (subtitles), I meant after the Vobsub rip, I can see the timing references in vobsub resync or vobsub configure, and also I can edit the extracted sub files (not that I do, and I don't change any colours or default settings) in say subrip or vobsub. The point being that I know I have a good subtitle stream to mux with as I can see the files after vobsub has ripped them to the three files.

I wasn't sure, if after selecting the GK options, but before running the final avs, I could see the subtitles displayed in the "Preview" option, as that usually shows what the avi should look like.

What I was trying to nail down after trying sooo many permutations was, is my vobsub.dll failing or succeeding in the final avi? If so, where can I see this (gk.log perhaps). This was to test the theory of am I cutting off the subtitles or were the subtitles ever being muxed in to begin with, hence the thought about putting them in the middle. Essentially I don't know where to look to see if the vobsub is working or not working.

I'm just trying to follow a logical route, we know the files are getting ripped OK, the avs script is good, so where is the next failure point I should check.

Thx for your current suggestions, new ideas are always appreciated :-)

nFury8
13th January 2003, 06:03
This may sound way off, but did you rename the .sub and .idx files to the same name as your final avi output? :)

manono
13th January 2003, 09:04
Hi-

The log file won't say anything about it. You test in the preview or in VDub before encoding. If you see them there, you'll get them in the final .avi. If you don't, you won't. If the Sub stream you want doesn't show up, you might go back into the VobSub Configuration and choose another stream just for testing purposes and see if that one shows up. Sometimes they are mislabeled. Sometimes there is more than one in the language you want, and only one is the one you REALLY want. For example, the Excel Saga DVDs have 5 sets of English language subs, and I had to fool around a bit to find the one I wanted.

If worse comes to worst, you could always convert them to .srt or .ssa format and either use TextSub to burn them in, or keep them separate. But it shouldn't come to that. But, for testing purposes, you might try that (converting to .ssa) using SubResynch or SubRip and open them up in Notepad and check to see if they're all there. Should only take a 10-15 minutes or so.

cpuuk
13th January 2003, 11:52
No, the subtitles do not show in the preview, and I have tried with all three subtitles that are included on the DVD and none of them appear.

I have renamed the three files to the same naming convention as the final file name, but still no luck.

I'll try the subtext approach next, so I'm closing my line of questioning on this subject. Thx for all your help and suggestions, it was appreciated. :D

N_F
13th January 2003, 12:15
First of all, I haven't read through all the posts, so perhaps you've already tried it.

Did you try my earlier suggestion regarding the VobSub configuration? If I remember correctly you move the subtitles around my moving a red box.

cpuuk
3rd February 2003, 12:37
Just a postscript-

I had reason to re-format the hard drive, and re-install everything from scratch, so just to let you know that the subtitle feature is now working great. The point being that your info was good, but obviously my OS was screwed in some way. Thx.