Quantcast DVD2SVCD: New Optimal Script - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Video Encoding and Conversion

Reply
 
LinkBack Thread Tools
  #1  
09-02-2003, 03:35 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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 !

note: it's possible that the permanent subtitles won't work because of the trick used. Let me know.
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  
09-08-2003, 09:50 AM
Payasa Payasa is offline
Free Member
 
Join Date: Aug 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
yes dialhot you`re right perm subs won`t show when using this new script.
not in preview also.
Reply With Quote
  #3  
09-08-2003, 09:58 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #4  
09-09-2003, 01:48 PM
studiodubio studiodubio is offline
Free Member
 
Join Date: Aug 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #5  
09-10-2003, 05:21 PM
studiodubio studiodubio is offline
Free Member
 
Join Date: Aug 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #6  
09-12-2003, 10:17 AM
Pavia Pavia is offline
Free Member
 
Join Date: Sep 2003
Location: The Netherlands
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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]
Reply With Quote
  #7  
09-12-2003, 10:28 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #8  
09-26-2003, 08:36 AM
Pavia Pavia is offline
Free Member
 
Join Date: Sep 2003
Location: The Netherlands
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #9  
10-16-2003, 07:31 AM
staigerpaip staigerpaip is offline
Free Member
 
Join Date: Oct 2003
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #10  
10-16-2003, 03:11 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #11  
10-17-2003, 02:24 AM
staigerpaip staigerpaip is offline
Free Member
 
Join Date: Oct 2003
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #12  
10-17-2003, 03:51 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #13  
10-17-2003, 08:34 AM
staigerpaip staigerpaip is offline
Free Member
 
Join Date: Oct 2003
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #14  
10-17-2003, 09: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
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.
Reply With Quote
  #15  
10-17-2003, 12: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
@staigerpaip.

Hello Tinus,

Don't you have to remove line 9 from your perm subs script ? (function convert to ...." ?).
Reply With Quote
  #16  
10-17-2003, 01:09 PM
staigerpaip staigerpaip is offline
Free Member
 
Join Date: Oct 2003
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #17  
10-17-2003, 01:41 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
...Ah,...of course

But, is the optimal DivX script with Deen not better then ?..
Reply With Quote
  #18  
10-17-2003, 02:40 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
No it isn't. You should read threads about optimal script in avi->mpg forum.
Reply With Quote
  #19  
10-17-2003, 05:24 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
Sorry........can't keep up.

Another I guess.......
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD2SVCD: Latest optimal scripts for DVD2SVCD Dialhot Video Encoding and Conversion 0 07-10-2004 07:45 AM
Optimal script or simple resize script? bigggt Avisynth Scripting 2 06-22-2004 08:17 PM
DVD2SVCD: Question about Optimal Script and Permanent subtitles Livlander Video Encoding and Conversion 4 05-02-2004 02:26 PM
new KVCD script candidate for optimal script! Dialhot Video Encoding and Conversion 12 10-11-2003 02:09 PM
Avisynth: Latest optimal script and DVD2SVCD CCE multipass? audi2honda Avisynth Scripting 19 06-18-2003 05:27 PM




 
All times are GMT -5. The time now is 04:18 PM  —  vBulletin © Jelsoft Enterprises Ltd