digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Subtitles (http://www.digitalfaq.com/archives/subtitles/)
-   -   Subtitles: Trying to do perm subs for skvcd (http://www.digitalfaq.com/archives/subtitles/8693-subtitles-perm-subs.html)

KYUSS 03-20-2004 03:17 AM

trying to do perm subs for skvcd
 
hi guys here's my script

Code:

LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\AVISYN~2.DLL")
mpeg2source("D:\DVD2SV~1\DVD2AV~1.D2V")
nf=0
GripCrop(352, 360+60+60, overscan=1, source_anamorphic=true, dest_anamorphic=false)
GripSize(resizer="BiCubicResize")
Undot()
Asharp(1, 4)
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(1.58))
MergeLuma(blur(0.1))
SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
ScriptClip("nf = round(YDifferenceToNext())"+chr(13)+ "((nf >= SwitchThreshold) && (nf < 30)) ? unfilter(-(fmin(nf*2,100)),-(fmin(nf*2,100))) : TemporalCleaner(6+nf,11+nf) ")
GripBorders()
function fmin(int f1, int f2) { return (f1<f2) ? f1 : f2 }
function ConvertToYUY2(clip c){ return isYV12(c) ? c : convertToYV12(c) }
ConvertToYUY2()
AvisynthSubtitler("D:\DVD2SV~1\Subs\","permsubs.txt")

does this look ok?

encode came out excellent only no subs?!!!!

the proggy i used was dvd2svcd with the dvd2kvcd plugin

is the subs line in the right place?

cheers
KYUSS

Dialhot 03-20-2004 09:00 PM

Your problem is that AvisynthSubtitler, the line that provides the subtitles, needs to work in YUY2 (that is why there is also the line ConvertToYUY2)

The problem is that you (or azel, who made the plugin) took a line from a script of mine that need to work in YV12. That's why you find the line "function ConvertToYUY2" that in fact, force a convert in YV12 !

Just remove this line ("function ConvertToYUY2(clip c){ return isYV12(c) ? c : convertToYV12(c) } ") and I think all will be ok !

KYUSS 03-21-2004 09:02 AM

cheers m8
i will give that a try tonight

thanks
KYUSS

KYUSS 03-22-2004 10:14 AM

that worked a treat m8 :D

thank you :lol:

KYUSS

Dialhot 03-22-2004 10:17 AM

Quote:

Originally Posted by KYUSS
that worked a treat m8 :D

Great :-). Just keep in mind that YUY2 mode is 30% slower than YV12 and a little bit less performant. So do not use this mode for all your jobs but just the ones where you need tu use permsubs.

KYUSS 03-22-2004 06:38 PM

will do m8..........

i do most of my conversions overnight now so time aint really a problem :)

but i will heed your warning about the script not performing as well with that line removed :)

for now i need perm subs so i'll just take the 30% speed hit whilst i am in slumber :)

thanks again for the help m8

KYUSS


All times are GMT -5. The time now is 08:52 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.