Skip to content

Split and transcode video using a TSV EDL (Edit Decision List) and ffmpeg

License

Notifications You must be signed in to change notification settings

kcsry/ffmpeg-edl

Repository files navigation

ffmpeg-edl

Split (and optionally transcode) video using ffmpeg with

  • a TSV EDL (Edit Decision List)
  • a CUE file

Example usage

For instance, given the recording of a cosplay show from an entirely fictitious convention, stored in 2024-06-15_17-26-44.mp4, and a TSV file cosplay-edl.txt (see the example in this repo), the following command will generate a script d24.sh that will split the video into clips in the d24 folder, using the given ffmpeg conversion arguments. The script can be inspected, and then executed to have ffmpeg do its thing.

python3 generate_script.py -c="-c copy -movflags +faststart" --tab-separated -i 2024-06-15_17-26-44.mp4 cosplay-edl.txt -o d24 > ./d24.sh
bash -x ./d24.sh

Additional tools

save-current-time.lua

The enclosed save-current-time.lua script can be used with the mpv video player to save time-in/time-out pairs to a file (time.txt).

This can be then refined to a TSV-based EDL by hand.

About

Split and transcode video using a TSV EDL (Edit Decision List) and ffmpeg

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published