Log in

View Full Version : Does DVD2AVI manage subtitles?


Skrycchio
15th December 2002, 12:10
Hi everyone.

I've to compress a multi PGC VOB with TMPGEnc, with permanent subtitles.

I use the classic way of saving project from DVD2AVI, saving template.txt from IfoEdit and compress with TMPGEnc.

Because I want to reduce video from 720x576 to 352x288, subtitles are invisibles.
I've tried to export them, resize them, but I cannot reimport in the VOB (see my post in subtitles-part of this forum).

Well, now I'm triyng to use a permanent subtitle superimposed to the original video, but I don't know how I can proceed.

Does DVD2AVI support subtitles?
If not, what sw I can USE?

Remember that is a multi PGC, and I cannot use Flask, because if I use IFO mode I can't manage multi PGC, if I use VOB mode I can't manage subtitles.

Please, help me.
Thanks.

hakko504
15th December 2002, 14:14
VobSub & AVIsynth.

Use VobSub to rip subtitles into a separate file.
Save a DVD2AVI (v1.76) project of the DVD, but do not enable crop/resisze here.

Then feed the following AviSynth script to TMPEG:LoadPlugin("mpeg2dec.dll") #Add paths to the filenames
Loadplugin("vobsub.dll")
Mpeg2source("dvd.d2v")
VobSub("subtitles") #No extension
Crop(8,0,-8,0) #This notation requires AviSynth2.07 or newer
ReduceBy2()
ConvertToRGB() #TMPEG needs RGB input

You can also use Gordian Knot to setup the .avs for you, just remember not to start the encoding, and to add the ConvertToRGB line. And if you look in Doom9's guides you will find better explanations of all required steps.

Skrycchio
15th December 2002, 21:34
Thanks!
I'm trying.

Skrycchio
19th December 2002, 13:27
Hi Hakko!
Now I've the time to trying your methode. ;)

Well.
Ok for DVD2AVI. I've saved the project naming it dvd.d2v

I'm unable (or not be able!) to save subtitle with vobsub.
I've saved the subtitles with VobEdit 0.6, in a .SUP file. It's right?

I've downloaded the mpeg2dec.dll file, and I've put it on c:\windows\system

I've downloaded Vobsub and putted the vobsub.dll in C:\windows\system

I've created the dvd.avs file with the lines suggested.

If my subtitles are in the file mysub.sup, at the line VobSub("subtitles") I must write VobSub("mysub.sub") or VobSub("mysub") or other?

Well, now I load TMPGEnc, but there is not any avisynth server active to allow me the loading of dvd.avs.

What's wrong?
I must use even Gordian knot?

Please, can you esplicate me?
Thanks in advance and excuse me for late.

Salvo

hakko504
19th December 2002, 14:06
The vobsub package should have installed a folder in the start menu, and there you should find an item called 'VobSub Configure'. Start this, open the ifo on DVD that contains the main movie, select an output directory and wait. And wait. It is very slow. After a while you get a screen where you can select the subtitles you want, along with some other parameters.

The new files created by vobsub will by default be called vts_01_0.idx and vts_01_0.sub, and should be loaded into AviSynth with VobSub("vts_01_0")

Don't know what version of AVIsynth you are using, but I'd recommend that you get v2.07 here. (http://sourceforge.net/projects/avisynth2) This also includes an installer that will create an AviSynth directory in your Program Files dir. There also is a 'plugins' directory there, and if you just put all AviSynth plugins there you don't need to explictly load them in your scripts. 'VobSub' is an exception to this! Gabest has put a lot of stuff into that dll, and it should remain in the systems dir.

No you do not need Gordian Knot. I just suggested it because it will install everything you need, and create the .avs for you.

I don't work with TMPEG very often, but I think I recall something about it being able to find active frameservers by itself. This should only be used if you use Flask or AdobePremiere to export the video, and does not apply in this case. Just open the .avs as a regular AVI. (maybe there is someone else out there who can give you a hint in the right direction here)

Skrycchio
19th December 2002, 15:40
> The new files created by vobsub will by default
> be called vts_01_0.idx and vts_01_0.sub, and
> should be loaded into AviSynth with
> VobSub("vts_01_0")

Done!
I've selected ONLY my language, and I've obtained 2 files, .IDX and .SUB, named VTS_02_0 (it's 2nd video)


> I'd recommend that you get avisynth 2.07.

Done!
Installed, Ok.
I've putted mpeg2dec.dll in c:\...\avisynt\plugin dir...
I've leaved vobsub.dll in system dir...


> I don't work with TMPEG very often, but I think > I recall something about it being able to find
> active frameservers by itself.

Done.
Now I'm be able to load the DVD.AVS file that I've created.
It's working fine, links to DVD, but WITHOUT subtitles.

I cannot see the subtitle when see preview, when encoding, when parse the file with sourge range, when I see the file just encoded...
No subtitles!

What's wrong now?
Maybe the folder where I put the *.SUB and *.IDX file?
I've tryed on VOBs folder or Avisynth's plugin.

I report you my dvd.avs file.
---
LoadPlugin("mpeg2dec.dll")
LoadPlugin("vobsub.dll")
Mpeg2source("2.d2v")
VobSub("Vts_02_0")
Crop(8,0,-8,0)
ConvertToRGB()
---

Another little step and I'll have my subtitles.
Thanks to you.
;)

hakko504
19th December 2002, 16:37
You might need to add the paths to the following commands:
LoadPlugin("c:\windows\system\vobsub.dll")
Mpeg2source("<path to d2v file>\2.d2v")
VobSub("<path to vobsub files>\Vts_02_0")
Crop(8,0,-8,0)
ConvertToRGB()
Also try using another language, sometimes the DVD makers hide the real language in order to make ripping hard. And try to move the subs around (vobsub configure), that is another way of making things hard for us rippers.

Skrycchio
19th December 2002, 16:40
I'm sorry, Hakko, but I'm very BLIND!!!

After VOBSUB writing the 2 files .IDX and .SUB, I haven't seen the option that allow to choice the subtitle language!

Because I've used ONLY 1 language, I was sure that the only language present was ok.

LOL!

It's ALL OK.
Now I can see the subtitles in TMPGEnc, and I can encode video and subtitles togheter.

Thanks again!
Salvo

Skrycchio
20th December 2002, 00:37
Trouble will never dies!!!

The video that I would to recompress is a multi PGC.

I've obtained a video with subtitles in superimpose only in the first PGC.
All others PGC are without subtitles...

Damn, what's wrong, now?
I was so happy!

I've seen the VOBSUB joiner, but I'm unable to rejoin more than 2 files, and after rejoin first by second file, the output index file is the same of the second.

There is a methode to extract with VobSub ALL the subtitle of ALL PGC's?

May I use VobEdit?
Its output is a .SUP file. Does working like .SUB + .IDX?

There is any guide?
In the doom9 I haven't seen.

Thanks again!
Salvo

Skrycchio
20th December 2002, 00:47
OK OK, I've understud.
Now I know how to rejoin the SUBp.

The question is: how I can make a datestamp of original subpicture, to make more easy to insert the right delay between the first and second IDX?

What kind of program?

;) Well, now the thread is OT, because is a subpicture thread!
My apologies.

Salvo

hakko504
20th December 2002, 11:34
No, we're still in the subtitle department. If you check the vobsub folder again, where you found 'VobSub Config' you should also find 'SubResynch' This proggie will give you the timestamps of all subtitle pictures in the stream. If you open the .AVS in VirtualDubMod you will be able to synch the audio very easily.You will have to look at mouth movements to get exact frame but it will play selected part of movie, and by pressing F5 it will reload the video at the current frame when you have changed the subtitles, making it very easy to iterate the steps until the perfect solution is found.
Oh, and a description of how to use subresynch can be found in c:\programs\gabest\vobsub\docs\subresynch.txt and VDMod can be dl from sourceforge (http://sourceforge.net/projects/virtualdubmod)

Skrycchio
22nd December 2002, 02:37
Thank to you, hakko, now I've the backup copy of my DVD.

Thanks again.
Salvo

hakko504
22nd December 2002, 10:36
You're welcome. Always nice to see newbies succed and maybe progress to bigger and better things.