digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   DVD2SVCD: ConvertToRGB24() at the end of my script (http://www.digitalfaq.com/archives/encode/4686-dvd2svcd-converttorgb24-end.html)

Thomas Davie 07-23-2003 08:45 PM

DVD2SVCD: ConvertToRGB24() at the end of my script
 
First off, :) :o :D :lol: :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

Dialhot 07-24-2003 03:35 AM

:ole:

Thomas Davie 07-24-2003 11:57 AM

Give that it works, I have a few questions why?
 
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

Dialhot 07-24-2003 12:44 PM

Re: Give that it works, I have a few questions why?
 
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 ;-)

Thomas Davie 07-24-2003 01:01 PM

Re: Give that it works, I have a few questions why?
 
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


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