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 Stream with Qt

RTSP Stream with Qt

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 12.1k Views 1 Watching
  • 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.
  • R_IrudezuR Offline
    R_IrudezuR Offline
    R_Irudezu
    wrote on last edited by R_Irudezu
    #1

    Hi°, I have an RTSP address that can be play on VLC. When i try to play it with QMediaPlayer i am getting this error:

    DirectShowPlayerService::doSetUrlSource: Unresolved error code 800c000d

    QMediaPlayer *player;
    player = new QMediaPlayer(this);
    
    QGraphicsScene *scene = new QGraphicsScene;
    ui->graphicsView->setScene(scene);
    
    player->setMedia(QUrl("rtsp://192.168.0.55....."));
    player->play();
    

    When i try to play an mp4 file, it is ok but rtsp address cannot be shown. Any information?

    Keizoku wa chikaranari.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      It depends on the backend, Qt is using for media on each platform.
      On linux, its gstreamer which can handle RTSP but on windows, its DirectShow and
      i think you need something extra for it to work.
      https://sourceforge.net/projects/rtspdirectshow/

      Disclaimer. i did not try this myself. just read about it.

      1 Reply Last reply
      1
      • R Offline
        R Offline
        robro
        wrote on last edited by
        #3

        Hi,
        I once used RTSP streams together with Qt.

        There I used OpenCV in the middle. It uses ffmpeg as backend and ffmpeg can handle RTSP.
        An OpenCV mat can easily be converted to e.g. QImage.

        Probably you could also use ffmpeg directly without OpenCV.

        Maybe this helps.

        1 Reply Last reply
        1
        • R_IrudezuR Offline
          R_IrudezuR Offline
          R_Irudezu
          wrote on last edited by
          #4

          @mrjj @robro

          I just downloaded K-Lite codec pack and now i can display rtsp address stream. I think DirectShow as default can not handle/decode the stream.

          Keizoku wa chikaranari.

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved