ffmpeg merging 3 different streams
Discussion
So I am making a composite video to project during a party.
I have copy of Macbeth, a horror video and an erotic video.
Using ffmpeg I have split each of them into 5 sec segments.
I want to splice them all together as one stream as video1 5 secs, video2 5 secs, video3 5 secs, and I want the horror video running backwards.
Anyone know how to do all that? Thinking about it here is probably not the best place to ask but it's a start.
I have copy of Macbeth, a horror video and an erotic video.
Using ffmpeg I have split each of them into 5 sec segments.
I want to splice them all together as one stream as video1 5 secs, video2 5 secs, video3 5 secs, and I want the horror video running backwards.
Anyone know how to do all that? Thinking about it here is probably not the best place to ask but it's a start.
Something like this should work:
ffmpeg -i concat:"<vid1>|<vid2>|....|<vidN>" <output filename>
You might run into issues if they're not the same res/bitrate so you might want to first transcode them all to the same standard. Have a look at the help for concat anyway, that should lead you in the right direction.
To reverse it, I assume you're happy the audio will be backwards too, just run:
ffmpeg -i <source video> -vf reverse <output filename> (if you don't want reverse audio)
ffmpeg -i <source video> -vf reverse -af areverse <output filename> (if you do want reverse audio)
ffmpeg -i concat:"<vid1>|<vid2>|....|<vidN>" <output filename>
You might run into issues if they're not the same res/bitrate so you might want to first transcode them all to the same standard. Have a look at the help for concat anyway, that should lead you in the right direction.
To reverse it, I assume you're happy the audio will be backwards too, just run:
ffmpeg -i <source video> -vf reverse <output filename> (if you don't want reverse audio)
ffmpeg -i <source video> -vf reverse -af areverse <output filename> (if you do want reverse audio)
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff