Consider a video file with one video and one audio stream. I want to replace the video stream partially while preserving the original audio stream.

With partially I mean to replace certain seconds within the original video stream with another video stream of the corresponding length (either specifying the time or frame span) Additionally I want to replace multiple parts of the original video stream.

Would it be possible with an ffmpeg one-liner? Otherwise what would be the best procedure to follow? Extract audio, cut down everything in small video chunks, concatenate them together and add the original audio stream?

Exact timing is not relevant at first hand.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.