Log in

View Full Version : DGMPGDec 1.4.5 don't work at all for me!


molitar
10th October 2005, 07:23
I have tried and best i was able to get was a screen with garbage in it or it closes immediately. Using the latest version with this script. I can't see anything wrong with it to cause issues because dvd2avi works fine so for now I have to go back to it, since right now this program is totally buggy.

LoadPlugin("C:\Program Files\Avisynth 2.5\DGMPGDec\dgdecode.dll")
LoadPlugin("C:\Program Files\Avisynth 2.5\Plugins\decomb.dll")
#
# SOURCE
mpeg2source("E:\DVDFabPlatinum\VTS_04_1.d2v")
Import("C:\Program Files\GordianKnot\DGMPGDec\vdub_filters.avs")
#
# TRIM
#trim(startframe,endframe)
#
# IVTC
#Telecide()
#Decimate(cycle=5)
# or use
#InverseTelecine(40,10,15)
#GreedyHMA(1,0,4,0,0,0,0,0)
#
# DEINTERLACING
FieldDeinterlace()
# or use
#VerticalReduceBy2
# or maybe
#GreedyHMA(1,0,0,0,0,0,0,0)
#
# CROPPING
crop(4,0,2,2)
#
# SUBTITLES
#VobSub("FileName")
#
# RESIZING
LanczosResize(720,480)
#
# DENOISING: choose one combination (or none)
# 1) little noise (fast)
#TemporalSmoother(2,1)
#
# 2) medium noise (slow)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#TemporalSmoother(2)
#
# 3) heavy noise (very slow, you have been warned)
#SpatialSoftenMMX(2,4,6,false,false,4,4,6,8)
#TemporalSmoother(3)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#
# BORDERS
#AddBorders(left,top,right,bottom)
#
# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
#SelectRangeEvery(280,14)
#
# FOOL CCEnc
#ResampleAudio(44100)

Guest
10th October 2005, 14:46
Please post a short fragment of your unprocessed source clip that I can use to see the problem.

Where do you see the problem? In DGIndex? When you serve the AVS script into VirtualDub? In the final encode?

molitar
10th October 2005, 15:32
Ok problem seems to happen when I load up Wilberts dub script. Seems combination of updating AVISYNTH, MPEG2DEC (I could have wrong version can't find Dividee's version), and DGINDEX broke the capability in both DVD2AVI and DGINDEX. My DVD.AVS Script:

#LoadPlugin("C:\Program Files\Encoding\AviSynth 2.5\plugins\MPEG2Dec.dll")
LoadPlugin("C:\Program Files\Encoding\DGMPGDEC\DGDecode.dll")
LoadPlugin("C:\Program Files\Encoding\AviSynth 2.5\plugins\decomb.dll")
#LoadPlugin("C:\Program Files\Encoding\AviSynth 2.5\plugins\InverseTelecine.dll")
#LoadPlugin("C:\Program Files\Encoding\AviSynth 2.5\plugins\Avisynth_Spatial.dll")
#LoadPlugin("C:\Program Files\Encoding\AviSynth 2.5\plugins\GreedyHMA.dll")
#LoadPlugin("C:\Program Files\Encoding\AviSynth 2.5\plugins\vobsub.dll")
LoadPlugin("C:\Program Files\Encoding\AviSynth 2.5\plugins\SimpleResize.dll")
#
# SOURCE
mpeg2source("E:\Temp\VTS_04_1.d2v")
Import("vdub_filters.avs")
#
# TRIM
#trim(startframe,endframe)
#
# IVTC
#Telecide()
#Decimate(cycle=5)
# or use
#InverseTelecine(40,10,15)
#GreedyHMA(1,0,4,0,0,0,0,0)
#
# DEINTERLACING
FieldDeinterlace()
# or use
#VerticalReduceBy2
# or maybe
#GreedyHMA(1,0,0,0,0,0,0,0)
#
# CROPPING
crop(4,0,2,2)
#
# RESIZING
SimpleResize(740,480)
#
# SUBTITLES
#VobSub("FileName")
#
#
# DENOISING: choose one combination (or none)
# 1) little noise (fast)
#TemporalSmoother(2,1)
#
# 2) medium noise (slow)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#TemporalSmoother(2)
#
# 3) heavy noise (very slow, you have been warned)
#SpatialSoftenMMX(2,4,6,false,false,4,4,6,8)
#TemporalSmoother(3)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#
# BORDERS
#AddBorders(left,top,right,bottom)
#
# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
#SelectRangeEvery(280,14)
#
# FOOL CCEnc
#ResampleAudio(44100)

Now the wilbert's script is here at the avisynth site and have used it for over a year now without any problems until I did the updates:

http://www.avisynth.org/VirtualDub_I

------------------------------------------------

When I play it back with my player MPC I get the message the script's return value was not a video clip. If I try it with dvd2avi I get the message that mpeg2dec.dll is not a valid avisynth 2.5 plugin. It just does not seem to like the script at all. Even if I shorten the script to the first only process for a test it still fails.

#############################################################
# This file provides convenient Avisynth interfaces to #
# various VirtualDub plugins. Load it in your script with: #
# #
# Import("vdub_filters.avs") #
# #
# Version 1.5+, 05-12-2003; #
# sent remarks to w.j.dijkhof@tue.nl #
# #
# I want to thank all the people who helped me providing #
# these scripts (in particular the people at Doom9). #
#############################################################

########################################################
# Change VirtualDub_plugin_directory below to point to #
# the directory containing your VirtualDub plugins. #
########################################################

global VirtualDub_plugin_directory = "C:\Program Files\Encoding\VirtualDubMod\plugins\"

##################################################################
# Some general notes: #
# #
# 1) Colorspace: #
# VD filters use RGB input as opposed to Avisynth which works #
# in both YUV and RGB space. Simply adding ConvertToRGB32 before #
# the VD_xxxx call and everything should work ok and add #
# ConvertToYUY2 after the VD_xxxx call. #
# #
# 2) Interlaced material: #
# Some VirtualDub filters (for example Zoom v1.2) have an option #
# to select interlaced while the corresponding script has not. #
# This can be done internally in AviSynth in the following way: #
# clip.SeparateFields.VD_Zoom(...).Weave or #
# Weave(VD_Zoom(SeparateFields(clip),...)) #
# #
# 3) If you are using AviSynth2 you can use ConvertbackToYUY2 #
# instead of ConvertToYUY2 for converting back to YUV. #
##################################################################

####################################
# Most filters can be found at: #
# http://sauron.mordor.net/dgraft/ #
####################################


#####################################
# 2D Cleaner by Jim Casaburi, v0.6b #
# #
# threshold (0-255), radius (0-10) #
# #
# For athlon/pIII/pIV users there #
# is an optimized version. #
#####################################

function VD_2DCleaner(clip clip, int "threshold", int "radius", bool "interlaced")
{
LoadVirtualdubPlugin(VirtualDub_plugin_directory+"\2dclean.vdf", "_VD_2DCleaner")
return clip._VD_2DCleaner(default(interlaced,false)?1:0, default(threshold,75), default(radius,1))
}

# example:
# ConvertToRGB()
# VD_2DCleaner(75, 1)
# ConvertToYUY2()

Guest
10th October 2005, 15:35
When using DGMPGDec, it is essential to have matching versions of DGIndex and DGDecode, that is, use the ones that come together in the ZIP file. You cannot mix and match DGIndex with any arbitrary version of mpeg2source().

Search your hard drive and remove or rename all copies of DGIndex.exe and DGDecode.dll. Then install the matching pair. Finally, load that version of DGDecode.dll in your AVS script.

For help on Avisynth scripts, please post in the Avisynth Usage forum.

molitar
10th October 2005, 16:21
I have done that with dgindex and dgdecode and can't find any other reference. That is what I can't figure out. I'll post the above in avisynth and see if that might be the culprit in some strange form.

Leak
11th October 2005, 06:56
I have done that with dgindex and dgdecode and can't find any other reference. That is what I can't figure out. I'll post the above in avisynth and see if that might be the culprit in some strange form.
Ummm... you did make a new D2V file using the new DGIndex after installing the new versions, right?

That is, you can't just use the old D2V file if the file version/file format used by these tools has changed...

Abond
14th October 2005, 10:32
#LoadPlugin("C:\Program Files\Encoding\AviSynth 2.5\plugins\MPEG2Dec.dll")
Remove (or rename the extension) from avisynth plugin folder any MPEG2Dec(x).dll