Replace a part of a video file with another one with FFmpeg #156688
Replies: 2 comments 1 reply
-
|
Hey sounds like u want to remove the same intro from multiple episodes and replace it with a new one. Here's how u can do it using 🎯 Goal: 🧪 FFmpeg Command (Example): ffmpeg -i new_intro.mp4 -i episode1.mp4 -filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0]concat=n=2:v=1:a=1[outv][outa]" -map "[outv]" -map "[outa]" output1.mp4 This takes 🛠️ To apply this to all 153 files:
🧰 Bash Script (for Linux/macOS): #!/bin/bash 📌 Notes:
Hope this helps! Let me know if u need help adjusting it for Windows or if u want a no-reencoding (fast) version. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for posting in the GitHub Community, @skepasti21! We're happy you're here. You are more likely to get a useful response if you are posting your question in the applicable category, the Discussions category is solely related to conversations around the GitHub product Discussions. This question should be in the Programming Help category. I've gone ahead and moved it for you. Good luck! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Discussion Type
Question
Discussion Content
I've been struggling with CHATGPT(https://chatgpt.com/share/67fd6ff6-3d9c-800e-9e2f-0dbfa4c9e715) to create a script which will simply replace a part of a video clip with another to make it more clear, I have a bunch of video files, 153 video files of DRAGONBALL 1 series, and all have the same intro which I'd like to replace with another one. Any clues?
Beta Was this translation helpful? Give feedback.
All reactions