Quantcast DVD2SVCD: Converttorgb24() at the End of my Script - digitalFAQ.com Forums [Archives]
  #1  
07-23-2003, 08:45 PM
Thomas Davie Thomas Davie is offline
Free Member
 
Join Date: Jul 2003
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
First off, :P

It all started, when instead of adding ConvertToRGB24() at the end of my script, I added 12=ConvertToRGB24() at the end of my script. Then the evil 'illegal resolution' message went away.

Okay, so Dialhot said that if this solved the problem, it was definately a codedc issue. So I load the AVS file into VirtualDub, and it tells me right away that I'm missing a specific MPEG-4 codec. I found it. DL'd and installed it. Removed the ConvertToRGB24() from the end of my script, and no error message. Had one planar difference error which I was able to solve by putting in a ConvertToYV12() command. By judicious moving around the commands in the script, and using a hex edited executable, I've now got MA filtering while encoding my AVI to a KVCD, without a ConvertToYV12() command, and at a rate of 1 minutes encoded per 2 minutes time passed.

And that my friends, I can live with!!!!!!!!

Excuse me while I go consume massive quantities of beer.

I will post more details in specific later about how I recovered from my blunders!

Thanks Dialhot! Thanks Jorel! Thanks Avalon! Thanks Kwag!

Tom
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  
07-24-2003, 03:35 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Reply With Quote
  #3  
07-24-2003, 11:57 AM
Thomas Davie Thomas Davie is offline
Free Member
 
Join Date: Jul 2003
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
First off, thanks again. I've backed up my working ini files in case anything disastrous happens It's based on this code that you gave me;

[AVISYNTH_Adaptative Filter]
0=nf=0
1=GripCrop(^TargetWidth, ^TargetHeight+^BorderTop+^BorderBottom, overscan=^overscan, source_anamorphic=^source_ana, dest_anamorphic=^dest_ana)
2=GripSize(resizer="BiCubicResize")
3=Undot()
4=Asharp(1, 4)
5=STMedianFilter(^S_FilterThreshHold, ^S_EdgeThreshHold, 0, 0 )
6=MergeChroma(blur(^blur_chroma))
7=MergeLuma(blur(^blur_luma))
8=SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
9=ScriptClip("nf = round(YDifferenceToNext())"+chr(13)+ "nf >= SwitchThreshold ? unfilter(-(fmin(nf*2,100)),-(fmin(nf*2,100))) : TemporalCleaner(6+nf,13+nf) ")
10=GripBorders()
11=function fmin(int f1, int f2) { return (f1<f2) ? f1 : f2 }
^overscan=1
^source_ana=true
^dest_ana=false
^S_FilterThreshHold=8
^S_EdgeThreshHold=32
^blur_chroma=1.58
^blur_luma=0.1


As is, that code works on my system when backing up a DVD. I tested it late last night, and TMPGEnc worked at approximately 1.4x real time. While encoding an AVI, I needed to insert the ConvertToYV12() command before the GripCrop (....) statement; TMPGEnc works at let's say 0.4x real time. Is a DVD video already in YV12 format?

As an aside, I haven't seen the encode on the AVI yet because it wasn't quite finished yet. But, I took a few quick minutes to watch my DVD backup of Jurassic Park III, and I was astounded. 92 minutes long and I couldn't believe the effect that MA filtering had on it.

I think it will be time to start experimenting with scripts this weekend.

Tom
Reply With Quote
  #4  
07-24-2003, 12: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 Thomas Davie
As is, that code works on my system when backing up a DVD. I tested it late last night, and TMPGEnc worked at approximately 1.4x real time. While encoding an AVI, I needed to insert the ConvertToYV12() command before the GripCrop (....) statement; TMPGEnc works at let's say 0.4x real time. Is a DVD video already in YV12 format?
AS I already told you, space color is a codec matter, not a source format one.

I really don't understand why you have to add this line for AVI. I never have to ! I suggest you one thing : make a little avisynth script with just this :

Code:
AviSource("####your avi here####)
Subtitle(String(IsYV12()))
OPen it in wmp or zoomplayer. If "True" appears in the top left corner, you are in YV12. If "false" is written : change your avi codec !

Try whatever codec that can handle Divx that you can find (Divx 3.11, 4.01, 5.05, Xvid, 3ivx, ffdshow...). Try them one by one. It takes some time but you have to find a codec making YV12 everytime.

I repeat again and again that on my PC I HAVE YV12 FOR ANY SOURCE TYPE !

Quote:
92 minutes long and I couldn't believe the effect that MA filtering had on it.
That's why we spent so much time making it
Reply With Quote
  #5  
07-24-2003, 01:01 PM
Thomas Davie Thomas Davie is offline
Free Member
 
Join Date: Jul 2003
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
I really don't understand why you have to add this line for AVI. I never have to ! I suggest you one thing : make a little avisynth script with just this :

Code:
AviSource("####your avi here####)
Subtitle(String(IsYV12()))
OPen it in wmp or zoomplayer. If "True" appears in the top left corner, you are in YV12. If "false" is written : change your avi codec !
I don't know why either. But I will find ou! I understand the script you've made above, and I understand it's intent (finding the codec that makes YV12 always), but how do you change the AVI codec? Do you mean uninstalling every AVI codec from your system except the one that you are going to test in this little script? And, if getting a false, uninstalling that codec, replacing with the next to be tested?

Quote:
Try whatever codec that can handle Divx that you can find (Divx 3.11, 4.01, 5.05, Xvid, 3ivx, ffdshow...). Try them one by one. It takes some time but you have to find a codec making YV12 everytime.

I repeat again and again that on my PC I HAVE YV12 FOR ANY SOURCE TYPE !
I believe you; and that's the state I am trying to reach

Thanks; you've given me more to try when getting home today.

Tom
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD2SVCD: MA 2.5.2 Script o0RaidR0o Video Encoding and Conversion 0 11-13-2003 12:25 PM
DVD2SVCD: New optimal script Dialhot Video Encoding and Conversion 18 10-17-2003 05:24 PM
DVD2SVCD: 2.08 script, where to go from here? ftin Video Encoding and Conversion 1 07-29-2003 07:19 PM
DVD2SVCD: Changing DVD2SVCD.ini default settings for avs script...... black prince Video Encoding and Conversion 3 11-01-2002 03:25 AM
Avisynth: ConvertToRGB24 For TMPGEnc or VFAPI LadyMiles Avisynth Scripting 0 10-21-2002 02:07 PM

Thread Tools



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