how to cut and join two videos without rendering it again
The reason why I wrote this tutorial is because I wanted a way to add a piece of intro into one of my videos without having to render again the entire 20 minuter or more long video in blender so I found this really fast and easy solution.
What you need
We are ready to cut and join :)
Now let's go into the directory that contains our file and cut the pieces by typing:
- ffmpeg -ss 00:00:00 -t 00:00:20 -i input.mp4 -vcodec copy -acodec copy left.mp4
That means that it will cut the first 20 seconds of our video from the input video input.mp4 to the 20s second and it will create a new file called left.mp4
Now we have to get get the other part done by using pretty the same command:
- ffmpeg -ss 00:00:20 -t 00:18:30 -i input.mp4 -vcodec copy -acodec copy right.mp4
Now we are getting the new output from the 20s second till the end of our video and outputting into into right.mp4
Now we have left.mp4 from 0 to 20 second and right.mp4 that is from 20 to 18:30 minute.
After adding my intro to the left part so i had to render only 20 seconds(that's is fantastic!) we have to join them, to do so first we have to create inside the same folder a file for example video.txt that will contain the two parts in order, the file we will create it into the same folder.
The video.txt will contain two lines of code:
Now save and run this command here:
- ffmpeg -f concat -safe 0 -i video.txt -c copy output.mp4
This command will read my file and join all videos into one video called output.mp4, that's it.
If this article helped you show you love by joining our community and help us share knowledge