Qt Forum

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

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Video doesn't always start when program beigns using gstreamer

    General and Desktop
    1
    1
    494
    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.
    • S
      sharkattack28 last edited by

      I am posting to see if anyone has any idea about our problem. We are pulling video from an ip camera into qt with gstreamer. However, the video doesn't always start. we have to close it and open it several times until we can get the video in.

      this is our function:

      Video::Video(QGraphicsItem *parent) :
      QGraphicsVideoItem(parent)
      {
      QmediaPlayer *vidPlayer = new QMediaPlayer;
      vidPlayer->setMedia(QUrl("rtsp://192.168.1.90/axis-media/media.amp?fps=0&camera=3"));
      vidPlayer->setVideoOutput(this);
      vidPlayer->play();
      }

      here is our application output:
      "qt internal data flow error"
      and we always get this where the video stream shows or not:
      "failed to start video surface"

      Any ideas?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post