digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   DVD2SVCD: Error in MA script when going to TMPGEnc (http://www.digitalfaq.com/archives/encode/4668-dvd2svcd-error-ma.html)

Thomas Davie 07-22-2003 07:26 PM

DVD2SVCD: Error in MA script when going to TMPGEnc
 
First off, the error I get is a small pop up window when TMPHEnc starts.

It says 'The resolution of the video is illegal. The windows size needs to be set between 8x8 and 4088x4088. The width and height of window needs to be multiple of 8'.

I did a search using illegal AND resolution, and found a reference to a more recent version of mpeg2dec3.dll than I had been using. So I popped that in, but nope. The resolution of the AVI I am attempting to convert is 480x360, and I am converting to 352x240. However, at the bottom of TMPPGEnc, it says DVD2SVCD (MPEG-1 604x56 23.976fpsCQ_VBR 25). Well, 604/8 is 74.5

I'm close, but any ideas?

thanks

Tom

Thomas Davie 07-22-2003 07:32 PM

I should add that I had uninstalled
 
All copies of DivX, and Xvid, and edited/cleaned up the system registry.

Tom

Avalon 07-22-2003 11:35 PM

Look at the AVISynthscript!!!!

If You using AS 2.5.2 try this Script:

Quote:

[AVISYNTH_MA Script (2.5.2)]
0=LoadPlugin(!Mpeg2Dec3.dll)
1=LoadPlugin(!StMedianfilter.dll)
2=LoadPlugin(!Asharp.dll)
3=LoadPlugin(!Undot.dll)
4=LoadPlugin(!Gripfit_preview.dll)
5=MaxTreshold=^max_threshold
6=scd_trigger=^scd_trigger
7=nf=0
8=undot()
9=Limiter()
10=asharp(2,4)
11=GripCrop(^Breite,^Hoehe,overscan=^overscan,source_anamorphi c=^source_ana)
12=GripSize(resizer="BicubicResize")
13=STMedianFilter(^stm1,^stm2,0,0)
14=MergeChroma(blur(^max_threshold))
15=MergeLuma(blur(0.2))
16=ScriptClip("nf=YDifferenceToNext()"+chr(13)+"nf >2.5 ? asharp(-(fmin((nf/30),1)),0):TemporalSoften(2,7,7,3,2)")
17=ScriptClip("nf >scd_trigger?asharp(-2,0):asharp(0,0)")
18=GripBorders()
19=Limiter()
20=function fmin(float f1,float f2){return(f1<f2)?f1:f2}
!Mpeg2Dec3.dll=C:\Filters25\MPEG2Dec3.dll
!StMedianfilter.dll=C:\Filters25\STMedianFilter.dl l
!Asharp.dll=C:\Filters25\asharp.dll
!Undot.dll=C:\Filters25\UnDot.dll
!Gripfit_preview.dll=C:\Filters25\GripFit_YV12.dll
^max_threshold=1.50
^scd_trigger=30
^Breite=352
^Hoehe=240
^overscan=0
^source_ana=true
^stm1=8
^stm2=32
?=
?asharp=
?f1=
I edited the lines in the fatt letters for You, so it should work... Copy this Script 1:1 and add it to Your DVD2SVCD.INI on the end... Next You start D2S You can open it at AVisynth setup...

Thomas Davie 07-23-2003 12:29 AM

Quote:

Originally Posted by Avalon
Look at the AVISynthscript!!!!

If You using AS 2.5.2 try this Script:

I edited the lines in the fatt letters for You, so it should work... Copy this Script 1:1 and add it to Your DVD2SVCD.INI on the end... Next You start D2S You can open it at AVisynth setup...

Thank you very much. Am trying it right now, and will report back asap on what happens.

No; exact same error message about illegal size (the odd thing is, if I remove the MA script from my ini file, I have no trouble getting to a KVCD?


Tom

Dialhot 07-23-2003 03:20 AM

Quote:

Originally Posted by Avalon
No; exact same error message about illegal size

For sure, because your problem wasn't were Avalon told you. Moreover is gave you false hints tellling you to use "Source_anamorphic=true" were you have avi, than means "source_anamorphic=false" and his script is so old that you won't have the last optimal picture that you can obtain with MA filter.
(did you do your test with this script ? If yes, I understand why it take you so much time...)

But your problem is elsewhere :
Quote:

(the odd thing is, if I remove the MA script from my ini file, I have no trouble getting to a KVCD?
Try to add "ConvertToRGB24()" at the end of the script and load it into TMPGEnc. If it solves the res problem, you definitely have a codec problem.

Thomas Davie 07-23-2003 06:57 AM

Quote:

Originally Posted by Dialhot
For sure, because your problem wasn't were Avalon told you. Moreover is gave you false hints tellling you to use "Source_anamorphic=true" were you have avi, than means "source_anamorphic=false" and his script is so old that you won't have the last optimal picture that you can obtain with MA filter.
(did you do your test with this script ? If yes, I understand why it take you so much time...)

Try to add "ConvertToRGB24()" at the end of the script and load it into TMPGEnc. If it solves the res problem, you definitely have a codec problem.


Done; I am using your script, as provided, but with a ConvertToRGB24() added as it's very last line. Will report back when I get to work.

Thanks

Tom

Thomas Davie 07-23-2003 10:58 AM

Fails in the same way :)
 
Illegal resolution; windows must be between 8x8 and 4088x4088 with multiples of 8. This is with ConvertToRGB() added as the last line of your (Dialhot's) adaptive script supplied to me, and then pasted into the end of my kvcd_lbr.ini file (loaded after DVD2SVCD is started). Done with an unmodified (non hex edited exe file).

I had, prior to this removed all DivX's and Xvids from my system, and then cleaned the registry manually. I suppose that the next step would be to;

a) uninstall DVD2SVCD.exe, remove AviSynth2.52, remove all AVS plugins, and delete all directories, and then

b) reinstall everything.

:lol: Unless there are better options? Now, if it makes any difference, I do have an ATI YV12 codec installed.....



thanks

Tom

Dialhot 07-23-2003 04:03 PM

Re: Fails in the same way :)
 
Quote:

Originally Posted by Thomas Davie
Illegal resolution; windows must be between 8x8 and 4088x4088 with multiples of 8. This is with ConvertToRGB()

I said "ConvertToRGB24", the "24" is important !

Quote:

Done with an unmodified (non hex edited exe file).
So you have 3 convert in the script ? One 'toYUY2' added by D2S, one 'ToYV12' at the top of the script, added by you, and finally "ToRGB24' at the end. Right ?

Quote:

do have an ATI YV12 codec installed.....
I also have but gspot never reported I use it in any time. Divx5.05 and last XVid are enought to obtain correct KVCD from DS2, using MA script, and NO convert at all (binary patched of course).

There is something really strange...

Thomas Davie 07-23-2003 04:22 PM

Re: Fails in the same way :)
 
Quote:

Originally Posted by Dialhot

I said "ConvertToRGB24", the "24" is important !

Sorry, I wasn't paying attention whilst typing at work. It was, in fact ConvertToRGB24()

Quote:

So you have 3 convert in the script ? One 'toYUY2' added by D2S, one 'ToYV12' at the top of the script, added by you, and finally "ToRGB24' at the end. Right ?
No more toYV12 after you had told me that with proper and non conflicting codecs installed that it would not be necessary. Just a toYUY2 added by D2S, and a ToRGB24() by me right at the end

Quote:

I also have but gspot never reported I use it in any time. Divx5.05 and last XVid are enought to obtain correct KVCD from DS2, using MA script, and NO convert at all (binary patched of course).

There is something really strange...
Yes my friend, there really is something strange :o I am a Biochemist by trade, so perhaps I don't approach computers as logically as I should :oops:

So, otnight when I get home from work, it will be uninstall and then observe which codecs I have, and reinstall, then adding the plugins only as necessary to get a specific AVS script running, using only your supplied MA script.


thanks

Tom
(will report back)

serrabastien 07-23-2003 04:39 PM

Can you post the script you use? Maybe I'm wrong but I think it will be much easy to understand why it doesn't work.

'Z

Thomas Davie 07-23-2003 05:49 PM

Quote:

Originally Posted by 'Z
Can you post the script you use? Maybe I'm wrong but I think it will be much easy to understand why it doesn't work.

'Z

Sure, it was this one suppkied to me by Dialhot.

[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

Tom

Dialhot 07-23-2003 06:22 PM

Re: Fails in the same way :)
 
Quote:

Originally Posted by Thomas Davie
No more toYV12 after you had told me that with proper and non conflicting codecs installed that it would not be necessary. Just a toYUY2 added by D2S, and a ToRGB24() by me right at the end

BUT... the "no more YV12" was ONLY if you a PATCHED the binairy !
If you don't, your movie is in YUY2 (do to the line added by D2S) and the MA script CAN'T work.

That's simple to understand, no ? MA SCRIPT CLAIMS TO BE IN YV12 !

Quote:

Yes my friend, there really is something strange :o I am a Biochemist by trade, so perhaps I don't approach computers as logically as I should :oops:
It seems so :-)

jorel 07-23-2003 06:33 PM

excuse me:

Phil,
you change the in the script
TemporalCleaner(6+nf,13+nf)
to
TemporalCleaner(6+nf,11+nf)
a few days ago and give me great explanations about this changes.

:wink:

thanks!

mrj03 07-24-2003 09:11 PM

AS 2.5.2 buggy ??
 
Quote:

Originally Posted by Avalon
Look at the AVISynthscript!!!!

If You using AS 2.5.2 try this Script:

Quote:

[AVISYNTH_MA Script (2.5.2)]
0=LoadPlugin(!Mpeg2Dec3.dll)
1=LoadPlugin(!StMedianfilter.dll)
2=LoadPlugin(!Asharp.dll)
3=LoadPlugin(!Undot.dll)
4=LoadPlugin(!Gripfit_preview.dll)
5=MaxTreshold=^max_threshold
6=scd_trigger=^scd_trigger
7=nf=0
8=undot()
9=Limiter()
10=asharp(2,4)
11=GripCrop(^Breite,^Hoehe,overscan=^overscan,source_anamorphi c=^source_ana)
12=GripSize(resizer="BicubicResize")
13=STMedianFilter(^stm1,^stm2,0,0)
14=MergeChroma(blur(^max_threshold))
15=MergeLuma(blur(0.2))
16=ScriptClip("nf=YDifferenceToNext()"+chr(13)+"nf >2.5 ? asharp(-(fmin((nf/30),1)),0):TemporalSoften(2,7,7,3,2)")
17=ScriptClip("nf >scd_trigger?asharp(-2,0):asharp(0,0)")
18=GripBorders()
19=Limiter()
20=function fmin(float f1,float f2){return(f1<f2)?f1:f2}
!Mpeg2Dec3.dll=C:\Filters25\MPEG2Dec3.dll
!StMedianfilter.dll=C:\Filters25\STMedianFilter.dl l
!Asharp.dll=C:\Filters25\asharp.dll
!Undot.dll=C:\Filters25\UnDot.dll
!Gripfit_preview.dll=C:\Filters25\GripFit_YV12.dll
^max_threshold=1.50
^scd_trigger=30
^Breite=352
^Hoehe=240
^overscan=0
^source_ana=true
^stm1=8
^stm2=32
?=
?asharp=
?f1=
I edited the lines in the fatt letters for You, so it should work... Copy this Script 1:1 and add it to Your DVD2SVCD.INI on the end... Next You start D2S You can open it at AVisynth setup...

When I go to install AviSynth_252.exe it has a WARNING. Is there an updated version I need to download?? Or are there certain PRECAUTIONS I should take during or after the install??

THANKS....

jorel 07-24-2003 09:27 PM

mrj03

what WARNING :?:
certain PRECAUTIONS :?:
:?
download the last avisynth:
http://cultact-server.novi.dk/kpo/avisynth/avs_cvs.html
just simple install (double click), nothing more :!:

:)


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