View Full Version : Avisynth + TMPGEnc problem - please help!!!
mantis2k
18th September 2005, 21:46
Avisynth was working fine before, however, I just reinstalled Windows, TMPGEnc, Avisynth (+ copied plugins to appropriate folder), but TMPGEnc will not open the AVS file inside the Video Source without filtering all file types first. Even when I do load the AVS file manually, it complains that it cannot find DGDecode; any ideas what the problem is? Do I have to run a REG or BAT file or something before I can frameserve with TMPGEnc? The Avisynth website is down right now, so any help would be much appreciated!
mg262
18th September 2005, 23:12
What happens if you open the script in VirtualDub?
mantis2k
19th September 2005, 11:49
What happens if you open the script in VirtualDub?
Same error... "Unable to load DGDecode.dll"
It's in the plugins folder, so I don't know what the problem is...
Wilbert
19th September 2005, 11:56
Hmm. Not sure what the problem is.
1) Try the script Version() and state which AviSynth version is installed.
2) Try loading other plugins with LoadPlugin. Is DGDecode.dll the only one which doesn't load?
mantis2k
19th September 2005, 12:23
AviSynth 2.5.6 (04/09/05).
DGMPGDec Version 1.4.4 Release Candidate 1 Executables.
DGIndex 1.4.4 RC1 (comes with AviSynth in the plugins folder).
AviSynth also complains it cannot load decomb.dll if I list that first:
loadplugin("decomb.dll")
loadplugin("dgdecode.dll")
If I place the plugins in the System32 folder, AviSynth will then have no problems loading the plugins, but will complain about different errors, such as:
1) MPEG2Source("dvd.d2v",upConv=true) - it no longer seems to like the UpConv part.
2) telecide(order=1,post=0) - complains about the order part of telecide!?
Neverending complaints!
Everything was working fine before I re-installed windows only a couple of weeks ago, but AviSynth, DGxxx has been upgraded by 1 version since then.
mg262
19th September 2005, 12:37
DGIndex 1.4.4 RC1 (comes with AviSynth in the plugins folder).It's not the indexing program that it can't find, it's the decoding program, namely "dgdecode.dll". Would you confirm that this is in the autoloading plug-ins folder? (It must be in that folder and not a subdirectory of it.) If necessary, try copying the decoding DLL into that directory (and overwriting the dgdecode.dll that is already there).
loadplugin("decomb.dll")Give it the full path to the DLL.
I think I read last night that order has been removed from telecide and you should use assumetff/assumebff beforehand where necessary -- a search will confirm that. Or check the manual or the change log...
mantis2k
19th September 2005, 13:01
I just installed old versions, and everything is working fine, but I still had to give it the full paths to the plugins:
loadplugin("c:\program files\AviSynth 2.5\plugins\dgdecode.dll")
I never had to do this before!?
DGIndex 1.4.4 RC1 (comes with AviSynth in the plugins folder).
Sorry, I meant DGIndex came in the same package as DGDecode (DGMPGDec).
Can somebody please tell me how I should adapt my 3 scripts, so they will work with the new version of AviSynth?
http://www.rarekungfumovies.com/new/error1.jpg
http://www.rarekungfumovies.com/new/error2.jpg
Fullscreen, Phase-shifted progressive to NTSC (for DGPulldown)
loadplugin("c:\program files\AviSynth 2.5\plugins\dgdecode.dll")
loadplugin("c:\program files\AviSynth 2.5\plugins\decomb.dll")
MPEG2Source("dvd.d2v",upConv=true)
telecide(order=1,post=0)
LanczosResize(last.width, 480)
Widescreen, Phase-shifted progressive to NTSC (for DGPulldown)
loadplugin("c:\program files\AviSynth 2.5\plugins\dgdecode.dll")
loadplugin("c:\program files\AviSynth 2.5\plugins\decomb.dll")
mpeg2source("dvd.d2v")
# crop away black borders
crop(0,72,0,-96)
# match fields
telecide(order=1,guide=2,post=0)
#shift chroma and remove chroma flicker
mergechroma(crop(0,4,0,0).addborders(0,0,0,4).blur(0,1))
# convert image size to NTSC
converttoyuy2()
last.lanczosresize(last.width,round(last.height/1.2))
addborders(0,ceil((480-last.height)/2),0,floor((480-last.height)/2))
Fullscreen Interlaced to NTSC (for DGPulldown)
loadplugin("c:\program files\AviSynth 2.5\plugins\dgdecode.dll")
loadplugin("c:\program files\AviSynth 2.5\plugins\leakkerneldeint.dll")
MPEG2Source("dvd.d2v",upConv=true)
leakkerneldeint(order=1,threshold=0)
LanczosResize(last.width, 480)
Guest
19th September 2005, 13:48
Can somebody please tell me how I should adapt my 3 scripts, so they will work with the new version of AviSynth? Don't you read the documents that come with the software?
Replace:
Telecide(order=1,...)
with:
AssumeTFF() # AssumeBFF() for order=0
Telecide(...)
Replace:
MPEG2Source(...,upConv=true)
with:
MPEG2Source(...,upConv=1)
mantis2k
19th September 2005, 13:58
Don't you read the documents that come with the software?
I'm new to AviSynth, and this was first update since I started using it. Which document should I consult in future? The changelist.htm file doesn't mention anything about Telecide.
Replace:
Telecide(order=1,...)
with:
AssumeTFF() # AssumeBFF() for order=0
Telecide(...)
Sorry, I don't completely understand. Is that a comment after the hash character? What's the difference between TFF and BFF; a typo?
Replace:
MPEG2Source(...,upConv=true)
with:
MPEG2Source(...,upConv=1)
Thanks!
mg262
19th September 2005, 14:04
Is that a comment after the hash character?Yes. He means that you should assume top field first or bottom field first as appropriate, using the relevant command. (Old order = 1 corresponds to top field first, etc.)
mantis2k
19th September 2005, 14:12
Yes. He means that you should assume top field first or bottom field first as appropriate, using the relevant command. (Old order = 1 corresponds to top field first, etc.)
I see... thanks!
AssumeTFF() for Order = 1
AssumeBFF() for Order = 0
Therefore:
telecide(order=1,post=0)
=
AssumeTFF()
telecide(post=0)
I'll give these scripts a try, and let you know if I have anymore problems. Thank you very much indeed for everybody's help! Much appreciated!!
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.