Skip to content

Add blackdetect params#4

Open
davisdude wants to merge 2 commits intoFarisHijazi:masterfrom
davisdude:configure
Open

Add blackdetect params#4
davisdude wants to merge 2 commits intoFarisHijazi:masterfrom
davisdude:configure

Conversation

@davisdude
Copy link
Copy Markdown
Contributor

This exposes the blackdetect filter's parameters so that you can use them instead of just the defaults.

The names are pretty arbitrary, so feel free to let me know if you'd like them changed to something else.

Comment thread deblack/deblack.py
parser.add_argument("input", type=str, help="input video file")
parser.add_argument("--invert", action="store_true", help="remove nonblack instead of removing black")
parser.add_argument("--audio", type=str2bool, default="auto", help="input video contains audio? (auto, yes, no)")
parser.add_argument("--black-min-duration", type=float, default=2.0, help="Minimum length of time to consider - see https://ffmpeg.org/ffmpeg-filters.html#blackdetect for more")
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If, instead of hard-coding the defaults, you'd prefer to have more complicated logic around passing the values to the function itself, I can do that.

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.

1 participant