Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. RTSP using QtMultimedia
QtWS25 Last Chance

RTSP using QtMultimedia

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 11.6k 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.
  • F Offline
    F Offline
    foogered
    wrote on last edited by
    #1

    Hello,

    I am creating a Qt application for decoding and viewing H.264-encoded RTSP streams. After browsing the web a bit, it seems like Phonon is capable of handling this. I am using Qt5, which seems to have replaced Phonon with QtMultimedia.

    When I create a simple test application, I am unable to view my RTSP stream. The application amounts to this:
    @
    video_widget = new QVideoWidget(this);
    media_player = new QMediaPlayer(this);
    QString rtsp_url = QString("rtsp://12.34.567.890:8554/test");
    media_player->setMedia(QUrl(rtsp_url));
    media_player->setVideoOutput(video_widget);
    media_player->play();
    @

    Does QtMultimedia support RTSP streams? Substituting the RTSP URL with a file on my desktop will play the local file correctly, which leads me to believe that the above code is sound.

    Thank you

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fbernaly
      wrote on last edited by
      #2

      Hey, I´m having the same problem, I want to view my RTSP stream, but I cant view it. Have you solved this trouble?

      This is my email: fbernaly@gmail.com

      1 Reply Last reply
      0
      • F Offline
        F Offline
        foogered
        wrote on last edited by
        #3

        I was unable to solve the problem using QtMultimedia, although using Phonon in Qt 4.8 worked in Linux (but not in Windows/Mac).

        In the end, I wrote my own classes for viewing the streams using a combination of FFMPEG and OpenGL.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Myzhar
          wrote on last edited by
          #4

          [quote author="foogered" date="1364327363"]In the end, I wrote my own classes for viewing the streams using a combination of FFMPEG and OpenGL. [/quote]

          Are you using FFMpeg library under Windows? I tried it, but the documentation is really bad!

          ======================
          Myzhar
          www.robot-home.it
          myzharbot.robot-home.it

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Myzhar
            wrote on last edited by
            #5

            Are you using FFMpeg library under Windows? I tried it, but the documentation is really bad!

            ======================
            Myzhar
            www.robot-home.it
            myzharbot.robot-home.it

            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