View Single Post
Old 19th November 2018, 07:39   #77  |  Link
Betsy25
Registered User
 
Join Date: Sep 2008
Location: Holland, Belgium
Posts: 330
Quote:
Originally Posted by Revan654 View Post
Make Sure you make the changes in both backup folder and the Script folder.

Also You may have to change group policy in PowerShell, MS changed the security back in April locking out most scripts being run. It's a PIA with all the security MS keeps adding.

I just did a test on my PC with the Script and it works.

Filename: AfterSourceLoaded.ps1

Code:
# This script handles the AfterSourceLoaded event, remove the underscore from the
# filename in order to enable it. The script sets QTGMC filter to type 0 (Interlaced) if the
# MediaInfo property 'ScanType' returns 'Interlaced'. 
# However if it's not 'interlaced' and the Scantype is Progressive it will set QTGMC to type 1 (Progressive) if the 
# MediaInfo property 'ScanType' returns 'Progressive'. 

# active project
$p = [ShortcutModule]::p

#global object with miscelenius stuff
$g = [ShortcutModule]::g

if ([MediaInfo]::GetVideo($p.FirstOriginalSourceFile, "ScanType") -eq "Interlaced")
{
    $p.Script.SetFilter("Field", "QTGMC Interlaced", "QTGMC(Preset = ""Medium"", InputType=0, SourceMatch=3, Sharpness=0.2, EdiThreads=8)")
}
elseif ([MediaInfo]::GetVideo($p.FirstOriginalSourceFile, "ScanType") -eq "Progressive")
{
	$p.Script.SetFilter("Field", "QTGMC Progressive", "QTGMC(Preset = ""Medium"", InputType=1, Sharpness=0.2, EdiThreads=8)")
}
if there still issues remove SourceMatch=3, from the script

You can also try to Upgrade to 2.0 Beta 2 of StaxRip.
Tried that, even tried from an installation at C:\StaxRip and I can only conclude that any encoder GUI that relies on that garbage Avisynth+ is simply a waste of time, capable of doing nothing except from setting world records of crashing, thanks anyway.

BTW, What is the reason the general Avisynth ain't used anymore, perhaps it was too reliable ?

Last edited by Betsy25; 19th November 2018 at 07:41.
Betsy25 is offline