Video unable to play or map to buffers
-
Hi,
I am trying to stream video through my QML application. I get the video through the c200 Hauppage usb capture device which uses the USBVision driver (http://linuxtv.org/wiki/index.php/USBVision_devices ). I can see the video display in VLC where I set it as the capture device /dev/video1. When it displays it says vl42:///dev/video1. When I try to display the video using these two locations (I'm not sure which I should use) I get the following errors:
@
Video {
id: camera
autoLoad: true
playing: true
source: "file://dev/video1"
onStarted: {
camera.play()
}
}
@
Results in:
@
GStreamer; Unable to pause - "file://dev/video1"
GStreamer; Unable to play - "file://dev/video1"
@
And...
@
Video {
id: camera
autoLoad: true
playing: true
source: "v4l2://///dev/video1"
onStarted: {
camera.play()
}
}
@
Results in:
@
GStreamer; Unable to pause - "v4l2://///dev/video1"
GStreamer; Unable to play - "v4l2://///dev/video1"
Error: "Could not map buffers from device '/dev/video1'"
@Does anyone have any idea how I can get this video to display?
-
I think your source path is incorrect. Try this code:
@
Video {
id: camera
autoLoad: true
playing: true
source: "/dev/video1"
onStarted: {
camera.play()
}
}
@ -
When I use that source path, it says
@
Error: "Could not read from resource."
@
EDIT: The file://... now gives the error
@
Error: "Resource not found."
@
To clarify I am trying to stream NTSC video -
I know this is quite old, but did you find a solution? I could imagine that video4linux devices are not supported out of the box, but I'm not sure and currently looking for more information. It would be great if you have any :)
-
I also couldn't play streaming video with the QML Video element