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. How to use RTSP stream from ip camera

How to use RTSP stream from ip camera

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 654 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.
  • S Offline
    S Offline
    shibe
    wrote on last edited by
    #1

    i want to stream camera in qml by using rtsp but it has error

    [rtsp @ 0x7fff98002bc0] UDP timeout, retrying with TCP
    [rtsp @ 0x7fff98002bc0] method PAUSE failed: 551 Option not supported
    [rtsp @ 0x7fff98002bc0] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
    Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
    qt.multimedia.ffmpeg.mediadataholder: AVStream duration -9223372036854775808 is invalid. Taking it from the metadata

    this is my code

    MediaPlayer{
        id: videoOutput
        onMetaDataChanged: {
            console.log("Metadata of the video:", mediaPlayer.metaData)
        }
        // captureMode: Camera.CaptureViewfinder
        source: "rtsp://admin:123456aA@192.168.100.129:554"
        videoOutput: camera1
    }
         VideoOutput {
              id : camera1
              anchors.fill: parent
               focus: visible
    

    }

    can any1 help me fix it pls

    JoeCFDJ 1 Reply Last reply
    0
    • S shibe

      i want to stream camera in qml by using rtsp but it has error

      [rtsp @ 0x7fff98002bc0] UDP timeout, retrying with TCP
      [rtsp @ 0x7fff98002bc0] method PAUSE failed: 551 Option not supported
      [rtsp @ 0x7fff98002bc0] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
      Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
      qt.multimedia.ffmpeg.mediadataholder: AVStream duration -9223372036854775808 is invalid. Taking it from the metadata

      this is my code

      MediaPlayer{
          id: videoOutput
          onMetaDataChanged: {
              console.log("Metadata of the video:", mediaPlayer.metaData)
          }
          // captureMode: Camera.CaptureViewfinder
          source: "rtsp://admin:123456aA@192.168.100.129:554"
          videoOutput: camera1
      }
           VideoOutput {
                id : camera1
                anchors.fill: parent
                 focus: visible
      

      }

      can any1 help me fix it pls

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2

      @shibe said in How to use RTSP stream from ip camera:

      Could not find codec parameters

      "Could not find codec parameters"
      check if you have installed ffmpeg libs and plugins. ffmpeg does not come with Qt and you have to install it, I guess.

      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