Log in

View Full Version : Help with adding 2 clips together with different framerates


BlockABoots
20th July 2017, 19:53
So i have a script with 3 clips in total but 1 clip (which i recorded on a different device) appears to have a different framerate as avisynth is giving me a 'video framerate doesnt match' error. I have split the clips into 2 different script lines and added 'assumeFPS' to the end of the offending video line and added 'video+video2' BUT i have other effects that i need to add but there not being applied for some reason. Here is the script i have...

video=FFMpegSource2("C:\Users\karll\Desktop\VID_20170720_170742.mp4",atrack=-1) +FFMpegSource2("C:\Users\karll\Desktop\VID_20170720_171311.mp4",atrack=-1)
video1=FFMpegSource2("F:\Video Captures\2017-07-20 18-42-12.mp4",atrack=-1).assumeFPS(video)
video2=video+video2
video3=turn180(video)
video4=Amplify(video,2.0)
video5=fadein(video,50).fadeout(50)
return video5


It adds all the clips together and doesn't give me an error message anymore but the video clips on the first line of the script need to be rotated 180 degrees but the 'turn180(video)' command isnt being followed and neither are any of the other commands (amplify or fade).

Any help would be appropriated

wonkey_monkey
20th July 2017, 20:44
"video5" only references "video" in its creation - "video1", "video2", "video3" and "video4" never get used in the final output.

You need to apply the filters to the output of the previous filter, if you want to chain effects in this way. When you do, for example:

video3=turn180(video)

video remains unaffected by this. So when you next call amplify, that turn180 is not in effect, because its result was stored in video3, which you don't reference.

BlockABoots
20th July 2017, 20:58
Ok thanks

LemMotlow
20th July 2017, 21:29
video=FFMpegSource2("C:\Users\karll\Desktop\VID_20170720_170742.mp4",atrack=-1) +FFMpegSource2("C:\Users\karll\Desktop\VID_20170720_171311.mp4",atrack=-1)
video1=FFMpegSource2("F:\Video Captures\2017-07-20 18-42-12.mp4",atrack=-1).assumeFPS(video)
video2=video+video2
video3=turn180(video)
video4=Amplify(video,2.0)
video5=fadein(video,50).fadeout(50)
return video5


It adds all the clips together...
Say whaaaat? :confused:

First you create video. Then you create video1. Then you create video2 by joining video and video2 (?? and where did this second video2 come from all of a sudden? Don't you mean
to join video + video1)? I'm surprised you didn't get an error on this line.

Then...you do a turn180 on video and call it video3. But what happened to the join of video + video1 in video2? It just gets left behind in cyberspace somewhere. Did you want to apply
turn180 to video alone, or to the joined video+video1 in video2?

Next you create video4 by amplifying video. Did you mean to amplify just video alone, or amplify the video+video1 in video2, or amplify video3? What happened to video2 and video3 anyway?
They just get left behind and forgotten as well?

Then you create video5 by doing....what? Fading in and fading out video? What about the other four videos?

Nearest I can figure:

video=FFMpegSource2("C:\Users\karll\Desktop\VID_20170720_170742.mp4",atrack=-1)\
+FFMpegSource2("C:\Users\karll\Desktop\VID_20170720_171311.mp4",atrack=-1)
video1=FFMpegSource2("F:\Video Captures\2017-07-20 18-42-12.mp4",atrack=-1).assumeFPS(video)
video2=video+video1
video2=video2.turn180().Amplify(2.0).(fadein(50).fadeout(50)
return video2

There are other ways of stating it, but I think that's what you're doing. I guess. Maybe ???