Log in

View Full Version : Avisynth Learner - stuck on QTGMC


sargan
6th February 2016, 15:19
Avisynth ver 2.60
Virtual Dub ver 1.10.4
On PC W7 64 bit (but those 2 apps are 32 bit)

Been working through my learning steps on Avisynth
Struggling to use QTGMC … must be missing something basic.

Simple script “trial.avs” Loads a file using line:
AVIsource("E:\Test\sample.avi")
- - - Drop it on VD it plays OK

Add a line
AVIsource("E:\Test\sample.avi")
QTGMC(Preset="slow")
- - - Drop it on VD it fails
Just get error “unable to open file E:\Test\trial.avs"

Looking at sample avi file, media info shows .. colorspace=YUV

Some searching around advises not all versions of QTGMC can handle YUV, and I should convert to YV12 so added line …. Script now reads:

AVIsource("E:\Test\sample.avi")
ConvertToYV12(interlaced=true)
QTGMC(preset="slow")


Same error – unable to open file

Media Info for sample avi attached

Groucho2004
6th February 2016, 15:34
The first thing you should do is check your Avisynth installation and available plugins. Run this (http://forum.doom9.org/showthread.php?t=170647) tool and save the logs/reports ("File" -> "Save info" and "Tools" -> "Plugin info" -> "Save plugin info report") and post them here.

StainlessS
6th February 2016, 15:35
What does it say if you try to open in eg Windows MediaPlayer ?
(Usual error from AVISource would be 'AVISource autoDetect: "couldn't open file Fred.avi"' (where file name 'Fred.avi').

Also try this tool:- http://forum.doom9.org/showthread.php?t=170647&highlight=avisynth+info+tools

EDIT: Beaten by the man above. :)

Groucho2004
6th February 2016, 15:37
What does it say if you try to open in eg Windows MediaPlayer ?
(Usual error from AVISource would be 'AVISource autoDetect: "couldn't open file Fred.avi"' (where file name 'Fred.avi').
AVISource works for him without QTGMC so I think source filter part is fine.

StainlessS
6th February 2016, 16:16
Yes, but I was wanting to establish what error message was from Avisynth, "Unable to open file" would seem to be VDub error message
as it is unlikely to be from QTGMC.

sargan
6th February 2016, 16:17
The first thing you should do is check your Avisynth installation and available plugins. Run this (http://forum.doom9.org/showthread.php?t=170647) tool and save the logs/reports ("File" -> "Save info" and "Tools" -> "Plugin info" -> "Save plugin info report") and post them here.

Files15275 attached

QTGMC was working fine when I had some 'prepared VHS conversion scripts' a few months back ...maybe something broken or corrupt.
I reinstalled Avisynth & VirtualDub to be sure of installs.

Groucho2004
6th February 2016, 16:19
Files15275 attached
Approving attachments here can take days, please post them elsewhere (pastebin for example).

Groucho2004
6th February 2016, 16:23
QTGMC was working fine when I had some 'prepared VHS conversion scripts' a few months back ...maybe something broken or corrupt.
What happens when you run the script through AVSMeter (http://forum.doom9.org/showthread.php?t=165528)?

sargan
6th February 2016, 16:23
Approving attachments here can take days, please post them elsewhere (pastebin for example).

sorry didn't know that ... zipped together and on:
https://www.dropbox.com/s/tak1vrprb8xn85k/Test.zip?dl=0

StainlessS
6th February 2016, 16:23
Just did search on Avisynth source, "Unable to open file", does not seem to be an Avisynth error message.

sargan
6th February 2016, 16:29
What happens when you run the script through AVSMeter (http://forum.doom9.org/showthread.php?t=165528)?

Never used that don't know what it is.

Bit more info .... if I drop file onto WMP it plays ... if I load it with AVIsource and drop script onto WMP or VD it plays.

When I add QTGMC and drop script onto VD I get the "unable to open file error."
If I drop srcipt onto WMP I get error:
"there is no function named "QTGMC (E\test\trial.avs, line3)

Groucho2004
6th February 2016, 16:30
sorry didn't know that ... zipped together and on:
https://www.dropbox.com/s/tak1vrprb8xn85k/Test.zip?dl=0
You don't have any of the plugins required for QTGMC in your auto-load directory. If you have them elsewhere, you have to explicitly load them with "LoadPlugin()". You also need the QTGMC() avsi. All the info you need is here (http://avisynth.nl/index.php/QTGMC).

sargan
6th February 2016, 16:49
This is where I may be lacking understanding .. QTMG says I need following plugins:
MVTools
MaskTools2
nnedi3
RemoveGrain (Both RemoveGrainSSE2 and RepairSSE2, do not use SSE3 versions)

But where do I put them ... in AVIsynth plugin folder or VD plugin folder .. it isn't clear .... its says "copy the plugins from the plugin package to the correct locations." but doesn't say what the locations are.

Probably perfectly clear to someone who understand what he is doing :-)

If we take first one for example - masktools ... it is 3 x folders 'avs2x, common, masktools' and 4 x dlls
Do drop them as is into Avisynth plugin folder ? or do I need to take the items out of the folders and put them somewhere specific or do I take all contents of folders and the 4 DLL and put in plugin folder ?

Groucho2004
6th February 2016, 17:01
This is where I may be lacking understanding .. QTMG says I need following plugins:
MVTools
MaskTools2
nnedi3
RemoveGrain (Both RemoveGrainSSE2 and RepairSSE2, do not use SSE3 versions)

But where do I put them ... in AVIsynth plugin folder or VD plugin folder .. it isn't clear .... its says "copy the plugins from the plugin package to the correct locations." but doesn't say what the locations are.

Probably perfectly clear to someone who understand what he is doing :-)

If we take first one for example - masktools ... it is 3 x folders 'avs2x, common, masktools' and 4 x dlls
Do drop them as is into Avisynth plugin folder ? or do I need to take the items out of the folders and put them somewhere specific or do I take all contents of folders and the 4 DLL and put in plugin folder ?
The "correct location" is your Avisynth plugin directory. I don't understand your problem with masktools2. When I follow the link on the QTGMC page it leads me to the "Masktools2" page and the link you would use is "masktools2-x86.zip". That zip contains one DLL.
For MVTools2 use "mvtools-2.6.0.5.zip".

sargan
6th February 2016, 17:40
I must have grabbed wrong zip file .. I went to to link in the HTML file included with QTGMC and clicked on link there ... it links you to file masktool-v2a48.zip which has the files and folder mentioned.

I went back to scripts running last year .. they all used loadplugin command so assume that is why it worked OK then ... I had a folder of extra plugins & script supplied together.

Anyway all 4 plugins installed in Plugin folder
Repeated tests .... exactly the same errors.

attached screen grab of plug-in folder

http://i771.photobucket.com/albums/xx351/Tafflad/computer%20stuff/Video%20-%20Digital%20image/Plugin_zpsvekz2v4e.jpg

Sharc
6th February 2016, 17:44
This is where I may be lacking understanding .. QTMG says I need following plugins:
MVTools
MaskTools2
nnedi3
RemoveGrain (Both RemoveGrainSSE2 and RepairSSE2, do not use SSE3 versions)

But where do I put them ... in AVIsynth plugin folder or VD plugin folder .. it isn't clear .... its says "copy the plugins from the plugin package to the correct locations." but doesn't say what the locations are.

Probably perfectly clear to someone who understand what he is doing :-)

If we take first one for example - masktools ... it is 3 x folders 'avs2x, common, masktools' and 4 x dlls
Do drop them as is into Avisynth plugin folder ? or do I need to take the items out of the folders and put them somewhere specific or do I take all contents of folders and the 4 DLL and put in plugin folder ?
I assume you downloaded the QTGMC 32bit Plugins.zip file, correct?
In this .zip you find 2 folders:
-32bit System dll
-Avisynth 32-bit Plugins
These 2 folders contain a file "Where-to-put-these.txt" each, which should clarify your questions.

Groucho2004
6th February 2016, 17:47
Anyway all 4 plugins installed in Plugin folder
Repeated tests .... exactly the same errors.
Well, run the AVS Info tool again. Also, you did not answer my question about what happens when you run the script with AVSMeter.

sargan
6th February 2016, 17:53
No I downloaded each of the plugins separately. i.e. on page http://avisynth.nl/index.php/QTGMC
clicked on each of following in turn:

MVTools
MaskTools2
nnedi3
RemoveGrain (Both RemoveGrainSSE2 and RepairSSE2, do not use SSE3 versions)
QTGMC is in the plugin folder .... its show as as 3.32.avsi

sargan
6th February 2016, 18:03
Well, run the AVS Info tool again. Also, you did not answer my question about what happens when you run the script with AVSMeter.

I have never used that, I'll go download & try

AVS tool results loaded at: https://www.dropbox.com/s/wqx2s85yqv78gne/report.zip?dl=0


Just a point noted tool does not seem to return results for my AVIsynth plugin folder ... it is going to older (unused folder for ver 2.5) i.e -
in Programs (x86) it has Avisynth 2.5 which only contains a plugin folder which only has 4 files.
My Avisynth is ver 2.6 and that install has all the plugin folder I detailed above.
AVisynth 2.5 is not installed - just a legacy folder.
contain only a plugin folder and 3 files within it.

Anyway manually removed that - it did not appear in 'Program & features ' for a remove

sargan
6th February 2016, 18:16
I have downloaded the AVSmeter tool .. but have no idea how to use it
I tried running the AVSMeter.exe ... it pops up a cmd window, but that closes after about 1 second - far too qucik for me to read anythhing.
If you want to tell me how to drive it I'll get the information you need.

Sharc
6th February 2016, 19:19
Why don't you download the 2 packages from the 1st post of the QTGMC thread and strictly follow all the instructions in the "Where-to-put-these.txt" files, as a very first step.....

Groucho2004
6th February 2016, 19:35
My Avisynth is ver 2.6 and that install has all the plugin folder I detailed above.
Yes, but the registry entry still points to "d:\Program Files (x86)\AviSynth 2.5\plugins" as you can see in the log.

I recommend removing all "%ProgramFiles%\Avisynth*" directories and start from scratch with installing Avisynth 2.6 and then adding the required files for QTGMC().

sargan
6th February 2016, 19:40
OK .. did full remove of 2.6 and a registry clean of avisynth entries and all folder for all Avisynth entries.

Clean install of avisynth
Install of QTGMC
Install of QTGMC plugins following steps for each of the folders

To confirm I am running W7 64bit OS bit so added the 32 bit system dlls (fftw3 and libfftw3f) to C:\windows\syswow64

Using same sample file and 2 line script.
dropping file onto WMP - I get error:
TemporalSoften: RGB24 Not supported, use ConverttoRGB32()
(QTGMC-3.32,avsi, line 375)
(E:\test\trial.avs, line3)

dropping file onto VD I get same "unable to open file" error as before.

Sharc
6th February 2016, 20:32
Seems you are getting closer.
Try again your 3 line script: insert ConvertToYV12() before QTGMC.

You may also try with a simpler(faster) preset for QTGMC, like QTGMC(preset="fast"). Same error?

sargan
6th February 2016, 20:57
OK it works now on VD
Something was obviously screwed up on my PC ... Thanks for your help & patience in resolving.

Could you explain something .......... in QTGMC I have read the section several times about speed.
I know you can set it, but what is it changing ? ....... and when/ why would you change it. I can't figure it out form teh description.
Is it as simple as slower speed means more accurate de-interlace (but longer to run)

Sharc
6th February 2016, 21:15
OK it works now on VD
Something was obviously screwed up on my PC ... Thanks for your help & patience in resolving.

Could you explain something .......... in QTGMC I have read the section several times about speed.
I know you can set it, but what is it changing ? ....... and when/ why would you change it. I can't figure it out form teh description.
Is it as simple as slower speed means more accurate de-interlace (but longer to run)
Yes, generally and simply: the slower the better quality, e.g. less flicker or shimmer, but the longer it takes.
There are plenty of other settings, like for stronger denoising of noisy sources, or adding the original noise back for those who prefer to keep it, etc.
Normally the default QTGMC() gives excellent results, and there is no reason to overdo. Even faster settings like QTGMC(preset="medium" or "fast") will often outperform other deinterlacers for "natural" movies. It depends on the source, though. You can try yourself when you spot a difference.

sargan
6th February 2016, 21:40
Thanks a lot guys .... I can continue on my learning curve.

Is there any good site for Avisynth scripts ? ........ assume some experienced guys must have crafted some good scripts.

StainlessS
6th February 2016, 21:59
Is there any good site for Avisynth scripts ?
Try this site (home of Avisynth), your bound to find some on there:- http://forum.doom9.org/forumdisplay.php?f=33
:)

EDIT: And http://avisynth.nl/index.php/Main_Page

sargan
6th February 2016, 23:08
Try this site (home of Avisynth), your bound to find some on there:- http://forum.doom9.org/forumdisplay.php?f=33
:)

EDIT: And http://avisynth.nl/index.php/Main_Page

:goodpost:

OK ... I realise this has loads of experts , just wondered if there was a folder/repository somewhere of scripts.

Also is this sub-forum the correct one for 'beginner help' don't want I upset people if I am posting in wrong place.

StainlessS
6th February 2016, 23:16
Try 'External Filters' link in wiki, shortcut to it here:- http://avisynth.nl/index.php/External_filters
They are sorted by category, some are plugins, some scripts.

And use Search (top of page) using some kind of search criteria to discover related scripts.

kalehrl
7th February 2016, 08:22
Is there any good site for Avisynth scripts ?
You can use MeGUI and it will generate appropriate scripts and also give you a possibility to edit them.

sargan
8th February 2016, 20:13
Gents ... going back to the original point of this thread .... want to get to grips with correct use of QTGMC

Seen a few comments about separating fields before de-interlacing.
Do I need to insert separatefields() line before the QTGMC line

or use assumeBFF. QTGMC() (DV PAL files)


Sorry if this is simple question, just don't know, and Googling bringing up conflicting results.

Reel.Deel
8th February 2016, 20:21
You do not need SeparateFields() before QTGMC. Also AssumeTFF/BFF is only needed is the parity is wrong, if it is it will result in very obvious stuttering after deinterlacing.

sargan
8th February 2016, 20:29
Thanks for confirmation

creaothceann
9th February 2016, 21:47
I have downloaded AVSmeter... but have no idea how to use it.
I tried running AVSMeter.exe... it pops up a cmd window, but that closes after about 1 second - far too quick for me to read anything.

It's a command-line (https://en.wikipedia.org/wiki/Command-line_interface) program. You open a command-line terminal window, for example by starting cmd.exe (https://en.wikipedia.org/wiki/Cmd.exe), navigate to the directory if necessary (http://www.techsupportalert.com/content/how-open-windows-command-prompt-any-folder.htm), and start the program. It'll then write its output to the terminal window.