Screenbox icon indicating copy to clipboard operation
Screenbox copied to clipboard

Terrible Video Stutters

Open Zacgamingpro1234 opened this issue 7 months ago • 3 comments

Describe the bug When playing any video it has stutters, does not happen with the default windows media player.

How To Reproduce Just play any video and it will have stutters

Expected behavior The video should play with no stutters, smoothly

Video https://youtu.be/RsVJDTniJZQ

Environment

  • OS: Windows 11 24H2
  • Device: HP Laptop Elitebook 850 G2
  • App Version: Version 0.15.1.0

Zacgamingpro1234 avatar May 22 '25 14:05 Zacgamingpro1234

I found that the Screenbox app uses LibVLC for video playback, and the IMediaPlayer interface is responsible for handling playback, buffering, and related events. Video stuttering can be caused by several factors, including performance issues, codec handling, or rendering inefficiencies, especially since LibVLC may behave differently from the default Windows Media Player.

Here are some targeted troubleshooting steps and technical considerations:

  • Hardware Decoding: LibVLCSharp supports hardware decoding, which can significantly improve playback performance. If hardware decoding is not enabled, enabling it may help reduce stuttering. This can be controlled via the EnableHardwareDecoding property in the MediaPlayer class. If it's already enabled, try toggling it to see if it makes a difference.
    See MediaPlayer hardware decoding

  • Caching Settings: Adjusting the caching values for local files and network resources can impact playback smoothness. The FileCaching and NetworkCaching properties allow you to set these values (in milliseconds). Increasing these values can sometimes help with stuttering, especially on slower devices or with high-bitrate videos.
    See MediaPlayer caching settings

  • Verbose Logging: To better diagnose the issue, enable verbose LibVLC logs by creating the LibVLC object with debug logs enabled:

    new LibVLC(enableDebugLogs: true);
    

    This can help pinpoint whether the stuttering is due to decoding, rendering, or resource issues.
    See troubleshooting guide

  • Test on Other Devices/Drivers: Sometimes, stuttering is specific to certain hardware or drivers. If possible, test the app on another device or with updated graphics drivers to see if the issue persists.
    See troubleshooting guide

  • Compare with Official VLC: Try playing the same video in the official VLC app on your device. If VLC also stutters, the issue may be with LibVLC or system-level compatibility.

I did not find any existing documentation or issues in the Screenbox repository specifically about video stuttering, nor did I find recent code changes directly linked to this problem. If you have access to the app's settings or code, reviewing or adjusting the above parameters may help resolve the stuttering.

If you can provide logs or more details after enabling debug logging, it may be possible to narrow down the cause further.

To continue talking to Dosu, mention @dosu-bot.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

dosubot[bot] avatar May 22 '25 14:05 dosubot[bot]

Can you provide the format in which the video is encoded? Is it encoded in AV1, by any chance?

huynhsontung avatar May 25 '25 07:05 huynhsontung

Can you provide the format in which the video is encoded? Is it encoded in AV1, by any chance?

No not AV1, x264.

Image

Zacgamingpro1234 avatar May 25 '25 11:05 Zacgamingpro1234