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 open a video file and just get the first frame to use as a preview? QMediaPlayer not apparent.

How to open a video file and just get the first frame to use as a preview? QMediaPlayer not apparent.

Scheduled Pinned Locked Moved General and Desktop
qmediaplayerpreviewvideo previewfirst frameindividual framthumbnail
1 Posts 1 Posters 1.3k 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.
  • G Offline
    G Offline
    GeorgePTVS
    wrote on 1 Apr 2015, 23:34 last edited by
    #1

    Is there any way to open a video file and get just the first frame (or preferably just any single frame)?

    QMediaPlayer only has ::play. Yes, in your connected video output (set using setVideoOutput) you could provide knowledge that you just want one frame and you could stop the player there.

    But is there a better way?

    I want to scan a directory full of videos and provide previews or thumbnails of them all in a widget or as treeview icons.

    1 Reply Last reply
    1

    1/1

    1 Apr 2015, 23:34

    • Login

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