Log in

View Full Version : Help with Basic Script


Hipster Doofus
5th April 2013, 03:32
Trying to sort out a basic script that is giving me a headache. My knowledge of avisynth is very limited.

I'm trying to join two files which I have done. I have the first trim & FadeIn working.

What's giving me trouble is the end. I can't get trim to work nor the FadeOut.

This is what I have so far.

FFIndex("GOPRO.MP4")
AudioDub(FFVideoSource("GOPRO.MP4"), FFAudioSource("GOPRO.MP4"))

a=subtitle("04th April 2013 - XJR1300X(08) - Willow Grove to Thomson Dam - GoPro R3",font="arial", size=28, first_frame=800, last_frame=1300, align=5)
a=a.Trim(800,136000).FadeIn(500).FadeOut(500)

b=AVISource("GOPRO1.avi")

a+b

Any ideas so I can finish this off?

Gavino
5th April 2013, 09:38
It's not clear (to me, anyway) what you want the final result to be.
If you want to apply a similar trim and fades to the second clip, you would add a line like this before the last line of your script:
b = b.Trim(..., ...).FadeIn(...).FadeOut(...)
(where the '...' represent the values you want for the second clip.)

Hipster Doofus
5th April 2013, 10:53
Can't thank you enough Gavino. Got it all sorted. Ended up like this.

FFIndex("GOPRO.MP4")
AudioDub(FFVideoSource("GOPRO.MP4"), FFAudioSource("GOPRO.MP4"))

a=subtitle("04th April 2013 - XJR1300X(08) - Willow Grove to Thomson Dam - GoPro R3",font="arial",

size=28, first_frame=800, last_frame=1300, align=5)
a=a.Trim(800,0).FadeIn(500)

b=AVISource("GOPRO1.avi")
b=b.Trim(0,34500).FadeOut(500)

a+b

:)

Jenyok
5th April 2013, 12:29
Try this.
See red chars.
.

FFIndex("GOPRO.MP4")
AudioDub(FFVideoSource("GOPRO.MP4"), FFAudioSource("GOPRO.MP4"))

a=subtitle("04th April 2013 - XJR1300X(08) - Willow Grove to Thomson Dam - GoPro R3",font="arial", \
size=28, first_frame=800, last_frame=1300, align=5)
a=a.Trim(800,0).FadeIn(500)

b=AVISource("GOPRO1.avi")
b=b.Trim(0,34500).FadeOut(500)

a++b

.

Hipster Doofus
5th April 2013, 12:54
Will do Jenyok. Encoding at the moment then I'm off to bed. Will give it a go tomorrow.

Hipster Doofus
6th April 2013, 01:45
Both scripts work 100%. Thanks guys. :)