gcanat
gcanat
It's not faster but it is more concise: ```python vr = VideoReader(video, ctx=gpu(0)) frames = vr[:].asnumpy() ``` Also do you really need `ctx=gpu(0)` ? Isn't numpy always on cpu anyway...
If `lazy.nvim` confirms that the plugin is loaded but you dont have the `MagmaInit` command available, it is probably an issue with `UpdateRemotePlugins` not correctly updating `~/.local/share/nvim/rplugin.vim`.
Since this library seems unmaintained, I went through the hassle of writing something similar (except it is based on Rust instead of C++). If you want to give it a...
Just a small note: AFAIK, ffmpeg versions < 6.0 will require an extra attribute in `threading::Config`, namely `safe` which should be set to `true` or `false`.
Meanwhile this library seems pretty much abandoned, you can try [this one](https://github.com/gcanat/video_reader-rs) instead.
I suggest open an issue [here](https://github.com/gcanat/video_reader-rs/issues) with detailed information
[`video_reader-rs`](https://github.com/gcanat/video_reader-rs) has support for aarch64 if you want to try it out.
It's pretty similar to decord: ```python from video_reader import PyVideoReader vr = PyVideoReader(filename) frames = vr.get_batch(indice_list) ``` Checkout the [README](https://github.com/gcanat/video_reader-rs?tab=readme-ov-file#-usage).
Indeed, the current implementation seems sub-optimal. For every line in file1 it is iterating over every line of file2. Comparing a 90Mb ascii txt file makes it crash :) I...
Yes I would say the performance is quite decent now. 👍