Video Capture: Resolutions and Settings
in
Core Library Questions
•
1 year ago
Hey.
I got a Blackmagic Intensity Pro HDMI Capture Card to capture video output of an iPad.
Using the Video Library it's really easy to get that picture into processing.
But i got two problems and looking for help:
1. Although i select to Capture at 1280x720, the image that is drawn seems to be of a very bad resolution.
(when viewing the image in other apps it is fine)
2. I always have to manually call .settings() and set the input settings to 60fps or the screen wont show anything.
Would be awesome if i could set that programmatically.
Thanks in advance.
Here is the (simple) code i am using:
- import processing.video.*;
- Capture camera;
- int[] _size = {1280, 720};
- void setup()
- {
- size(_size[0], _size[1]);
- String[] devices = Capture.list();
- camera = new Capture(this, _size[0], _size[1], devices[3], 60);
- camera.settings();
- }
- void draw() {
- if (camera.available() == true) {
- camera.read();
- set(0, 0, camera);
- }
- }
1