Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

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

    General and Desktop
    qmediaplayer preview video preview first frame individual fram thumbnail
    1
    1
    1032
    Loading More Posts
    • 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
      GeorgePTVS last edited by

      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 Reply Quote 1
      • First post
        Last post