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

Reduce framerate before downscaling #7022

Merged

Commits on Jul 3, 2023

  1. Reduce framerate before downscaling

    It is cheaper to drop frames and downscale those that remain than it is
    to downscale all frames and then drop some of them. This is achieved
    with the filter chain `-cv fps=FPS,scale=W:H`, and perhaps was the
    original intention. The plain `-r` and `-s` flags do not execute in
    order though - they each put themselves at the *end* of the filterchain,
    so `-r FPS -s WxH` actually applies the scale filter first, and then the
    rate filter.
    
    This fix can halve the CPU used by the detect ffmpeg process.
    madsciencetist committed Jul 3, 2023
    Configuration menu
    Copy the full SHA
    be1c72e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e1639ab View commit details
    Browse the repository at this point in the history