Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How read /dev/video0 with ffmpeg in c++? #231

Open
LaurentDelaon opened this issue Feb 12, 2022 · 0 comments
Open

How read /dev/video0 with ffmpeg in c++? #231

LaurentDelaon opened this issue Feb 12, 2022 · 0 comments

Comments

@LaurentDelaon
Copy link

LaurentDelaon commented Feb 12, 2022

Hi

using ccv with TLD, I want to read pictures from /dev/video0 with an usb cam.

I will to using ffmpeg like this :
ffmpeg -f v4l2 -framerate 25 -video_size 640x480 -i /dev/video0 output.avi
I have try to follow your example on get starting like :

#include <ccv.h>
int main(int argc, char** argv)
        ccv_dense_matrix_t* image = 0;
       ccv_read(argv[1], &image, CCV_IO_RGB_COLOR | CCV_IO_ANY_FILE);

But seem not clear to me...
May I have other possibilities to do that more easily?
How can I do this?
thank's for help.
Laurent.

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

No branches or pull requests

1 participant