We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I want to take two short videos, .mov's, and combine them into one video with a dissolve/fade transition in between. I want to start the fade with 5 seconds left in the first video and have it last 5 seconds into the second video. I know how to play both videos at the same time and fade from one to the other, but i want one video comprised of two videos with the transition in between. Can anyone please help? Thank you.
Answers
Check this:
https://forum.processing.org/two/discussion/21999/how-to-create-a-basic-transition-effect-between-two-videos#latest
Kf
Yes i saw this post but the example provided by jeremy douglas plays 2 movies at the same time on a loop and fades between them. Im looking to start the fade from mov1 to mov2 wit 5 seconds left in mov1 and make a new movie, mov3.
Did you check that link? @jeremydouglass did a good demonstration of how to do it.
Btw, what kind of transition do you want? Fading like alpha masking changing between videos?
I wonder if the ffmpeg has a filter that would allow this: https://forum.processing.org/two/discussion/comment/95847/#Comment_95847 However, this one will require more work and reading the documentation.
kf
yes i did follow his link, the example shown there works differently, it loops both videos at the same time and fades between them, restarting the fade (not the whole sequence) when space key is pressed. Im looking for one sequence of events, mov1 starts, with 5 seconds left start the fade into mov2, fade ends 5 seconds into mov2, mov2 finishes playing. I like how he implements the fade in his example with the tint, that is the transition im looking for.
@Coltsjd55 --
The sketch suggested shows how to implement the fade itself based on a fadeStartTime.
Based on your description you presumably want an approach like this:
playStartTime
(e.g. 3 seconds)fadeStartTime
as per the earlier example.fadeStartTime
= current time (3s) + movie1 length (e.g. 10s) - fade length (5s) = 8 seconds.millis()>fadeStartTime
triggers the fade (as per example sketch), also start playing movie2.The problem with code for crossfading sequences is that they are very dependent on the editing logic -- do you want the fade-ins and outs to always happen at the same time, should they be the same length, does one movie always trigger another (or more than one), should the sequence be fixed or random, does each clip play for a fixed period or for the full length of its file, should the end loop back to the beginning, etc. etc. etc.... there isn't one formula -- just think carefully about what you want to do.
You may also be interested in these discussions of different approaches to playing video sequences (sans cross-fading):