digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   DVD2SVCD: New optimal script (http://www.digitalfaq.com/archives/encode/5356-dvd2svcd-optimal-script.html)

Dialhot 09-02-2003 03:35 PM

New optimal script
 
Hi guys,

Check the sticky thread in top of the forum to have the least revision of Divx optimal script for DVD2SVCD.

I finally used Deen() as it gives much better results and a file a lot smaller than previous version based on ATC.

I also found a way to override the YUY2 conversion that D2S always does. With this trick we are sure to work in YV12 and the best is that the ConvertToYV12 is performed only if we need it :-) (no useless convertTo...() anymore :-))

Enjoy ! :-D

note: it's possible that the permanent subtitles won't work because of the trick used. Let me know.

Payasa 09-08-2003 09:50 AM

yes dialhot you`re right perm subs won`t show when using this new script.
not in preview also.

Dialhot 09-08-2003 09:58 AM

In this case, ask to edit the avs script while video encoding and just comment out (or erase) the line :
Code:

function ConvertToYUY2(clip c){ return isYV12(c) ? c : convertToYV12(c) }
or simply erase this line from the ini file if you plan to use subtitles very often.

studiodubio 09-09-2003 01:48 PM

Quote:

Originally Posted by Dialhot
Is this normal?
After I erase this line DVD2SVCD gives an error in the Preview Mode:

:-( I didn't remember that.

In fact, yes it's normal. So, the conclusion is that the optimal script with deen can't be used with permanent subtitles. No workaround.
You can replace Deen() by ATC(2,3,5,0.5,false) but you will have poor results.

I suggest you to use scripteditor taht is now included in D2S (frameserver tab) and to make a new script that you will used only for subtitles.

studiodubio 09-10-2003 05:21 PM

Quote:

Originally Posted by studiodubio
Quote:

Originally Posted by Dialhot
Is this normal?
After I erase this line DVD2SVCD gives an error in the Preview Mode:

:-( I didn't remember that.

You can replace Deen() by ATC(2,3,5,0.5,false) but you will have poor results.

I'll try this one. thnx

Pavia 09-12-2003 10:17 AM

CCE, cannot find codec for YV12
 
Hi Dialhot,
I just discovered your fantastic script and used it successfully in DVD2SVCD using Tmpgenc. I tried the same script but using CCE and I get an error message saying that CCE cannot find the appropriate coded for YV12. Does this mean that I have to change the script to ConverT .... instead of the function you created ? I have updated to the latest DIVX codec and XVID, but with CCE still no luck.
Your suggestion will be much appreciated.
ps : I'm using CCE 2.50
Thanks
Ciao

quote="Dialhot"]In this case, ask to edit the avs script while video encoding and just comment out (or erase) the line :
Code:

function ConvertToYUY2(clip c){ return isYV12(c) ? c : convertToYV12(c) }
or simply erase this line from the ini file if you plan to use subtitles very often.[/quote]

Dialhot 09-12-2003 10:28 AM

vmesquita told me that CCE need to have YUY2 video. So, as for subtitles, you must remove the line "function ConvertToYUY2(clip c){ return isYV12(c) ? c : convertToYV12(c) }" to use CCE

Pavia 09-26-2003 08:36 AM

Quote:

Originally Posted by Dialhot
vmesquita told me that CCE need to have YUY2 video. So, as for subtitles, you must remove the line "function ConvertToYUY2(clip c){ return isYV12(c) ? c : convertToYV12(c) }" to use CCE

Hi Phil, thanks for your answer, I have actually tried the suggestion you gave to another user, which was to patch the exe file with an Hex editor so that DVDSVCD doesn't add the line convertTo YUY2, and the function seems to work just fine in CCE 2.67.


Grazie, Merci, Thank you

staigerpaip 10-16-2003 07:31 AM

Dialhot,

I think I adjusted the optimal script v3 you posted in the divx to kvcd forum to use with d2s. Could you check if i've done it right? This is one without perm.subs.

Thanks...

Code:

0=BlindPP(cpu=4)
1=Blockbuster(method="noise",detail_min=1,detail_max=3,variance=0.1,seed=1)
2=ATC(2,3,5,0.5,false)
3=GripCrop(^TargetWidth, ^TargetHeight+^BorderTop+^BorderBottom, overscan=^overscan, source_anamorphic=^source_ana, dest_anamorphic=^dest_ana)
4=GripSize(resizer="^resizer")
5=Undot()
6=TemporalSoften(2,7,7,3,2)
7=DCTFilter(1,1,1,1,1,1,0.5,0)
8=GripBorders()
9=function ConvertToYUY2(clip c){ return isYV12(c) ? c : convertToYV12(c) }
^overscan=1
^source_ana=false
^dest_ana=false
^resizer=LanczosResize


Dialhot 10-16-2003 03:11 PM

It is correct. Thank you. I really don't have the time to use D2S currently.

As soon as possible I will give you modification to do on this script to use permsubs.

staigerpaip 10-17-2003 02:24 AM

No problem Phil,

Take your time. This script is working for me and I think the others can use it as wel. Regarding the permsubs, I'm using the vsfilter with a textsub line and a style file. I must say the subs are looking better than they did with the permsubs in d2s. Earlier I said they were a little bit fuzzy, but I had a corrupted filter I think. After reïnstalling the filter, everything was ok.

I must say this is a great script. I'm encoding now mpeg1 and muxing as svcd (my standalone cannot handle the svcd ntsc gop-structure(in general, not only ksvcd). Every second the screen is pulled-down a little bit. (Maybe someone else has this problem?)My last project was +/- 2h15min 352x240 resolution on 1 cd. And it really looked great! I won't claim near DVD quality, but almost no blocks and smooth transitions.

Here's my script for permsubs.
Code:

0=BlindPP(cpu=4)
1=Blockbuster(method="noise",detail_min=1,detail_max=3,variance=0.1,seed=1)
2=ATC(2,3,5,0.5,false)
3=GripCrop(^TargetWidth, ^TargetHeight+^BorderTop+^BorderBottom, overscan=^overscan, source_anamorphic=^source_ana, dest_anamorphic=^dest_ana)
4=GripSize(resizer="^resizer")
5=Undot()
6=TemporalSoften(2,7,7,3,2)
7=DCTFilter(1,1,1,1,1,1,0.5,0)
8=GripBorders()
9=function ConvertToYUY2(clip c){ return isYV12(c) ? c : convertToYV12
(c) }
10=TextSub('your_sub.srt')
^overscan=1
^source_ana=false
^dest_ana=false
^resizer=LanczosResize


Dialhot 10-17-2003 03:51 AM

It's not a good idea to have the name of the subtitle hard coded in the script. The fastest way is to use a variable. Like this :

Code:

10=Textsub("^subtitle")
^subtitle=nameofsubtitle.srt

But I want to make a full adaptative script that will be abble to find the name of the srt automatically, by taking the name of the avi source and just change the extension.

staigerpaip 10-17-2003 08:34 AM

That is a great idea, much easier....

But what to do with the .srt.style file? Do you have to make a different style file for every srt or is there a sollution to create a general style for all srt files?

Will make the subname a variable, thanks for the tip.

Tinus.

Dialhot 10-17-2003 09:31 AM

Quote:

Originally Posted by staigerpaip
is there a sollution to create a general style for all srt files?

You can use a general style file (I do that ;-)) but as VSFilter search for a style file called "nameofsubtitle.srt.style" you must copy this generic template to the correct name before launching avisynth.

That's just a matter of doing a file copy but it has to be done manually.

Paulus 10-17-2003 12:47 PM

@staigerpaip.

Hello Tinus,

Don't you have to remove line 9 from your perm subs script ? (function convert to ...." ?).

staigerpaip 10-17-2003 01:09 PM

Paulus, I use the vsfilter with the Textsub command in the script. This Textsub works also in the yv12 colorspace. The permsub function in d2s doesn't work in yv12. That is the problem with the subs. So the convert to yv12 line can stay in the script.

Paulus 10-17-2003 01:41 PM

...Ah,...of course :oops:

But, is the optimal DivX script with Deen not better then ?..

Dialhot 10-17-2003 02:40 PM

No it isn't. You should read threads about optimal script in avi->mpg forum.

Paulus 10-17-2003 05:24 PM

Sorry........can't keep up.

Another :oops: I guess....... :)


All times are GMT -5. The time now is 04:05 PM  —  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.