Quantcast Avisynth: Problems with MPEG2DEC - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #1  
01-06-2003, 01:56 AM
Gaudi Gaudi is offline
Free Member
 
Join Date: Dec 2002
Location: Buenos Aires, Argentina
Posts: 131
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Gaudi
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
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  
01-06-2003, 02:05 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Gaudi,

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

-kwag
Reply With Quote
  #3  
01-06-2003, 09:35 PM
Gaudi Gaudi is offline
Free Member
 
Join Date: Dec 2002
Location: Buenos Aires, Argentina
Posts: 131
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Gaudi
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
Reply With Quote
  #4  
01-06-2003, 09:43 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #5  
01-06-2003, 09:47 PM
black prince black prince is offline
Free Member
 
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #6  
01-07-2003, 07:00 AM
Gaudi Gaudi is offline
Free Member
 
Join Date: Dec 2002
Location: Buenos Aires, Argentina
Posts: 131
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Gaudi
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
Reply With Quote
  #7  
01-07-2003, 07:15 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #8  
01-07-2003, 07:46 AM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #9  
01-07-2003, 08:11 AM
black prince black prince is offline
Free Member
 
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
@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
Reply With Quote
  #10  
01-07-2003, 12:11 PM
Gaudi Gaudi is offline
Free Member
 
Join Date: Dec 2002
Location: Buenos Aires, Argentina
Posts: 131
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Gaudi
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
Reply With Quote
  #11  
01-07-2003, 12:56 PM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
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

Your problem is probably DVD2AVI related. I've noticed that v1.76 is the only one to use.
Reply With Quote
  #12  
01-07-2003, 04:22 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #13  
01-07-2003, 05:14 PM
Gaudi Gaudi is offline
Free Member
 
Join Date: Dec 2002
Location: Buenos Aires, Argentina
Posts: 131
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Gaudi
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
Reply With Quote
  #14  
01-07-2003, 05:45 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
@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?
Reply With Quote
  #15  
01-07-2003, 07:27 PM
Gaudi Gaudi is offline
Free Member
 
Join Date: Dec 2002
Location: Buenos Aires, Argentina
Posts: 131
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Gaudi
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?
Reply With Quote
  #16  
01-08-2003, 03:31 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #17  
01-08-2003, 10:43 AM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
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 .
Reply With Quote
  #18  
01-08-2003, 10:45 PM
Gaudi Gaudi is offline
Free Member
 
Join Date: Dec 2002
Location: Buenos Aires, Argentina
Posts: 131
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Gaudi
Ok, I will then continue using v1.76.

For that matters is the same.

Many thanks.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
KVCD: MPEG2DEC.dll problems? Jakks Avisynth Scripting 21 04-14-2004 12:30 PM
mpeg2dec.dll is not an avisynth 2.5 plugin Jakks Avisynth Scripting 6 01-03-2004 01:30 PM
Avisynth: MPEG2DEC.DLL substitute? digitalize Avisynth Scripting 2 03-06-2003 10:17 AM
Avisynth: Mpeg2dec.dll or mpeg2dec2.dll melmo Avisynth Scripting 3 11-01-2002 12:34 AM
Avisynth: can't load mpeg2dec.dll? midiaxe Avisynth Scripting 1 05-31-2002 09:18 AM




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