MilesAhead
4th October 2005, 17:12
Has anyone been able to use AviSynth with Gui4ffmpeg?
I modified the TV.avs script that comes with Gui4ffmpeg,
changed it's name and used it to encode an xvid file with
TMPGEnc Plus. So the script itself isn't broken.
However Gui4ffmpeg has TV.avs hard-wired into its scheme.
No matter how I change the script, when I run Gui4ffmpeg
I get the error "change the source file name in line; XXXSource(...)"
Since I load all the same plugins and the same .avi source file with
the renamed script when I use it with TMPGEnc I have to believe
something is broken.
Here's the script that runs successfully using TMPGEnc Plus
# AviSynth script to preparing TV captures ###################
# AviSynth must be installed (2.5 or above)
# dll's must be in the plugin folder of AviSynth
# to activate a function delete the # at the first position in
# the related line
# You may test your settings by opening this file with the
# Windows Media Player
#
# AviSynth Script zum Aufbereiten der TV Aufnahme ############
# AviSynth muss installiert sein (2.5 oder höher)
# dll's müssen im Plugin Verzeichnis von AviSynth sein
# Um eine Funktion zu aktivieren, wird # am Beginn der Zeile
# entfernt
# Die Einstellungen können getestet werden, in dem diese Datei
# mit dem Windows Media Player geöffnet wird.
#
#
################## Loading dll's #############################
################## Laden der Filter dll's ####################
#
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEGDecoder.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\undot.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Decomb.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Deen.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\cnr2.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DctFilter.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\BlendBob.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\dgbob.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\UnFilter.dll")
#
################## Import the source file ######################
################## Importieren der Quelle ######################
#
AviSource("movie.avi") # your avi-file, Ihre avi Datei
#AviSource("C:\drive_g\Temp\tortuga.vdr") # frameserver file
#MpegSource("C:\Program Files\FF mpeg\test.mpg") # your vcd-file, Ihre vcd Datei
#MpegSource("C:\Program Files\FF mpeg\tortuga.m2v") # your m2v-file, Ihre m2v Datei
#DirectShowSource("Starhunter18.avi") # your asf file, Ihre asf Datei
#
######Switch to YUY2 if source was not captured with YUY2 ######
#
##In YUY2 wechseln, wenn avi nicht mit YUY2 aufgenommen wurde ##
#
#ConvertToYUY2(interlace=true)
#
######################## Deinterlace(n) #########################
#
ConvertToYV12()
#Fielddeinterlace()
dgbob(order=(getparity() ? 1 : 0))
BlendBob()
#
######################## Noise reduction ########################
######################## Entrauschen ############################
#
#CNR2() # Chroma Noise Reduction
#
#TemporalSoften(1,5,5,5,2) # Temporal Soften routine normal
#TemporalSoften(1,5,5,15,2) # Temporal Soften routine strange/stark
#
#deen("a3d",1,10,12) # Spatial soften Routine normal
#deen("a3d",2,6,1,6) # Spatial soften Routine low/gering
#deen("a3d",3,4,1,4) # Spatial soften Routine middle/mittel
#deen("a3d",4,9,1,9) # Spatial soften Routine strong/stark
#
############# Blur, normally not neccesary #######################
########## Weichzeichnen, eigentlich nicht nötig #################
#
#Unfilter(-30, -30)
#
#################### Contrast and brightness #####################
#################### Kontrast und Helligkeit #####################
#
#ConvertToYUY2()
#Tweak(hue=0,sat=1,bright=-30,cont=1.15)
#ConvertToYV12()
#
#################### Black borders, unvisible at TV ##############
####### Schwarzer Rand rundherum, nicht sichtbar im TV ###########
#
#ConvertToYV12()
Letterbox(16, 16, 16, 16)
#
##################################################################
I modified the TV.avs script that comes with Gui4ffmpeg,
changed it's name and used it to encode an xvid file with
TMPGEnc Plus. So the script itself isn't broken.
However Gui4ffmpeg has TV.avs hard-wired into its scheme.
No matter how I change the script, when I run Gui4ffmpeg
I get the error "change the source file name in line; XXXSource(...)"
Since I load all the same plugins and the same .avi source file with
the renamed script when I use it with TMPGEnc I have to believe
something is broken.
Here's the script that runs successfully using TMPGEnc Plus
# AviSynth script to preparing TV captures ###################
# AviSynth must be installed (2.5 or above)
# dll's must be in the plugin folder of AviSynth
# to activate a function delete the # at the first position in
# the related line
# You may test your settings by opening this file with the
# Windows Media Player
#
# AviSynth Script zum Aufbereiten der TV Aufnahme ############
# AviSynth muss installiert sein (2.5 oder höher)
# dll's müssen im Plugin Verzeichnis von AviSynth sein
# Um eine Funktion zu aktivieren, wird # am Beginn der Zeile
# entfernt
# Die Einstellungen können getestet werden, in dem diese Datei
# mit dem Windows Media Player geöffnet wird.
#
#
################## Loading dll's #############################
################## Laden der Filter dll's ####################
#
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEG2Dec3.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MPEGDecoder.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\undot.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Decomb.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Deen.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\cnr2.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DctFilter.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\BlendBob.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\dgbob.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\UnFilter.dll")
#
################## Import the source file ######################
################## Importieren der Quelle ######################
#
AviSource("movie.avi") # your avi-file, Ihre avi Datei
#AviSource("C:\drive_g\Temp\tortuga.vdr") # frameserver file
#MpegSource("C:\Program Files\FF mpeg\test.mpg") # your vcd-file, Ihre vcd Datei
#MpegSource("C:\Program Files\FF mpeg\tortuga.m2v") # your m2v-file, Ihre m2v Datei
#DirectShowSource("Starhunter18.avi") # your asf file, Ihre asf Datei
#
######Switch to YUY2 if source was not captured with YUY2 ######
#
##In YUY2 wechseln, wenn avi nicht mit YUY2 aufgenommen wurde ##
#
#ConvertToYUY2(interlace=true)
#
######################## Deinterlace(n) #########################
#
ConvertToYV12()
#Fielddeinterlace()
dgbob(order=(getparity() ? 1 : 0))
BlendBob()
#
######################## Noise reduction ########################
######################## Entrauschen ############################
#
#CNR2() # Chroma Noise Reduction
#
#TemporalSoften(1,5,5,5,2) # Temporal Soften routine normal
#TemporalSoften(1,5,5,15,2) # Temporal Soften routine strange/stark
#
#deen("a3d",1,10,12) # Spatial soften Routine normal
#deen("a3d",2,6,1,6) # Spatial soften Routine low/gering
#deen("a3d",3,4,1,4) # Spatial soften Routine middle/mittel
#deen("a3d",4,9,1,9) # Spatial soften Routine strong/stark
#
############# Blur, normally not neccesary #######################
########## Weichzeichnen, eigentlich nicht nötig #################
#
#Unfilter(-30, -30)
#
#################### Contrast and brightness #####################
#################### Kontrast und Helligkeit #####################
#
#ConvertToYUY2()
#Tweak(hue=0,sat=1,bright=-30,cont=1.15)
#ConvertToYV12()
#
#################### Black borders, unvisible at TV ##############
####### Schwarzer Rand rundherum, nicht sichtbar im TV ###########
#
#ConvertToYV12()
Letterbox(16, 16, 16, 16)
#
##################################################################