microsoft / microsoft/FFmpegInterop
Get current frame/snapshot
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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