Kodi Community Forum

Full Version: Edl Genrator for Intro and Outro skipping
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
edlgenrator

https://github.com/Dnkhatri/edlgen

Generate edl files with timings for intro and outro for kodi with manual input
This is just a command line python script to generate edl files when you know how long the intro and outro are in a series It can be run by from terminal and will take as input file seconds(To skip for intro) seconds(To skip for Outro). 

example
html:
edlgen.py "inputfile" 30 70 > outputfile.edl
or this for all mp4 files in a directory
html:
for i in .mp4; do edlgen.py "$i" 30 70 >"${i%.}.edl"; done
The script will read the total runtime of the video file and generate an edl as below with the 2608.48 being the total runtime of the video
html:

0.0 30.0 3
2538.48 2608.48 3
Currently I am using option 3 for Commercial Break as stable version of kodi does not support intro and outro yet. Once it does will change accordingly
html:

                     0 - Cut
                     1 - Mute
                     2 - Scene Marker
                     3 - Commercial Break
                     4 - Intro
                     5 - Outro