microsoft / microsoft/FFmpegInterop

Get current frame/snapshot

Open
#207 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.4k
Forks
319
PR merge metrics
No merged PRs in 30d

Description

Hi, I was wondering to know how could we get the current frame (by timespan)?
This peace of code will return an IInuptStream of a frame that we can use it.

        public static async Task<IInputStream> GetThumbnailAsync(StorageFile file,TimeSpan duration)
        {
            var mediaClip = await MediaClip.CreateFromFileAsync(file);
            var mediaComposition = new MediaComposition();
            mediaComposition.Clips.Add(mediaClip);
            return await mediaComposition.GetThumbnailAsync(
                duration, 0, 0, VideoFramePrecision.NearestFrame);
        }

but it's not working for HEVC/x265 codec.
Is there be a code or anything to get current frame in FfmpegInterop? or will be available in future?

[Ps: I'm not a c++ programmer]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue asks whether FFmpegInterop can retrieve a current video frame by timespan, especially for HEVC/x265, and references MediaComposition.GetThumbnailAsync. Start by reviewing FFmpegInterop's public media and frame-related APIs and codec handling; done should be a clearly scoped implementation or documented answer about supported frame extraction.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.