decord icon indicating copy to clipboard operation
decord copied to clipboard

C++ examples

Open jgbradley1 opened this issue 4 years ago • 3 comments

Are there plans to make the C++ API to decord public, similar to the python interface? A lot of the code appears to be implemented in C++ already but I see no examples of using decord in C++.

jgbradley1 avatar Jun 14 '20 18:06 jgbradley1

Unfortunately the focus is not on c++ API part, but here's an tiny example c++ app for deploying video based model to Jetson: https://github.com/zhreshold/cvpr2020-videomodeling-deployment/tree/master/tvm_deploy

Hope that helps. In the meantime if you can comment or provide helping hand in c++ dev part I will be more than happy to discuss.

zhreshold avatar Jun 23 '20 20:06 zhreshold

One issue I'm still trying to understand is where the source of the performance boost over OpenCV comes from. I assume most of the code responsible for the speed increase is written in C++ with a python wrapper around it for easier usability. OpenCV video also has the option to use FFMPEG.

If the performance boost is due to an algorithmic design/implementation, then it would probably be easier and more beneficial to the community to add the decord video reader to OpenCV (unless there are implementation decisions in OpenCV that prevent that), which already has a python wrapper. Plus you don't have to maintain a separate project.

jgbradley1 avatar Jul 10 '20 05:07 jgbradley1

I should mention that I think this is great work. Whenever I see comparisons made regarding a specific feature (in this case video loading/access) to tools like OpenCV that show a clear improvement, I like to see that work get folded back into the original tool.

jgbradley1 avatar Jul 10 '20 05:07 jgbradley1