Quantcast Quality of Subtitles with Vsfilter - digitalFAQ.com Forums [Archives]
  #1  
02-04-2004, 05:54 PM
Paulus Paulus is offline
Free Member
 
Join Date: Jun 2003
Location: Ottersum, The Netherlands
Posts: 199
Thanks: 0
Thanked 0 Times in 0 Posts
......For some reason I can't get the quality right with Textsub / Vsfilter. They look "blocky" or like if "bites" were taken out of the round letters like e, a, o.

Don't know why this happens....I use it like before.....

This is my srt.style file :

Code:
ScriptType: v4.00+ 
PlayResX: 480 
PlayResY: 480  

[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,24,&H00ffffff,&H00808080,&H00000000,&H80000000,0,0,0,0,75,100,0,0.00,1,1,2,2,20,20,80,1
It happens with SVCD as well as CVD res......
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
02-04-2004, 06:34 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Do not change the resolution in the style file, that is done automatically (I can't even tell how, but it's done).

Use exactly the following, and just adapt the ScaleX and ScaleY parameter :

Code:
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
Reply With Quote
  #3  
02-05-2004, 01:48 AM
Paulus Paulus is offline
Free Member
 
Join Date: Jun 2003
Location: Ottersum, The Netherlands
Posts: 199
Thanks: 0
Thanked 0 Times in 0 Posts
....Yeah, I changed the resolution manually only the last time. In search of a solution......

I see you have fontsize 10. That would result in subs that are not visible. At least in my case......

ScaleX and Y compress the letters (horizontally/vertically) I think, or don't they ? I believe there is a way to calculate what they should be (in combination with the resolution used, CVD or SVCD) but can't remember exactly.

I also installed the latest version of Vfilter (mine was older), but that didn't work either......

Anyway, I will try with "100 - 100" for ScaleX and Y. Don't know why I chaged it to 75 - 100 (it always worked before, that's the strange thing.).
Reply With Quote
  #4  
02-05-2004, 04:32 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Paulus
I see you have fontsize 10. That would result in subs that are not visible. At least in my case......
Not at all. As the resolution, the size is scaled correctly. Again I can't even tell how

Quote:
ScaleX and Y compress the letters (horizontally/vertically) I think, or don't they ?
In fact when I use a style file it's because I have size problem. And I change only ScaleX and ScaleY to fix it.

Quote:
I believe there is a way to calculate what they should be (in combination with the resolution used, CVD or SVCD) but can't remember exactly.
I read this without saying a word but again, it's useless to adapt scaleX and scaleY to the A/R of the picture. All is done automatically !

The 384*288 at the top give an A/R of 4:3. If your picture is 480*480, there is an automatic A/R correction done on the subtitles :

Xnew= Xold *480/384 * ScaleX
Ynew= Yold *480/288 * ScaleY

That is why you do not have anything to change ! The value I gave to you, I use them for all resolution from 352*288 up to 544*576 !

Quote:
Anyway, I will try with "100 - 100" for ScaleX and Y. Don't know why I chaged it to 75 - 100 (it always worked before, that's the strange thing.).
Because you were doing CVD (352*480) and someone told you that 352 is 75% of 480 and so use 75 for scaleX. That is completly wrong.
Reply With Quote
  #5  
02-05-2004, 06:14 AM
staigerpaip staigerpaip is offline
Free Member
 
Join Date: Oct 2003
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Phil,

Do you use GripFit and where in your script exactly you put the textsub? Before or after the cripborders? Before, cripfit takes care of the rezise (but the subs are not in the black borders of the movie). After Cripborders, I have to scale the subs menually. There is no automatic AR change on my system....

Tanks,

Staigerpaip
Reply With Quote
  #6  
02-05-2004, 06:31 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by staigerpaip
Do you use GripFit and where in your script exactly you put the textsub? Before or after the cripborders? Before, cripfit takes care of the rezise
Gripfit does it resize in the gripsize line. This line is already processed when you reach the textsub line and so : GRIPFIT CAN'T TAKE CARE OF RESIZING OF THE SUBS.

The resizing is done "elsewhere", and this place is in the vsfilter plugin itself.

Quote:
(but the subs are not in the black borders of the movie). After Cripborders, I have to scale the subs menually. There is no automatic AR change on my system....
I have to rescale them also when I put them in the border (else they are to large) BUT I don't have to change the A/R. I always have ScaleX=ScaleY even if I do 352*576.

Try it, you will see that letters are perfect whatever the resolution.

Note: be carrefull, I am talking about doing non anamorphic 4:3 targets ! Is that what you are doing ?
Because vsfilter does not take in account anamorphic destinations.
Reply With Quote
  #7  
02-05-2004, 12:16 PM
staigerpaip staigerpaip is offline
Free Member
 
Join Date: Oct 2003
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Phil,

Doing non anaphorphic 4:3 encodings...

Tried your settings but only voor 352x240/288 vsfilter automatically adjusts the AR. For all other resolutions the subs are distorted. I made sure I have the last version of vsfilter (december 2003) and avisynth 2.5.4. I tested it with the simplest avs script with gripfit:
Code:
AviSource("x.avi",False)
GripCrop(352, 576, overscan=1, source_anamorphic=false)
GripSize(resizer="LanczosResize")
GripBorders()
Textsub("e:\skvcd_sub\subtitle.srt")
With the style script you mentioned above named subtitle.srt.style

Played with bsplayer the subs have the correct AR when displayed in original AR. When I resize to 4:3 The subs are stretched. The overscan didn't make a difference.

Very strange. Maybe we should move this tread to the subforum (I stopt using dvd2svcd for a long time).
Reply With Quote
  #8  
02-05-2004, 01:44 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by staigerpaip
Very strange. Maybe we should move this tread to the subforum (I stopt using dvd2svcd for a long time).
Me too . I moved the thread. Paulus never remember there are other section in the forum

I will redo some test to be sure because I do 90% of my subtitled encoding in 352*288 so error is possible. But I did movies in 480*576 and I never ever had scaleX != scaleY.

I will tell you.
Reply With Quote
  #9  
02-05-2004, 03:47 PM
Paulus Paulus is offline
Free Member
 
Join Date: Jun 2003
Location: Ottersum, The Netherlands
Posts: 199
Thanks: 0
Thanked 0 Times in 0 Posts
......As long as it is uncertain where the error lies I still feel this is the correct forum section ........

I still have to test but I don't think my problems are caused by any setting in the style file. I used these ScaleX and ScaleY settings before (can't remember if in combination with V4 script though .....) and with perfect result. Maybe it's a codec problem or something......(installed an Xvid codec recently..... ) .really strange.

What's also strange is that watching the movie on the PC the subs look OK and on the TV it looks "blocky" / low res ("whit bytes out of the letters").....

Maybe also try to set the DVD player back to "auto" instead of PAL...
Reply With Quote
  #10  
02-05-2004, 05:38 PM
Paulus Paulus is offline
Free Member
 
Join Date: Jun 2003
Location: Ottersum, The Netherlands
Posts: 199
Thanks: 0
Thanked 0 Times in 0 Posts
.......It gets weirder and weirder.......

Now I've changed the TV model in my DVD player setup from PAL to MULTI and now the subs are perfect (source is NTSC SKVCD)......BUT
my previous problem is back, which is "bright pixel line on top of TV screen (red/green and blue)".

.....So I gues I have to chose either good subs but irritating bright line on top of TV screen/image or bad subs. (TV picture is practically same quality in both settings......)

Also tried "NTSC" setting but it's the same, bright line on top......

Will try my other Cyberhome Standalone as well, but I have to install it still...........

Sorry, topic closed.
Reply With Quote
  #11  
02-06-2004, 07:42 AM
gamma gamma is offline
Free Member
 
Join Date: Nov 2003
Location: Rotterdam (The Netherlands)
Posts: 237
Thanks: 0
Thanked 0 Times in 0 Posts
Paulus,

I've had the same problem. When encoding at 480x576 resolution, the subs aren't displayed correctly.

Try this:

PointResize(704,576).TextSub(subtitle).LanczosResi ze(480,576)

and in your srt.style file, change the size to 14. This seems very small, but it will be resized to a size comparable to 22.

I know the PiontResize-line looks a bit weird, so don't ask me how it works....

It worked for me anyways!
Reply With Quote
  #12  
02-06-2004, 09:52 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by gamma
I know the PiontResize-line looks a bit weird, so don't ask me how it works....
It's a double resiwing of ALL THE IMAGE (and not only the subtitle) and this leads to Shit.
Sorry, there is no other words.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Diko dando erro no vsfilter.dll killervr Conversão e Codificação de Vídeo (Português) 4 09-03-2004 01:51 PM
Subtitles: Adding .srt subtitles to a KVCD movie xpronic Subtitles 13 06-12-2004 09:33 PM
Duvida sobre VSFilter e legenda DrStein Conversão e Codificação de Vídeo (Português) 1 03-26-2004 10:37 AM
Error VSFilter Bombai Convertir y Codificar Video (Español) 5 09-04-2003 11:58 AM
Vsfilter giving me a runtime error? totonho03 Avisynth Scripting 9 08-04-2003 04:00 PM

Thread Tools



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