Skip to content

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

Description

@devrim6

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

Activity

  1. added
    Needs TriagingThis issue needs the developer's attention to sort & prioritize.
    on Apr 12, 2024
  2. neon-nyan commented on Apr 12, 2024

    @neon-nyan
    Member

    Hi @devrim6,

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

  3. devrim6 commented on Apr 12, 2024

    @devrim6
    Author

    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
  4. neon-nyan commented on Apr 12, 2024

    @neon-nyan
    Member

    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

  5. devrim6 commented on Apr 12, 2024

    @devrim6
    Author

    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

  6. neon-nyan commented on Apr 12, 2024

    @neon-nyan
    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.

  7. added
    BugSomething isn't working
    Area: WinUI/CsWinRT/WindowsAppSDKIssue labeled for runtime/unmanaged library like WinUI/CsWinRT/WindowsAppSDK
    and removed
    Needs TriagingThis issue needs the developer's attention to sort & prioritize.
    on Apr 12, 2024
  8. Scighost commented on Apr 16, 2024

    @Scighost
    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
  9. devrim6 commented on Apr 16, 2024

    @devrim6
    Author

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

  10. bagusnl commented on Apr 16, 2024

    @bagusnl
    Member

    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

  11. neon-nyan commented on Apr 19, 2024

    @neon-nyan
    Member

    @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

  12. devrim6 commented on Apr 20, 2024

    @devrim6
    Author

    @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

  13. bagusnl commented on Sep 18, 2024

    @bagusnl
    Member

    Closed as stale and cannot reproduced. Shall there is a new clue, please reopen the issue.
    Thanks for supporting Collapse Launcher!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: WinUI/CsWinRT/WindowsAppSDKIssue labeled for runtime/unmanaged library like WinUI/CsWinRT/WindowsAppSDKBugSomething isn't workingNeed Further Investigation/AttentionSome details are missing and need further investigation before checking

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions