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. Displaying a video from webcam/file in a particular part of frame.
Forum Updated to NodeBB v4.3 + New Features

Displaying a video from webcam/file in a particular part of frame.

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 485 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.
  • HashDragonH Offline
    HashDragonH Offline
    HashDragon
    wrote on last edited by HashDragon
    #1

    Hello Everyone! This is my first thread on this forum. I'm fairly new to QT so kindly forgive any foolish behavior :-) I have already done research on my part about my problem but couldn't get any proper answer to this.
    I am trying to display a video in a particular part of my frame. This video can be loaded either by camera or via file on my hard disk. There are two such widgets required.
    What is the most efficient and cleanest way to do this? Should I use QPainter or something?
    Thanks!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      michelson
      wrote on last edited by
      #2

      In my opinion you can use QMediaPlayer combined with QVideoFrame to get access to single frames using QVideoFrame::bits() function (remember to call QVideoFrame::map() - but all the nuances are in the docs) . Then I would try to create a QPixmap or QImage from the data and do the cropping. QLabel as displaying widget.

      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