Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweaks to comchap #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Tweaks to comchap #37

wants to merge 2 commits into from

Conversation

heegard
Copy link

@heegard heegard commented Jun 6, 2019

I've made a few tweaks to comchap, including:

  1. Improved Usage (i.e., help)
  2. Make end at least 100 (helps with initial segment of video)
  3. Added option time-marks to title.

-Chris

@heegard heegard changed the title Add files via upload Tweaks to comchap Jun 6, 2019
@BrettSheleski
Copy link
Owner

What do you mean that you make end at least 100?

@heegard
Copy link
Author

heegard commented Jun 7, 2019

Making "end" at least 100 makes sure the initial segment has a positive, but small, length... I found it helped for a better sequence of segments.
-Chris

@BrettSheleski
Copy link
Owner

I'm not sure how I feel about this to be honest.

On one hand I feel that this could be considered an issue with ComSkip. The duty of Comchap/Comcut is to perform the actions directed to it by the edl file. If the edl indicates very short chapters, then very short chapters the file should have. Is it specific players' playback that is an issue? Then perhaps it's an issue with the player (again: not Comchap/Comcut).

On the other hand I want to make a tool people actually use and find useful. With this in mind I'd like to include this feature.

However I do not like how it automatically adjusts the end time by some seemingly arbitrary amount. Instead I would suggest taking in this minimum duration as a command line argument allowing the user to specify their own minimum.

Also, it looks like this would result in chapters with 100ms durations. Having 100ms duration chapters doesn't seem very useful to me. In the case of $end being less than 100 (or the user-specified minimum mentioned above) instead of making a chapter 100ms, the content should instead be included into the previous chapter.

If you implement the following, I'll gladly accept your pull request.

  • Command line argument for specifying minimum chapter duration (eg: --min-chapter-duration=100)
  • If a chapter duration is less than the user specified minimum, then include the content sd part of the previous chapter.

@BrettSheleski
Copy link
Owner

I also do not like that a dependency to perl has been added just to make the format of the chapter titles to your liking. I'm not opposed to changing the format of the title of the chapters (I personally don't find them useful anyway), but I really want to avoid adding another dependency to the project.

@heegard
Copy link
Author

heegard commented Jun 8, 2019

  1. I'm fine with removing the code that sets $end to a minimum of 100. It only affects the first 1/10 of a second of the video, so it's not a big deal.
  2. The perl code is pure perl (no libraries); I cannot think of a system that includes bash (and awk/sed) that doesn't support perl.
  3. I added the time-mark because for a while plex didn't display the time mark of chapters, so it was helpful to figure out where you were in order to skip the commericials. Plex has now re-introduced the time marks, so it is less useful.
  4. The option description for help is useful.

I can adjust these things to your liking... I find comchap useful and thought I could add to it.

-Chris

@mjbrowns
Copy link

mjbrowns commented Jun 8, 2019 via email

@heegard
Copy link
Author

heegard commented Jun 8, 2019

Mitch,

That sounds good to me.

-Chris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants