[Feature Request] Cache video indexing
Hope you well.
I've pushed an implementation of this to a fork: https://github.com/5fish/Vship/tree/index
--cache-index enables caching indexes to disk and will default to the video file path + .ffindex.
It will also attempt to read that path in the case that a cached index is already available.
--source-index and --encoded-index allows specifying an index path, and on their own will only read whatever index is passed (if valid) but will not write any cache file, unless --cache-index is also enabled - then it will write a cache file to the given path when no valid cache file is available.
If Line is okay with this implementation, I'm happy to PR - I'm a coding baby though so it may be uglier than it needs to be..
Seems to work okay on my Windows/NV GPU machine.
Thank you 5fish for your work I will look into merging what you did into vship when I will have some time, it seems to be good.
It should be merged now, there was some issues that made 5fish not being considered as the contributor I believe which I am very sad about, the pull request failed, but the change should be in now. Tell me if it s good I switch ffvship version fromm 3.0.1-d to 3.0.1-e to make a difference, it ll be 3.0.2 relatively soon.
Working for me, thank you and sorry for the significant tidy up work 😅 only small thing I noticed was that this line does not check the state of cache_index, meaning it will say "creating" regardless of whether an index file will actually be written.
In hindsight, maybe something like "indexing video" would better suit all use cases, since there's another line afterwards to indicate when a cache file is written anyway.
Thanks to both of you soooo much!💙