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. How to catch frame in QT Multimedia application using QVideoFrame?
Forum Updated to NodeBB v4.3 + New Features

How to catch frame in QT Multimedia application using QVideoFrame?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.2k 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.
  • T Offline
    T Offline
    Tejas Virpariya
    wrote on last edited by
    #1

    Hi,

    I developed application on Qt which can play video from local file location using QVideoWidget, QMediaPlayer, etc. Now I want to catch frame and show video on an application using QVideoFrame. Please help to sort out this problem, give some basic example for how to use QVideoFrame to catch frame and show video?

    Thanks

    -Thanks
    Tejas Patel

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

      Hi,

      Do you mean QVideoProbe ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      T 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        Do you mean QVideoProbe ?

        T Offline
        T Offline
        Tejas Virpariya
        wrote on last edited by
        #3

        @SGaist : I have no idea about QVideoProbe but using QVideoFrame we can show frame on player... so I want to one example which one use QVideoFrame.
        -Thanks

        -Thanks
        Tejas Patel

        1 Reply Last reply
        0
        • jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Maybe you should check the link SGaist provided you?
          It even has an example with a QVideoFrame in it:

          QMediaPlayer *player = new QMediaPlayer();
          QVideoProbe *probe = new QVideoProbe;
          
          connect(probe, SIGNAL(videoFrameProbed(QVideoFrame)), this, SLOT(processFrame(QVideoFrame)));
          
          probe->setSource(player); // Returns true, hopefully.
          
          player->setVideoOutput(myVideoSurface);
          player->setMedia(QUrl::fromLocalFile("observation.mp4"));
          player->play(); // Start receiving frames as they get presented to myVideoSurface
          

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          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