EDL file and TXT file are not commercial-equivalent

Where all the bugs are reported and discussed
Post Reply
jschwalbe
Posts: 8
Joined: Fri Aug 01, 2014 9:59 pm

EDL file and TXT file are not commercial-equivalent

Post by jschwalbe » Fri Aug 15, 2014 3:49 pm

Noticed something today that perhaps is a bug. I'm using an automated commercial stripper (removeCommercials.py) which uses ffmpeg to do the file cutting. It uses the EDL file to do the boundaries. With the show I'm working with, I needed to add the

Code: Select all

always_keep_last_seconds=60
command, which generates this .txt file:

Code: Select all

FILE PROCESSING COMPLETE  55690 FRAMES AT  2500
-------------------
1	1538
2800  	6950
22499	26207
40503	45204
[b]46454	46455[/b]
and this EDL file:

Code: Select all

0.00	61.52	0
112.00	278.00	0
899.96	1048.28	0
1620.12	1808.16	0
The difference between the two (other than frames vs seconds) is that the TXT file has those last two frames of commercial at the end. The EDL file lacks that little bit, which causes automatic splitting tools to count the rest as commercial when indeed it was meant to be saved as show by comskip.

Is this a bug or by design? I would expect the files to all have the same commercials regardless of length.

What I would like would be for the text file to also have a tiny last line that would be (in this case) something like:

Code: Select all

1868.16	1867  0

Post Reply