How to batch generate EDL (edit decision list) files for a folder of videos with different run times

766 Views Asked by At

How can I skip an exact amount of seconds from the start, and another amount of seconds from the end, for a collection of videos whose durations differ?

This is the format for the EDL I am using with kodi

0:00:00   0:01:20.    3

So if the video is 40 mins 30 seconds the EDL generated skipping 80 seconds from the start and 90 seconds from the end should be

0:00:00   0:01:20.    3
0:39:00   0:40:30.    3

More info about kodi EDL.

1

There are 1 best solutions below

0
user.dz On

You may use ffprobe or any other media too to get duration then subtract ending interval. Example:

bc <<< $(ffprobe -i "mediafile.mkv" -show_entries format=duration -v quiet -of csv="p=0")-90

mplayer EDL support time tags in seconds.