Skip to content

Add percent threshold to determine when to start buffering #9442

@zebusen

Description

@zebusen

Before requesting a new feature make sure it hasn't been requested yet.
meta:feature-request

Note: #5787 a pull request very similar to my feature request

Expected behavior of the wanted feature

Add a feature to delay buffering until the remaining cache reach a percent of the demuxer-max-bytes.

This will be helpful for watching large videos offline (specially with an external hard drive) with sizes more than demuxer-max-bytes.

The current behavior is it starts buffering continuously to satisfy demuxer-max-bytes. It makes the external HDD spin non stop until the video is paused or closed. The OS can't put the ext HDD to sleep leading to worse battery life for laptops.

Alternative behavior of the wanted feature

//

Log file

Even if you think it's not necessary at first, it might help us later to find
possible issues. Make a log file made with -v -v or --log-file=output.txt, paste
it to https://0x0.st/ or attach it to the github issue, and replace this text
with a link to it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions