alfg / alfg/mp4-rust

Streaming reads

オープン
#53 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
355
フォーク
105
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。