Unsolved Qt Camera example not working
-
Hi,
I am using debian 10, Qt creator 4.8.2 based on qt 5.11.3While trying to build the code, The Application output is showing an error message,
Unable to query the parameter info : "Inappropriate ioctl for device"
Unable to query the parameter info : "Inappropriate ioctl for device"
Unable to query the parameter info : "Inappropriate ioctl for device"
Camerabin ERROR: "Failed to allocate memory"When i tried to record some video with Gstreamer commands the camera worked fine.
Any idea how to solve this error?Thanks
-
Hi,
What device is that ?
What GStreamer pipeline did you use ? -
I am using ov5645 camera module and i tried in USB camera also. Both are showing the same error.
Sorry i didnt understand what you mean by "what Gstreamer pipeline did you use" .
Did you mean the command I used ??gst-launch-1.0 v4l2src device=/dev/videoX ! 'video/x-raw,format=UYVY,width=1920,height=1080' ! glimagesink
I used the camera example program from this link https://github.com/qt/qtmultimedia.git .
-
That's what I was asking.
One thing you can try is to modify the pipeline from the GStreamer backend to use the same source as your command line version.
-
@sgaist How can I do that?
-
Edit the files from the camera GStreamer plugin in Qt's sources and then rebuild it.
-
@tech-hi said in Qt Camera example not working:
gst-launch-1.0 v4l2src device=/dev/videoX ! 'video/x-raw,format=UYVY,width=1920,height=1080' ! glimagesink
Does it work?
What device do you use? Or is it desktop?
you can run with GST_DEBUG=4 ./app
and see gst errors, memory related?
Can you see camera output in camera example?