chenxinfeng4 / ffmpegcv

The ffmpegcv is a ffmpeg backbone for open-cv like Video Reader and Writer
161 stars 24 forks source link

whats the example of pip install ffmpegcv[cuda] whats cuda here? #46

Closed aloksharma1 closed 1 month ago

aloksharma1 commented 4 months ago

Hello, Python newbie here, i want to know what i have to pass in cuda here

recommand when using cuda pip install ffmpegcv[cuda]

is it my nvidia driver version, toolkit version or cudnn path, i am on windows 11.

chenxinfeng4 commented 4 months ago

you can install the ffmpegcv step by step.

First make sure you have add the ffmpeg into your path. You can do that by conda or manually add the FFMPEG/BIN to your windows 11 environment PATH.

# In the system cmd window
ffmpeg -version 

Then install the ffmpegcv by pip.

pip install ffmpegcv
aloksharma1 commented 4 months ago

oh already done that than, thanks another issue is i need to extract frame properties for camera calibration (i want to stabilize shaky camera feed) but i don't see a documentation for this lib, and OpenCV cap.info is not working with this library.

chenxinfeng4 commented 3 months ago

The cap.info is not the frame property in OpenCV neither, it should be the video property. If you want the video info, you can just print the cap of a ffmpegcv.VideoCapture* instance. You will see the width/heigh/fps/duration/counts of the video.

print(cap);dir(cap)

chenxinfeng4 commented 1 month ago

Since no more question, this issue will be closed.