No edit summary |
(→Code) |
||
Line 11: | Line 11: | ||
=== Code === | === Code === | ||
* [https://github.com/kenokenobingo/detective | * [https://github.com/kenokenobingo/detective GitHub: Detective] | ||
=== Result === | === Result === |
Revision as of 20:20, 14 November 2019
Let's get started with python and ffmpeg
- Pick and download a video with a lot of edits. New coverage is good.
- use the PySceneDetect tool (link on main page) to detect the scenes. (You need to install Python)
- use ffmpeg to extract all the scenes as individual clips
ffmpeg -i goldeneye.mp4 -ss 00:00:00.000 -t 00:00:03.754 -c copy part1.mp4
- reattach the clips in a different order with ffmpeg
ffmpeg -i "concat:part3.mp4|part1.mp4|part2.mp4" -c copy output.mp4
Bonus learn some python to further automate the process