Skip to content

Add FFMS2 indexing options - #19

Merged
shssoichiro merged 3 commits into
rust-av:mainfrom
BoatsMcGee:ffms2-indexing
Oct 23, 2026
Merged

shssoichiro merged 3 commits into
rust-av:mainfrom
BoatsMcGee:ffms2-indexing

Conversation

@BoatsMcGee

@BoatsMcGee BoatsMcGee commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Add with_index function to the FFMS2 Decoder to allow users to define their own index path and get progress feedback on indexing. Additional build_index function allows users to index with progress and the ability to cancel indexing without having to instantiate a decoder.

Progress is represented as a percentage rather than bytes read for simplicity and always start with 0 and ends with 100, even if it hits cache and indexing technically did not occur.

Also adds getters for downstream users to access the decoder's video index, the path to the video, and the path to the index.

Changelog is under 0.12.0 instead of 0.11.2 as I wrote this after a different PR which requires a minor update and I don't expect a version 0.11.2 release just for this PR.

Note

Nearly all of the changes are LLM-generated.

Thanks,
- Boats M.

Comment thread src/helpers/ffms2.rs Outdated
Comment thread src/helpers/ffms2.rs
Fix FFMS2 indexing progress logic is duplicated
@shssoichiro
shssoichiro merged commit 5419016 into rust-av:main Oct 23, 2026
4 checks passed
@BoatsMcGee
BoatsMcGee deleted the ffms2-indexing branch October 24, 2026 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants