Skip to content
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

[Bug]: Video playback is choppy when using video backgrounds #452

Open
devrim6 opened this issue Apr 12, 2024 · 10 comments
Open

[Bug]: Video playback is choppy when using video backgrounds #452

devrim6 opened this issue Apr 12, 2024 · 10 comments
Labels
Area: WinUI/CsWinRT/WindowsAppSDK Issue labeled for runtime/unmanaged library like WinUI/CsWinRT/WindowsAppSDK Bug Something isn't working Need Further Investigation/Attention Some details are missing and need further investigation before checking

Comments

@devrim6
Copy link

devrim6 commented Apr 12, 2024

Affected Version

1.80.0-PRE

Bug Behavior

Selecting a video as the background makes said video appear choppy with it pausing at fixed intervals.

Expected Behavior

The video should play at the native fps with no hiccups.

Steps to reproduce

Just add any video.

Related Issues

No response

Screenshot(s)

2024-04-12.14-34-27-1_conv.mp4

Additional Information

DxDiag.txt

log-2024-04-12-prevUnknown-id1.log

@devrim6 devrim6 added the Needs Triaging This issue needs the developer's attention to sort & prioritize. label Apr 12, 2024
@neon-nyan
Copy link
Member

Hi @devrim6,

Thank you for reporting this issue. For further investigation, can you send us the background video you use?

@devrim6
Copy link
Author

devrim6 commented Apr 12, 2024

Hi @devrim6,

Thank you for reporting this issue. For further investigation, can you send us the background video you use?

Sure, though this issue persists with any kind of video I try.

honkai-star-rail.1920x1080.mp4

@neon-nyan
Copy link
Member

neon-nyan commented Apr 12, 2024

Thanks for your response @devrim6,

Seems like it's not media specific issue but can you try these builds below and tell if one or both of these builds have the same stutter issue?

Canary Build with FFmpeg Codec

Canary Build with Windows Media Foundation Codec

Alternative Link (via Mega) (in case you can't access the links)

Canary Build with FFmpeg Codec

Canary Build with Windows Media Foundation Codec

@devrim6
Copy link
Author

devrim6 commented Apr 12, 2024

Unfortunately both builds show the same issue. The Windows Media build threw an error regarding mpeg-dash, but using any other video resulted in the same bug.
image

@neon-nyan
Copy link
Member

Noted. Seems like the stuttering issue caused by WinUI.
I will be keeping this issue open until we find a way to fix it or waiting for Microsoft to fix this issue.

Regarding to that exception you're seeing is intentional since I've recently added a check if the .mp4 video format is using MPEG-DASH container, which is by default unsupported for users who don't install additional codec pack.

@neon-nyan neon-nyan added Bug Something isn't working Need Further Investigation/Attention Some details are missing and need further investigation before checking Area: WinUI/CsWinRT/WindowsAppSDK Issue labeled for runtime/unmanaged library like WinUI/CsWinRT/WindowsAppSDK and removed Needs Triaging This issue needs the developer's attention to sort & prioritize. labels Apr 12, 2024
@Scighost
Copy link
Contributor

@devrim6 Hi, you could use ffmpeg to repackage video stream.

 ffmpeg -i .\322010765-4cb09468-5d62-4c70-b4b6-761b00138abd.mp4 -c copy output.mp4
output.mp4

@devrim6
Copy link
Author

devrim6 commented Apr 16, 2024

@Scighost That did not fix the issue either. I tried repackaging other videos with ffmpeg but I got the same result.

@bagusnl
Copy link
Member

bagusnl commented Apr 16, 2024

I can't replicate the stutter with both a 4K60 VP9 22.4Mbps video, nor video that was provided above (after converted by SciGhost)
Tho I do notice a slight stutter on the 4K60 when the video was on my hard drive, moving it to SSD completely fixes it (could be because I was on the middle of a defrag too but eh)

System:
Ryzen 7 5700X
Radeon RX6600
W11 23H2
Collapse 1.80.0-Pre release version

@neon-nyan
Copy link
Member

neon-nyan commented Apr 19, 2024

@devrim6 Can you try this build? It's using async FileStream and bigger buffer being set (64 KB instead of 4 KB)

Canary Build with Async + Big Buffer

@devrim6
Copy link
Author

devrim6 commented Apr 20, 2024

@neon-nyan This build did not do it either. I have tested background videos on other machines as well and it worked there, so it might just be something with my system, though not sure what. Here are the logs in case you need them.
log-2024-04-20-pre1.80.0-id0.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: WinUI/CsWinRT/WindowsAppSDK Issue labeled for runtime/unmanaged library like WinUI/CsWinRT/WindowsAppSDK Bug Something isn't working Need Further Investigation/Attention Some details are missing and need further investigation before checking
Projects
None yet
Development

No branches or pull requests

4 participants