mirror of
https://github.com/staxrip/staxrip.git
synced 2026-10-28 21:47:41 +08:00
20 lines
925 B
PowerShell
20 lines
925 B
PowerShell
# 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("QTGMC", "Field", "QTGMC(Preset = "Medium", InputType=0, SourceMatch=3, Sharpness=0.2, EdiThreads=8)")
|
|
}
|
|
elif ([MediaInfo]::GetVideo($p.FirstOriginalSourceFile, "ScanType") -eq "Progressive")
|
|
{
|
|
$p.Script.SetFilter("QTGMC", "Field", "QTGMC(Preset = "Medium", InputType=1, Sharpness=0.2, EdiThreads=8)")
|
|
} |