digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Problems with MPEG2DEC (http://www.digitalfaq.com/archives/avisynth/2059-avisynth-problems-mpeg2dec.html)

Gaudi 01-06-2003 01:56 AM

Problems with MPEG2DEC
 
I would like to read an SVCD mpeg2 via and AVS script so as to be able to do file prediction.

The D2V can be read without problems with TMPEG using the apropiate VFAPI plugin. But when trying to load it via avisynth, I got the following error message:

Unrecognized Exception!

The script is very simple, and is as following:
LoadPlugin("MPEG2DEC.dll")
mpeg2source("crystal.d2v")

If somebody can help me, I will very much appreciate it.

Gaudi

kwag 01-06-2003 02:05 AM

Hi Gaudi,

Try creating a .d2v from that mpeg file with DVD2AVI. Then process the .d2v as usual with a FitCD created .avs :wink:

-kwag

Gaudi 01-06-2003 09:35 PM

I could not make it work.

I continue getting the error:
"Unrecognized Exception!"

Might it be a problem with DVD2AVI parameters?

Many thanks Kwag.


Gaudi

SansGrip 01-06-2003 09:43 PM

Re: Problems with MPEG2DEC
 
Quote:

Originally Posted by Gaudi
mpeg2source("crystal.d2v")

Try using the full path (e.g. "x:\bob\movies\crystal.d2v"). I sometimes get an exception when I mistype the filename.

black prince 01-06-2003 09:47 PM

Hi Gaudi,

Gaudi wrote:
Quote:

Might it be a problem with DVD2AVI parameters?
I noticed that you have no directory for loadplugin (e.g.
loadplugin("C:\mpegedec.dll") and your .d2v file has
no directory. Is this a typo in your sample script. :?:

The script is very simple, and is as following:
LoadPlugin("MPEG2DEC.dll")
mpeg2source("crystal.d2v")



-black prince

Gaudi 01-07-2003 07:00 AM

Thanks.

Quote:

Originally Posted by black prince
I noticed that you have no directory for loadplugin (e.g.
loadplugin("C:\mpegedec.dll") and your .d2v file has
no directory. Is this a typo in your sample script.

That was an example of the script. Just two lines. The complete one is below.

Quote:

Originally Posted by SansGrip
Try using the full path (e.g. "x:\bob\movies\crystal.d2v"). I sometimes get an exception when I mistype the filename.

In my complete script the paths are complete. Check it out below. But still the same problem.
Have tried moving to a folder without spaces, tried other mpeg2dec filters and still could not manage to open the file.

LoadPlugin("C:\Archivos de programa\acp\MPEG2Dec\MPEG2DEC.dll")
LoadPlugin("C:\Encoding\AviSynth Filters\fluxsmooth.dll")
LoadPlugin("C:\Encoding\AviSynth Filters\blockbuster.dll")
LoadPlugin("C:\Encoding\AviSynth Filters\legalclip.dll")
LoadPlugin("C:\Encoding\AviSynth Filters\sampler.dll")

Mpeg2Source("C:\Documents and Settings\Gaudi\Escritorio\Pruebas KVCD\Cristal\crystal.d2v")
LegalClip()
LanczosResize(512,446,0,6,480,564)
FluxSmooth()
Blockbuster(method="dither", variance=.5, seed=1)
Blockbuster(method="sharpen", detail_min=20, detail_max=90, strength=7)
AddBorders(8,17,8,17)
AssumeFPS(23.976)
LegalClip()

Sampler(length=24)
## MPEG size = ((Total frames/MovieTimeInMinutes)/24) * MPEG sample file size ##
version()


It is very unconvenient for me, because without the avs sript I cannot apply filters nor do file prediction beforere encoding.

Any help will be welcomed.

Many thanks.

Gaudi

Boulder 01-07-2003 07:15 AM

Two questions:

1) Does the error message state any line where the unrecognized exception occurs? Avisynth usually does this.

2) Why do you add 17 pixel borders? I think you should resize to 512x448 and add 16 pixel borders.

SansGrip 01-07-2003 07:46 AM

Quote:

Originally Posted by Gaudi
Have tried moving to a folder without spaces, tried other mpeg2dec filters and still could not manage to open the file.

Re-download mpeg2dec.dll from Dividee's site and overwrite the version you're using now. Also do a search of your system and make sure that's the only copy of the DLL that you have.

black prince 01-07-2003 08:11 AM

@Gaudi,

Gaudi wrote:
Quote:

I continue getting the error: "Unrecognized Exception!"
I realize your getting alot of advice, but before you reload MPEG2DEC
try commenting out script commands leaving just:

LoadPlugin("C:\Archivos de programa\acp\MPEG2Dec\MPEG2DEC.dll")
LoadPlugin("C:\Encoding\AviSynth Filters\fluxsmooth.dll")
LoadPlugin("C:\Encoding\AviSynth Filters\blockbuster.dll")
LoadPlugin("C:\Encoding\AviSynth Filters\legalclip.dll")
LoadPlugin("C:\Encoding\AviSynth Filters\sampler.dll")
Mpeg2Source("C:\Documents and Settings\Gaudi\Escritorio\Pruebas KVCD\Cristal\crystal.d2v")


If you get an error or exception then the problem has to be with
DVD2AVI. Check the version for DVD2AVI and if it's not 1.76 then
get this version :)

-black prince

Gaudi 01-07-2003 12:11 PM

The error is in line 7.

For sure the problem is with DVD2AVI, because if I strip all the other lines from the script, I still get the same error.

The addborders has an odd size because it is a test, not the final I use for encoding. I tried it because of kwag suggestion of using FitCD to create the script.

If remember, the version I am using is 1.77 (could that be?).
Will check and if so will go back to ver 1.76.

Many thanks.


Gaudi

Boulder 01-07-2003 12:56 PM

Quote:

Originally Posted by Gaudi
The addborders has an odd size because it is a test, not the final I use for encoding. I tried it because of kwag suggestion of using FitCD to create the script.

You are probably using the so-called CCE optimization option in FitCD. If you choose to use FitCD to make your scripts, make sure that this option is disabled as it is not correct and has been removed from the latest version. You definitely don't want to have 17 pixel borders in your encodes :wink:

Your problem is probably DVD2AVI related. I've noticed that v1.76 is the only one to use.

SansGrip 01-07-2003 04:22 PM

Quote:

Originally Posted by Boulder
Your problem is probably DVD2AVI related. I've noticed that v1.76 is the only one to use.

Why is that? Did the format of the .d2v file change?

Gaudi 01-07-2003 05:14 PM

Solved!!!
 
Finally solved the problem.


I downloaded several versions of DVD2AVI as per Boulder suggestion:

Quote:

Originally Posted by Boulder
Your problem is probably DVD2AVI related. I've noticed that v1.76 is the only one to use.

It worked at once. I am afraid that SansGrip mentioned the probable origin of the problem:

Quote:

Originally Posted by SansGrip
Why is that? Did the format of the .d2v file change?

It looks that the newer DVD2AVI (version 1.77.3 exactly) is not compatible with MPEG2DEC.

Created the .d2v with this older version and everything is fine now.

Many many thanks.


Gaudi

SansGrip 01-07-2003 05:45 PM

Re: Solved!!!
 
@Boulder

Quote:

Originally Posted by Gaudi
It looks that the newer DVD2AVI (version 1.77.3 exactly) is not compatible with MPEG2DEC.

Think we could prod Dividee into updating it? ;)

Gaudi 01-07-2003 07:27 PM

How can we do that?

Quote:

Originally Posted by SansGrip
Think we could prod Dividee into updating it?

Do you know him?
Or should I send him an e-mail reporting the problem?

Boulder 01-08-2003 03:31 AM

Quote:

Originally Posted by SansGrip
Quote:

Originally Posted by Boulder
Your problem is probably DVD2AVI related. I've noticed that v1.76 is the only one to use.

Why is that? Did the format of the .d2v file change?

I don't know what causes this, but I've learned from numerous threads that if you use DVD2AVI version different from 1.76, you're asking for trouble. The crop and resize settings in the program will also send you to Dante's Inferno.

I'm sure dividee already knows about this but as it's considered a well-known bug, it seems that it's of low priority on his todo-list. Might be worth asking though.

SansGrip 01-08-2003 10:43 AM

Quote:

Originally Posted by Gaudi
Do you know him?

Vaguely. I see him on Doom9 quite a bit.

Quote:

Or should I send him an e-mail reporting the problem?
I'm sure he already knows ;).

Gaudi 01-08-2003 10:45 PM

Ok, I will then continue using v1.76.

For that matters is the same.

Many thanks.


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