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

Enhancement: Sample Size #18

Open
packetinspector opened this issue Jul 20, 2021 · 0 comments
Open

Enhancement: Sample Size #18

packetinspector opened this issue Jul 20, 2021 · 0 comments

Comments

@packetinspector
Copy link

I used your code to skip intros, had some great success with it.

However I realized that I didn't need to convert the whole video, just a sample of it.

A new argument, sample_percentage, would be great.

In my case I just grabbed the first 10 mins like this:

if framecount > 0:
        stream = ffmpeg.input(input).trim(start=0, end=600)
        if resize_width == 224:
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

No branches or pull requests

1 participant