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 to grab an uncompressed image from the UVC camera, e.g. with ffmpeg? #222

Open
ventilator opened this issue Sep 25, 2023 · 0 comments
Open

Comments

@ventilator
Copy link

I configured the camera to deliver uncompressed images, that seems to work, according to ffmpeg

ffmpeg -list_options true -f dshow -i video="UVC Camera"

[dshow @ 00000193bd719840]   vcodec=mjpeg  min s=1280x720 fps=15 max s=1280x720 fps=30
[dshow @ 00000193bd719840]   vcodec=mjpeg  min s=1280x720 fps=15 max s=1280x720 fps=30
...
[dshow @ 00000193bd719840]   pixel_format=yuyv422  min s=1920x1080 fps=15 max s=1920x1080 fps=30
[dshow @ 00000193bd719840]   pixel_format=yuyv422  min s=1920x1080 fps=15 max s=1920x1080 fps=30

Then I can record a compressed mpeg stream with
ffmpeg -f dshow -video_size 1280x720 -framerate 15 -i video="UVC Camera" -vcodec mjpeg out.avi

That works fine, I get a video.

But once I ask the camera for an uncompressed stream, nothing happens:

ffmpeg -f dshow -video_size 1920x1080 -framerate 15 -i video="UVC Camera" -pixel_format yuyv422 uncompressed.avi

  • Has anyone grabbed uncompressed images? Can you share your method? Ultimately I would like to grab the images with OpenCV, but also there I only get black images
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