mmguero / cleanvid

cleanvid is a little script to mute profanity in video files
BSD 3-Clause "New" or "Revised" License
56 stars 6 forks source link

Verbose Mode / Embedding Comments in EDL Files #11

Closed hendursaga closed 1 year ago

hendursaga commented 2 years ago

Sometimes I'd like to tweak my EDL files, and while this tool can output a generally great starting point, it's cumbersome trying to figure out which words it's trying to mute on. I've tested on Debian Stable's MPlayer (1.4) and it appears it ignores comments or in fact anything after the 3rd field. See this line for reference. For Kodi, which I don't use, it allows comments on their own lines starting with ##. Note I haven't checked if Kodi disregards anything past the 3rd field.

I propose a command-line flag (or even default behavior!) embedding within the EDL file information on what word(s) it is censoring at such-and-such a timestamp.

mmguero commented 1 year ago

Thanks for the suggestion, I think that's doable. I'll check it out.

mmguero commented 1 year ago

What I've decided to do instead here is add a --json option that will dump information about the input and output parameters as well as the edits to a JSON file. You can then use that JSON file to do whatever you want, and I don't need to worry about multiple EDL formats that might handle comments differently.