Could you guys give me a hand here?
I’ve installed Avisynth. Installed AVSP, which is the GUI for AVIsynth and I get tons of syntax problems with the scripts.
I’m trying to sync the video from the silver screen to GOUT.
I’ve tried creating an .avs file with the script in it and running it in windows media player like the AVIsynth wiki recommends but I also get tons of syntax errors.
Could someone tell me how do I apply the script to make my .h264 demuxed file to be saved with the script modifications?
EDIT:
It seems I’ve figured it out.
You need the following for it to work:
AviSynth
dgavcdec109
DGAVCDecode.dll plugin for avisynth
MeGui
The script in the end is this one:
loadplugin(“C:\Program Files (x86)\AviSynth\plugins\DGAVCDecode.dll”)
sw=AVCSource(“video.dga”).assumefps(“ntsc_film”).trim(1005,0)
blank=sw.blankclip()
swp1=sw.trim(0,42592) ++ blank.trim(0,11)#obi-wan reaches down to grab luke’s arm while he’s unconscious
swp2=sw.trim(42593,45140) ++ blank.trim(0,3)#luke and obi-wan sit on rocks by speeder while luke points at r2
swp3=sw.trim(45141,55729) ++ blank.trim(0,4)#cut from tarkin to r2/3po in front of sandcrawler----first frame of r2 is a duplicate(trimmed out) / end of reel?
swp4=sw.trim(55731,56064) ++ blank.trim(0,-1)#obi-wan / “that is what we are meant to believe”—first frame missing
swp5=sw.trim(56065,56904) ++ blank.trim(0,-1)#no luke, wait! / luke runs to speeder to go see owen and beru
swp6=sw.trim(56905,58453) ++ blank.trim(0,3)#tie fighters approach death star/cut to vader approaching leia’s cell
swp7=sw.trim(58454,60732) ++ blank.trim(0,-1)#standing at edge of cliff above mos eisley/cut to scene of mos eisley
swp8=sw.trim(60733,64836) ++ blank.trim(0,-1)#lined up at the bar/luke tugs on bartender’s sleeve
swp9=sw.trim(64837,70477) ++ blank.trim(0,1)#Han and Chewie stand up / Luke and obi-wan walk away from cantina
swp10=sw.trim(70478,78633) ++ blank.trim(0,-1)#Tarkin dismisses officer / Leia led down corridor by guards
swp11=sw.trim(78634,83416) ++ blank.trim(0,3)# Chewie with hands behind head / 3po looks at r2 and suggests a new strategy
swp12=sw.trim(83417,86622) ++ blank.trim(0,57)#That’s good. You’ve taken your first steps into a larger world. / doors open, officer enters in to deliver message to tarkin / End of reel
swp13=sw.trim(86623,113556) ++ blank.trim(0,5)#Dianoga releases Luke / Leia stares / End of reel
swp14=sw.trim(113557,143951) ++ blank.trim(0,4)#man in hangar waves droid into x-wing / overhead shot of x-wing in hangar / End of reel
swp15=sw.trim(143952,0) ++ blank.trim(0,5)
final=swp1 ++ swp2 ++ swp3 ++ swp4 ++ swp5 ++ swp6 ++ swp7 ++ swp8 ++ swp9 ++ swp10 ++ swp11 ++ swp12 ++ swp13 ++ swp14 ++ swp15
return(final)
Where video.dga is my video.h264 that where index by dgavcdec.
Open script in megui and adjust x264 settings:
I’m using CRF 16, very slow preset and default target device without min or max bitrate.
It will finish the encoding in 6 hours with my i5 4670k
EDIT:
I ended up without the first seconds of the movie.
What part of the script is removing it?
I’ve read somewhere that this was the case to remove the negative1 credits.
Which part is it?
EDIT:
Founded it
It’s this part: .trim(1005,0) <— this has to be removed.