Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. RTSP Streaming on QML Application
Forum Updated to NodeBB v4.3 + New Features

RTSP Streaming on QML Application

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 1.3k 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.
  • N Offline
    N Offline
    neutri
    wrote on last edited by neutri
    #1

    Hey people I am currently developing an application that one specific page is assigned to show live IP Camera stream via RTSP link.
    At the first step I played the video from the internet the famous bunny file "rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov" it worked fine. However, when I change the RTSP link with my own network camera link "rtsp://192.168.2.119/554" I am not able to view any video. I wonder what causes this problem. Need serious help??

    Sharing my code below,

    import QtQuick 2.4
    import QtQuick.Controls 1.3
    import QtMultimedia 5.4
    
    
    PageDefault {
        id: pageSettings
    
        title: qsTr("Kamera")
    
    
        Label {
            anchors.centerIn: parent
            text: qsTr("Kamera")
        }
    
        Camera {
            id: camera
            captureMode: Camera.CaptureStillImage
    
            imageCapture {
                onImageCaptured: {
                    photoPreview.source = cam14era
                    stillControls.previewAvailable = true
                    cameraUI.state = "PhotoPreview"
                }
            }
    
            videoRecorder {
                 resolution: "1920x1080"
                 frameRate: 30
            }
    
        }
    
        MediaPlayer {
             id: videoPlayer
             source: "rtsp://192.168.2.119/554"
             muted: true
             autoPlay: true
             autoLoad: true
    
         }
    
         VideoOutput {
             id: camera1
             width: 1920
             height: 1080
             anchors.fill:parent
             source: videoPlayer
         }
    }
    
    
    1 Reply Last reply
    1
    • JoeBermejalesJ Offline
      JoeBermejalesJ Offline
      JoeBermejales
      wrote on last edited by
      #2

      same problem here, I am not able to display a simple rtsp video stream in QML. I have similar code than @neutri and get the following error:

      DirectShowPlayerService::doSetUrlSource: Unresolved error code 0x800c000d (El protocolo especificado es desconocido.)
      

      I can see the stream from the VLC player.

      any idea?

      thanks!

      http://reparacionplotter.com

      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