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 Update on Monday, May 27th 2025

How to catch frame in QT Multimedia application using QVideoFrame?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.1k Views
  • 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 9 Mar 2016, 04:24 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 9 Mar 2016, 22:05 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 10 Mar 2016, 07:09
      1
      • S SGaist
        9 Mar 2016, 22:05

        Hi,

        Do you mean QVideoProbe ?

        T Offline
        T Offline
        Tejas Virpariya
        wrote on 10 Mar 2016, 07:09 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
        • J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 10 Mar 2016, 07:22 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

          1/4

          9 Mar 2016, 04:24

          • Login

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