Solved Change QML Camera viewfinder and capture pixel format
-
@SGaist That's what I feared... Is there any Qt class you have in mind? I could handle this via V4L2 but I was hoping for a portable solution.
-
I just had a doubt, what if you use the xvimagesink ?
Are you seeing the live image of your camera ? -
@SGaist xvimagesink does not support image/jpeg, I just get:
WARNING: erroneous pipeline: could not link v4l2src0 to xvimagesink0, xvimagesink0 can't handle caps image/jpeg
-
Can you open the camera with VLC ?
-
@SGaist I've never used VLC on the command line, and I'm having trouble figuring out how to stream directly from my local camera. Could you please provide me with some indications on how to do?
-
I meant just testing with the VLC application.
-
@SGaist Yeah sorry, I've just noticed the "Open capture device" option in the GUI program... My bad.
Anyway, I get the same problem, VLC defaults to YUYV and I get extremely low FPS. As far as I could see there were no option to set the capture format at all. -
Then I fear you are going to have to go lower level to set the stream type...
-
@SGaist Yes, that's what I feared too.
Since there seems to be no suitable Qt-based solution at all, I'm closing the topic as solved. -
Did you check with the GStreamer folks whether there was something possible with directly from their v4l2 plugin ?
-
@SGaist Well, no, but I might as well try at this point.