I have ffmpeg 2.1.4 and an input movie in.mkv. There are effectively 2 different scenes inside of in.mkv. I want to be able to crossfade between the scenes, preferably with just using a complex filter instead of external programs. Essentially, I want to have something like an overlay but with the alpha changing at a specific time.
Consider if in.mkv looked like this:
00:00 - 00:05 scene 1
00:05 - 00:10 junk
00:10 - 00:15 scene 2
So, I would want an output that had:
00:00 - 00:04 scene 1 (0-4)
00:04 - 00:05 alpha fading between scene 1 (4-5) and 2 (10-11)
00:05 - 00:09 scene 2 (11-15)
I see that there's a filter for: overlay, alphamerge, and color, but it's not clear how exactly to do this.
In general, it seems hard to work with pieces of a movie file in ffmpeg. Is there a way to say that I am taking various pieces of the same input file and putting them together without rendering them as separate movies first?