alfg / alfg/mp4-rust

Streaming reads

Đang mở
#53 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
355
Fork
105
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hi! Thanks for writing this lib!

Have you thought about the case of streaming reads? It seems the API is centered around `Mp4Reader::read_sample(track_id, sample_id)` which in turn delegates to `Track::read_sample`. Reading the code it seems the latter assumes a `reader.seek(SeekFrom::Start(sample_offset))?;`

With very large files, or continuous TS-streams, it's not necessarily practical to assume the whole things can be wrapped in a BufReader.

Would it be possible to extend the API somehow to have more of a "read-next-sample-whatever-it-is" approach? Happy to contribute a PR.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.