Log in

View Full Version : TempGaussMC can't recognize video clip


paquette
19th December 2010, 15:31
I am a complete newbie to TempGauss (TempGaussMC-beta1 specifically) although I have used AviSynth sporadically for a couple of years. I have put all the required plug-ins in the AviSynth plug-in folder. I can't get TempGauss to recognize my video clip, however. I keep getting a “The scripts return value was not a video clip” from VirtualDub.

I am working with an MP4 (apparently variable frame rate) source file sent to me graciously by a fellow scuba diver. I demuxed the file using tsMuxer and then indexed it using DGVCAIndex. Here is what I have tried, but I always get the “not a video clip” error. I would guess that I am making some rather naïve beginner's error.

Thanks in advance for any help!

1. LoadPlugin("C:\Program Files (x86)\DGAVCIndex\DGAVCDecode.dll")
clip1=avcsource("E:\Pictures\Belize--all pictures\Blue Hole\BlueHole.track_2.dga")

function TempGaussMC_beta1(clip clip1,…

2. clip1="E:\Pictures\Belize--all pictures\Blue Hole\BlueHole.track_2.264"

function TempGaussMC_beta1(clip clip1,…

3. clip1="E:\Pictures\Belize--all pictures\Blue Hole\BlueHole.mp4"

function TempGaussMC_beta1(clip clip1,…

Gavino
19th December 2010, 15:41
You need to call TempGaussMC_beta1 as well as just including the function definition.

eg TempGaussMC_beta1(clip1, ... your arguments go here ...)

paquette
19th December 2010, 16:09
Thanks so much for the prompt and helpful reply. Should I be using the index file or 264 file as the source?

Didée
19th December 2010, 16:33
You shouldn't use DGAVCDec to start with. It's old, deprecated, and can't handle certain kinds of interlaced AVC correctly.

Use DSS2 (part of Haali Splitter package), or FFMS2 (ffmpegsource).

example code: (with my local pathnames, of course you need to use the acc. pathnames for your PC system)

LoadPlugin("E:\_VIDEO\Avisynth_x86\ffms2.dll")
LoadPlugin("E:\_VIDEO\Avisynth_x86\mt_masktools-25_20a46.dll")
LoadPlugin("E:\_VIDEO\Avisynth_x86\RemoveGrainSSE2.dll")
LoadPlugin("E:\_VIDEO\Avisynth_x86\RepairSSE2.dll")
LoadPlugin("E:\_VIDEO\Avisynth_x86\VerticalCleanerSSE2.dll")
LoadPlugin("E:\_VIDEO\Avisynth_x86\MVTools2.dll")
LoadPlugin("E:\_VIDEO\Avisynth_x86\eedi2.dll")
LoadPlugin("E:\_VIDEO\Avisynth_x86\nnedi2.dll")
LoadPlugin("E:\_VIDEO\Avisynth_x86\nnedi3.dll")
Load_Stdcall_Plugin("E:\_VIDEO\Avisynth_x86\yadif_v09.dll")

Import("E:\_VIDEO\Avisynth_x86\ffms2.avsi")

Import("G:\Video\scripts\TempGaussMC_beta2.avsi")
Import("G:\Video\scripts\QTGMC2.51.avsi")


FFMS2("G:\Video\_samples\somevideo.m2ts")

TempgaussMC_beta2( ...params... )

paquette
19th December 2010, 18:25
Again, many thanks!

Also am I correct that TempGauss beta1 will do a better but slower job than beta2???

Also, my original source is MP4 rather than m2ts.

Here is my starting code (for now I am using Beta 1). I thought I would start by using all the default settings since I am a complete newbie here. I finally got my other problems figured outbut now I'm getting a script error from TempGauss saying that there is no function named “MVAnalyse". Oddly this error occurs at line 166 of TempGauss which is the third occurrence of MVAnalyse in the script (I have version 2.5.1 1.0 of MVTools dated October 18 of this year).

I have no idea what QTGMC2.51.avsi is or where to get it.

Can someone please help me? Thanks again in advance!

LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\ffms2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\eedi2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\mvtools2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\mt_masktools.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RemoveGrainSSE2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RepairSSE2.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\mvtools2.dll")


Import("E:\Hold\TempGauss\TempGaussMC_beta1.avs")
Import("C:\Program Files (x86)\AviSynth 2.5\ffms2.avsi")

clip1 = FFmpegSource2("E:\Pictures\Belize--all pictures\Blue Hole\BlueHole.mp4")

TempGaussMC_beta1(clip1)

Line triggering error in red below:

bvec3 = (use3) ? searchclip.MVAnalyse(isb=true, delta=3,truemotion=_tm,pel=_pel,sharp=_shrp,blksize=_bs,overlap=_ovlp,lambda=_lambda,pnew=_pnew,
\ global=_global,search=_search,searchparam=_ME,pelsearch=_pelsrch,DCT=_DCT,plevel=_plevel,lsad=_lsad,idx=6) : nullclip # ,sadx264=3
bvec2 = (use2) ? searchclip.MVAnalyse(isb=true, delta=2,truemotion=_tm,pel=_pel,sharp=_shrp,blksize=_bs,overlap=_ovlp,lambda=_lambda,pnew=_pnew,
\ global=_global,search=_search,searchparam=_ME,pelsearch=_pelsrch,DCT=_DCT,plevel=_plevel,lsad=_lsad,idx=6) : nullclip # ,sadx264=3
bvec1 = (use1) ? searchclip.MVAnalyse(isb=true, delta=1,truemotion=_tm,pel=_pel,sharp=_shrp,blksize=_bs,overlap=_ovlp,lambda=_lambda,pnew=_pnew,
\ global=_global,search=_search,searchparam=_ME,pelsearch=_pelsrch,DCT=_DCT,plevel=_plevel,lsad=_lsad,idx=6) : nullclip # ,sadx264=3
fvec1 = (use1) ? searchclip.MVAnalyse(isb=false,delta=1,truemotion=_tm,pel=_pel,sharp=_shrp,blksize=_bs,overlap=_ovlp,lambda=_lambda,pnew=_pnew,
\ global=_global,search=_search,searchparam=_ME,pelsearch=_pelsrch,DCT=_DCT,plevel=_plevel,lsad=_lsad,idx=6) : nullclip # ,sadx264=3
fvec2 = (use2) ? searchclip.MVAnalyse(isb=false,delta=2,truemotion=_tm,pel=_pel,sharp=_shrp,blksize=_bs,overlap=_ovlp,lambda=_lambda,pnew=_pnew,
\ global=_global,search=_search,searchparam=_ME,pelsearch=_pelsrch,DCT=_DCT,plevel=_plevel,lsad=_lsad,idx=6) : nullclip # ,sadx264=3
fvec3 = (use3) ? searchclip.MVAnalyse(isb=false,delta=3,truemotion=_tm,pel=_pel,sharp=_shrp,blksize=_bs,overlap=_ovlp,lambda=_lambda,pnew=_pnew,
\ global=_global,search=_search,searchparam=_ME,pelsearch=_pelsrch,DCT=_DCT,plevel=_plevel,lsad=_lsad,idx=6) : nullclip # ,sadx264=3

paquette
20th December 2010, 21:09
Hmm--I added VerticalCleaner and tried beta-2 and it worked first try!