PDA

View Full Version : DivX to SVCD using DVD2SVCD and CCE 2.5 with permanent subs


asdf
14th June 2002, 14:04
Hi gang,

Can anyone tell me how to insert permanent subtitles in an Divx movie using DVD2SVCD???

If this is impossible please tell me another way to insert subs in my DivX. But I want to use CCE for encoding.

Tnx.

asdf

markrb
14th June 2002, 18:55
All how Do I qestions belong in basics.
As for your question I do not know myself.

Mark

Patjen
15th June 2002, 01:58
I've used to insert subtitles but not with CCE, only with TmpegEnc.

You need to use the subtitler plugin for Virtual dub and then let virtual dub frameserve the avi + subs to your encoding program...
It's been a while since I've done this but a good search with google might turn up some interesting sites I guess....sorry..my memory sucks..

Schultz
15th June 2002, 04:50
You can use textsub plugin for avisynth that comes with the VobSub installed.. when you are converting click the edit your avs file before the CCE or after DVD2avi process where ever you wish it to be.. put this into your avisynth file
LoadPlugin("path\to\textsub.vdf)
TextSub("path\to\file.exe")
if you want the subs in the Blackarea if you are putting a blackarea on the SVCd then put these commnads after the Resize/Addborders commmand..if you just want them on the video then i would suggest putting them before the Resize. Also what type of subs are you using..? timebased format or framebased format?

asdf
16th June 2002, 14:21
Originally posted by Schultz
You can use textsub plugin for avisynth that comes with the VobSub installed.. when you are converting click the edit your avs file before the CCE or after DVD2avi process where ever you wish it to be.. put this into your avisynth file
LoadPlugin("path\to\textsub.vdf)
TextSub("path\to\file.exe")
if you want the subs in the Blackarea if you are putting a blackarea on the SVCd then put these commnads after the Resize/Addborders commmand..if you just want them on the video then i would suggest putting them before the Resize. Also what type of subs are you using..? timebased format or framebased format?

Tnx for this information.

Another question. The TextSub("path....") line in the avs file, can you also insert information on size of subtitles???

If not how can i adjust the size of my subs?

Tnx in advance.

Schultz
16th June 2002, 18:00
it depends on the format. in SSA files you can specify a format line.. in other formats if you add a ssa [STYLE] tag into the file
filename.srt.style then textsub command will use this.. its documented in the supported formats.txt file.

asdf
16th June 2002, 22:35
Tnx man,

You have been a great help. I was able to make a great svcd with subtitles!!!!

Tnx a lot!

asdf.

Mosaic
20th June 2002, 03:10
I wish to reauthor a DVD .....with Spruce Up ...
BUT I want to include the FORCED english subs in the m2v stream as permanent subs.

I use Tmpgenc 2.54.....as the encoder.

Eg. Star Wars 1 ..The Phantom Menace has forced subs when Sebulba speaks.....I need those to show up but not the other English chatter.


thx

gerti67
20th June 2002, 13:36
@Mosaic:

See my first reply to furado in this thread for example:

http://forum.doom9.org/showthread.php?s=&threadid=21000

I think this is what you've been looking for when converting with DVD2SVCD?

I know it's not the easiest way but for me it worked in the past and if you don't want to stop the whole process then just tick the "Edit when dvd2avi is done" option in "Frameserver" tab so the process will stop waiting for your changes to the script but instead you just do the procedure I described in the other thread and then hit "OK" in the script window to continue after the work is done.

Hope that helps,
Gerti

Mosaic
20th June 2002, 17:06
However since I want to end up with a DVD-r.....where can I set up the correct bitrate & resolution for the mpeg2 stream.....and naturally I don't need audio as I will use the ac3 extraction from the original VOB.

gerti67
20th June 2002, 17:24
@Mosaic:

Haven't you seen my reply in this thread of yours?

http://forum.doom9.org/showthread.php?s=&threadid=27629

Greetings,
Gerti

Mosaic
20th June 2002, 17:38
:rolleyes:

titvs
1st July 2002, 16:19
Hi Schultz

I'm also trying to implement subtitles directly into AVI2SVCD module by editing the avisynth script as you said.
I've inserted the folowwing lines:

LoadPlugin("c:\dvd2svcd\textsub.vdf)
TextSub("c:\divx_svcd\rollerball.ssa")

And the Avisynth script looks like this:

LoadPlugin("C:\DVD2SVCD\MPEG2Dec\mpeg2dec.dll")
LoadPlugin("c:\dvd2svcd\textsub.vdf)
AVISource("C:\DIVX_S~1\RB_010~1.AVI")
ConvertToYUY2()
BicubicResize(480,368,0,0.75)
AddBorders(0,56,0,56)
TextSub("c:\divx_svcd\rollerball.ssa")
ResampleAudio(44100)

When CCE starts it crashes.
Does Textsub.vdf support SSA files? Also tried with MicroDVD format (SUB) and it crashed the same way. The documentation doesn't refer wich formats it supports.
Am I doing something wrong?

Titvs

mr_et
1st July 2002, 20:36
Hi Gang,

In order to add subs to an SVCD using a DivX as source I preprocess
the file with VirtualDub using the following process:

1. Get the subs somewhere.... ;)
2. Convert the subs to ssa using your favorite sub converter.
3. You can edit the subfile.ssa file now using notepad, you can
remove or add all text you like. (For your Starwars movie....)
4. Start Virtual dub, make sure you have the subtitle plugin.
5. Open the AVI file.
6. Set audio to Avi adio and direct stream copy, you can change
audio processing here as well when your DivX has a format
not supported by D2S.
7. Set Video to full processing.
8. Select Video -> filters.
9. Select Add and select the subtitler filter.
10. Add the name of your subtitle file.
11. Select Video -> Coompression.
12. Select the codec you would like to use, ie DivX.
13. Select File -> Save as AVI and you are ready to rock 'n roll.

You'll now have a new DivX with permanent subs....

I would love to have DivX subtitles added to D2S....

ET

Faceman101
1st July 2002, 21:47
Since you are recompressing the AVI wouldn't you lose some quality? I've tried that method before awhile ago but only on a sample and didn't have enough to compare quality loss.

titvs
1st July 2002, 22:33
Faceman101,

You only dont lose quality by using a quality lossless codec like Huffyuv but for this you really need a LARGE amount of HD space :(
Decompressing and recompressing again with a regular codec results in a quality loss (visible or not).
I'm still waiting for someone who knows how to work with textsub.vdf :p
I think it's the best mothod to avoid video recompressing.
Of course there's also the way of SVCD subtitle streams but i prefer permanent subs because they are visible on the PC.

Titvs

mr_et
1st July 2002, 23:50
Hi All,

True, you'll lose quality.... I normally only use this option
when converting movies for the kids, who need the subtitles....
We are not native english speakers where I live.... ;)

In order to lose as less quality as possible, I set the highest
quality for DivX in the configure screen for your codec. Eg,
3000 Kb/sec for the data rate....

It creates a huge file, however only temporarily....

I also edit the SSA file by hand and add some subtitles at
the beginning or at the end, like "This DVD has been
hacked by ET".... That always impresses the family.... ;)

Anyways, using my method answers the question of selectively adding
subs, like the parts in Starwars....

ET

manono
2nd July 2002, 00:04
Hi titvs-

You're missing a set of quotation marks after the .vdf. Yeah, I know-blame Shultz.:) It should be like so:

LoadPlugin("c:\dvd2svcd\textsub.vdf")

It's a good idea to open the script in VDub and to scroll around to see that everything is OK (VDub doesn't crash-sub elevation and size is OK, etc.) before letting CCE go to work on it.

titvs
2nd July 2002, 00:57
Geee, i haven't noticed that there was a quotation mark missing. I know Schultz didnt put it either but doesn't seem logical without it ;)
I finally managed to put Textsub.vdf to work :p
Now only i have to do is "optimizing" the subtitle size and position. ;)

Thanks a lot Manono

Titvs

mordant
14th July 2002, 15:01
I used to above info on textsub and was able to encode from divx with srt format subs...could someone give me an example of the syntax for changing the format of the subs (size, style ect) please?

Thanks for any help.

Schultz
15th July 2002, 11:58
Here if the information on how to do it with SubResync outta the VobSub docs..

- There is an option to override the predefined "Default" style when opening srt, sub, ... using an additional file placed next to the subtitles (like somesub.srt and somesub.srt.style). It must use the format of ssa or ass and should only contain the style definition part without any dialogue lines. To have some hint how this is done, try to modify the default parameters of some .srt in subresync and re-save it.

mordant
15th July 2002, 19:40
Thanks for the feedback. I had read that, it just didn't make what to do with the script file any clearer - to point the script at the *.srt.style file or the *.srt file? I managed to work out that the script remained unchanged and textsub found the *.srt.style info on its own.