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. Video doesn't always start when program beigns using gstreamer
Forum Updated to NodeBB v4.3 + New Features

Video doesn't always start when program beigns using gstreamer

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 571 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.
  • S Offline
    S Offline
    sharkattack28
    wrote on last edited by
    #1

    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
    0

    • Login

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