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. display ip flux video
QtWS25 Last Chance

display ip flux video

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 4 Posters 1.9k Views
  • 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.
  • H Offline
    H Offline
    helenebro
    wrote on 25 Nov 2016, 16:04 last edited by
    #1

    Hi,
    I have a IP Camera. I can see video on my navigateur ("http://192.168.1.5/video.cgi) and on VLC.
    I want to display the video on QML application.
    I have tried with MediaPlayer and VideoOutput but the medialPlayer stay in "Loading" state.
    I use Qt 5.2 on Windows (MinGW 32 bits)

    Rectangle {
         width: 800
         height: 600
         color: "black"
    
         MediaPlayer {
             id: player
             source: "http://192.168.1.5/video.cgi"
             onStatusChanged:displayStatus(status)
             autoPlay: true
         }
    
         VideoOutput {
             id: videoOutput
             source: player
             anchors.fill: parent
         }
     }
    
    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on 25 Nov 2016, 16:13 last edited by
      #2

      Hi! Maybe you want to try this VLC wrapper as the integrated mediaplayer is somewhat limited.

      1 Reply Last reply
      1
      • H Offline
        H Offline
        helenebro
        wrote on 28 Nov 2016, 10:41 last edited by helenebro
        #3

        Thank you for your answer. It works but there are latency on the video and I have lot of "log" :
        Is there a way to disable this debug ?

        LC-Qt "1.1.0" initialised
        Using libvlc version: "2.2.4 Weatherwax"
        Format: chroma: J422 width: 320 height: 256 pitches: 0 lines: 0
        YV12 3 0
        core vout display error: Failed to change zoom
        [swscaler @ 03d7abe0] deprecated pixel format used, make sure you did set range correctly
        libvlc: Failed to change zoom
        libvlc: Failed to set on top
        libvlc: Failed to change source AR
        core vout display error: Failed to set on top
        core vout display error: Failed to change source AR
        [mjpeg @ 03cbc920] No JPEG data found in image
        libvlc Error: "Track identifier not found"
        libvlc Error: "Track identifier not found"
        [mjpeg @ 03cbc920] No JPEG data found in image
        [mjpeg @ 03cbc920] No JPEG data found in image
        [mjpeg @ 03cbc920] No JPEG data found in image
        [mjpeg @ 03cbc920] No JPEG data found in image
        ...
        [mjpeg @ 03cbc920] No JPEG data found in image
        libvlc: Failed to change zoom
        libvlc: Failed to change source AR
        core vout display error: Failed to change zoom
        core vout display error: Failed to change source AR
        D:\Helene\sandbox\Qt\VLC\build-TestVLC-Desktop_Qt_5_3_MinGW_32bit-Release\release\TestVLC.exe s'est terminé avec le code 0
        
        import QtQuick 2.3
        import QtQuick.Window 2.2
        import VLCQt 1.0
        
        Window {
            visible: true
            width: 640
            height: 480
            title: qsTr("Hello World")
        
            Rectangle {
                width: 640
                height: 480
                color: "black"
            }
        
            VlcVideoPlayer {
                id: vidwidget
                anchors.fill: parent
                url: "http://192.168.1.5/video.cgi"
            }
        }
        
        G 1 Reply Last reply 25 Jan 2017, 21:45
        0
        • H helenebro
          28 Nov 2016, 10:41

          Thank you for your answer. It works but there are latency on the video and I have lot of "log" :
          Is there a way to disable this debug ?

          LC-Qt "1.1.0" initialised
          Using libvlc version: "2.2.4 Weatherwax"
          Format: chroma: J422 width: 320 height: 256 pitches: 0 lines: 0
          YV12 3 0
          core vout display error: Failed to change zoom
          [swscaler @ 03d7abe0] deprecated pixel format used, make sure you did set range correctly
          libvlc: Failed to change zoom
          libvlc: Failed to set on top
          libvlc: Failed to change source AR
          core vout display error: Failed to set on top
          core vout display error: Failed to change source AR
          [mjpeg @ 03cbc920] No JPEG data found in image
          libvlc Error: "Track identifier not found"
          libvlc Error: "Track identifier not found"
          [mjpeg @ 03cbc920] No JPEG data found in image
          [mjpeg @ 03cbc920] No JPEG data found in image
          [mjpeg @ 03cbc920] No JPEG data found in image
          [mjpeg @ 03cbc920] No JPEG data found in image
          ...
          [mjpeg @ 03cbc920] No JPEG data found in image
          libvlc: Failed to change zoom
          libvlc: Failed to change source AR
          core vout display error: Failed to change zoom
          core vout display error: Failed to change source AR
          D:\Helene\sandbox\Qt\VLC\build-TestVLC-Desktop_Qt_5_3_MinGW_32bit-Release\release\TestVLC.exe s'est terminé avec le code 0
          
          import QtQuick 2.3
          import QtQuick.Window 2.2
          import VLCQt 1.0
          
          Window {
              visible: true
              width: 640
              height: 480
              title: qsTr("Hello World")
          
              Rectangle {
                  width: 640
                  height: 480
                  color: "black"
              }
          
              VlcVideoPlayer {
                  id: vidwidget
                  anchors.fill: parent
                  url: "http://192.168.1.5/video.cgi"
              }
          }
          
          G Offline
          G Offline
          GtrPksRnt4eatin
          wrote on 25 Jan 2017, 21:45 last edited by
          #4

          @helenebro hey, did you ever get anywhere with this? I am having a similar problem with vlc-qt.. as far as latency --network-caching=0 has an effect when used to run vlc from the command line

          K 1 Reply Last reply 21 Jul 2017, 21:00
          0
          • G GtrPksRnt4eatin
            25 Jan 2017, 21:45

            @helenebro hey, did you ever get anywhere with this? I am having a similar problem with vlc-qt.. as far as latency --network-caching=0 has an effect when used to run vlc from the command line

            K Offline
            K Offline
            kheaactua
            wrote on 21 Jul 2017, 21:00 last edited by
            #5

            @GtrPksRnt4eatin Same.. :( Using msvc2013, Qt5.9.1, VLCQt 1.1.0, VLC 2.2.6

            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