digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Subtitles (http://www.digitalfaq.com/archives/subtitles/)
-   -   Adding subtitle to .mpg (http://www.digitalfaq.com/archives/subtitles/12060-adding-subtitle-mpg.html)

cyron 09-11-2004 05:06 AM

Adding subtitle to .mpg
 
i'v been reading all around the forum about ppl asking the same quastion but im kindda new at this and i didnt understand so sorry for asking again.

im using this french guide http://www.kvcd.net/forum/viewtopic.php?t=13391 to convert divx to mpg. but i dosent include adding subtitle, i wanted to know what is the easyest way to add subtitiles using this guide ?

rds_correia 09-11-2004 05:25 AM

Hi,
First let me tell you that although my French is a bit rusty I find that guide to be EXCELLENT.
Anyway your target seems to be KVCD.
If so, you have only one good method for adding subs to a kvcd movie.
The method is to add a filter to your avisynth plugins folder named VSFilter.dll and to add a line to
your script like TextSub("c:\mymovie\mymoviesubs.srt").
That is you'll have to find your movie's subs in subrip text format to use that or you may find it in other text
format and use Subtitle Workshop to convert to subrip format.
This way while you encode the movie with tmpgenc the subs will be hardencoded to your movie.
So if you already have an mpeg file you'll have to do it all over again to have subs.
There is another method called selectable SVCD/CVD subtitles but regularly standalone player are
only compatible with SVCD or CVD format, not both.
You'll have to find out which one your player is compatible with, if with any...
Just take the already encoded mpeg file and an srt text based subs file and use winsubmux.
If you have any specific doubts about any of these methods please let us know.
Cheers

cyron 09-11-2004 05:35 AM

first BIG thanks for the help 8)

two quastions:
1. where in the script should i add this line ?
2. whould the subtitles appear in the black lines of the movie ?

rds_correia 09-11-2004 05:43 AM

Hi :),
Just after your GripBorders() line.
You are using GripFit aren't you.
At least I think I recall seing it in the guide :roll:
Anyway if you're not you'll have an AddBorders(x,x,x,x).
Put if after adding the borders either with GripFit or AddBorders.
Cheers

cyron 09-11-2004 06:41 AM

hi rui :)

this is the script, its v4 i think by dialhot:
AviSource("c:\kvcd\kvcd.avi",false)
BlindPP(cpu=4)
Blockbuster(method="noise",detail_min=1,detail_max =3,variance=0.1,seed=1)
Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
GripCrop(HEIGHT, WIDTH, overscan=1, source_anamorphic=false)
GripSize(resizer="LanczosResize")
Undot()
TemporalSoften(2,7,7,3,2)
DCTFilter(1,1,1,1,1,1,0.5,0)
#Blockbuster(method="noise",detail_min=1,detail_ma x=10,variance=0.3,seed=5623)
GripBorders()
TextSub("c:\mymovie\mymoviesubs.srt")

i add textsub just after gripborders.

this will give me subtitle in the black area ?

rds_correia 09-11-2004 06:46 AM

Hi cyron :),
If I recall it properly, that will give you half inside the movie are and half inside the borders area.
Don't recall what to do in order to get it only inside the black borders area...
Anyone?
Cheers

cyron 09-11-2004 09:01 AM

hi rui 8)

is there a way using the 'TextSub' to control the Font style or the Font size like doing in a ssa subtitle ?

Dialhot 09-13-2004 04:30 AM

You must create a ".srt.style" file.
Do a research in the forum, I explained that a lot (in DVD2SVCD forum for sure).

cyron 09-18-2004 03:45 PM

i just need to add this:

Quote:

ScriptType: v4.00+
PlayResX: 384
PlayResY: 288

[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default,Arial,10,&H00ffffff,&H0000ffff,&H00000000, &H80000000,-1,0,0,0,100,100,0,0.00,1,2,3,2,20,20,20,1
as a mysub.srt.style

i can change fontname and fontsize ?
what is ScaleY and ScaleX ?

rds_correia 09-18-2004 05:46 PM

Hi cyron :),
If I'm not mistaken that is a VobSub sub file.
That I don't know how to tweak because it is not very well documented.
Or it is not documented at all...
If you use an srt file you can set the correct styles with subtitle workshop.
Though, these styles are inserted on a sub by sub basis and not for the whole subtitle file.
Give it a try.
Cheers

cyron 09-19-2004 04:55 AM

thanks rds_corrieia, ill give it a try

cyron 09-19-2004 07:26 AM

helo all

how exactly i change this using subtitle workshop:
1. fonttype ?
2. fontsyze ?
3. make the subtitles in the black area ?

Dialhot 09-20-2004 04:00 AM

Don't both with Subtitle Worshop ! The style file is all wha tyou need there !

ScaleX and ScaleY ARE the paremeters you need to change to modify the size of the subtitles. They are egual to (100,100) by default and represent the scale in % for both direction. If you want them smaller, put (75,75) for instance.

Fontsize does not have any influence has the real size is computed according to the resolution of the target.

cyron 09-20-2004 03:24 PM

i use the v4 script for srt.style...

just wanted to know if i can chk if it works (font size and position)
befor start encoding ?

thanks

rds_correia 09-20-2004 05:43 PM

Sorry to both.
I mislead cyron a couple of posts above by saying that he was showing us a VobSub file when in fact that was an srt.style file.
Also I understood by style that cyron wanted underline/italic etc.
That doesn't seem to be the case in his question after all.
Cheers

Dialhot 09-21-2004 05:00 AM

Quote:

Originally Posted by cyron
i use the v4 script for srt.style...

just wanted to know if i can chk if it works (font size and position)
befor start encoding ?

thanks

For sure : you can play the script in a media player or go in the preview feature of tmgpenc (menu file).


All times are GMT -5. The time now is 12:33 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.