Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    RTSP using QtMultimedia

    General and Desktop
    3
    5
    11332
    Loading More Posts
    • 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
      foogered last edited by

      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 Reply Quote 0
      • F
        fbernaly last edited by

        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 Reply Quote 0
        • F
          foogered last edited by

          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 Reply Quote 0
          • M
            Myzhar last edited by

            [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 Reply Quote 0
            • M
              Myzhar last edited by

              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 Reply Quote 0
              • First post
                Last post