Context:
I have long video files (600+ hours) that I want to split on resolution change & keep the high-res parts. I have extracted all the timestamps to a file with ffprobe so now all that's left is to split the video.
The actual issue:
My FFMPEG commands have over 20k splits resulting in 300k character commands which bash complains about with 'argument list too long'
ffmpeg -i input.mkv -map 0 -c copy -segment_times 1799.68,1818.78,...,3283103.479 -reset_timestamps 1 -f segment output_%03d.mkv
Notes:
- This command avoids re-encoding, making it significantly faster than other methods.
- I need to maintain the ability to calculate the timestamp a clip came from.