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

Decode streaming data #465

Open
scotts opened this issue Jan 22, 2025 · 0 comments
Open

Decode streaming data #465

scotts opened this issue Jan 22, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@scotts
Copy link
Contributor

scotts commented Jan 22, 2025

🚀 The feature

We have had several requests to be able to decode streaming data, instead of requiring that the entire file be present. Upon creating a VideoDecoder, users would have some way to indicate that the file they are decoding will be streamed rather than entirely present on the file system.

Motivation, pitch

The main motivation is performance, which can come in two ways:

  1. Overlapping decoding with copying the data from an external system.
  2. Avoiding sending the bytes that are never used. That is, if we sample 10 frames from a 100 GB file, it would be great if we don't need to retrieve the entire 100 GB file.

Now that we have approximate mode (see #427), this is more feasible. In approximate mode, we only need to read the very beginning of the file upon startup, which aligns with streaming data. Exact mode would not work with streaming data.

@scotts scotts added the enhancement New feature or request label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant