Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Video unable to play or map to buffers
Forum Updated to NodeBB v4.3 + New Features

Video unable to play or map to buffers

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 4 Posters 2.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bluestreak
    wrote on 25 Jul 2012, 00:40 last edited by
    #1

    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?

    1 Reply Last reply
    0
    • W Offline
      W Offline
      william
      wrote on 25 Jul 2012, 03:48 last edited by
      #2

      I think your source path is incorrect. Try this code:

      @
      Video {
      id: camera
      autoLoad: true
      playing: true
      source: "/dev/video1"
      onStarted: {
      camera.play()
      }
      }
      @

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bluestreak
        wrote on 25 Jul 2012, 16:04 last edited by
        #3

        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

        1 Reply Last reply
        0
        • C Offline
          C Offline
          conny
          wrote on 7 Apr 2014, 07:50 last edited by
          #4

          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 :)

          1 Reply Last reply
          0
          • A Offline
            A Offline
            aabc
            wrote on 13 Apr 2014, 10:47 last edited by
            #5

            I also couldn't play streaming video with the QML Video element

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved