-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MediaComposition GetThumbnailsAsync returns the first thumbnail regardless of the provided timestamps. #5049
Comments
I tested with this MP4 : sample_1280x720_surfing_with_audio.mp4 |
The other videos that I'm using are all h264 encoded in an mp4 container, tried the sample wave sample .mp4 and I get the same error: Running it again but starting at 00:01 just so that it's more visible and not only a black screen: Tried running it in a separate windows machine on Win11 22H2 using build 22621.4836 produces the same results. |
What kind of GPU (brand) do you have? Maybe the GPU decoder isn't working properly. |
Try using |
I'll try updating to a newer version of the drivers to see if that changes the behavior. |
Just tried it on my machine, I see the same buggy behavior as you do with identical images. I also have a NVIDIA GPU. |
Updated to latest Nvidia drivers for my GPU and I have the same behavior, so I think whiskhub might be correct and it might be a buggy implementation for Nvidia graphics cards. |
Dumb question: Have you opened the images to verify their contents? A shell extension/preview handler bug (or caching issue) would render those files incorrectly in File Explorer. |
Yeah, they're really identical files 😅 |
Yes, same for me, identical files. |
Describe the bug
When using the
GetThumbnailsAsync
method inside theMediaComposition
class, all the thumbnails returned are the same as the first thumbnail regardless of the timestamps provided to generate the thumbnails.Steps to reproduce the bug
Expected behavior
The frames returned are different, representing each provided timestamp.
Screenshots
No response
NuGet package version
Windows App SDK 1.6.3: 1.6.250108002
Packaging type
Unpackaged
Windows version
Windows 11 version 23H2 (22631, November 2023 Update)
IDE
Visual Studio 2022
Additional context
The current workaround is to manually call
GetThumbnailAsync
for each timestamp, but that's around 4-5 times slower.The text was updated successfully, but these errors were encountered: