It is common for HD videos of large sizes to hang or lag when opened in VLC. The video will freeze and skip several frames but the audio keeps on playing perfectly. It may also hang for several seconds or loop at the same point again and again. There are several ways of fixing this problem in VLC media player.
There is no single solution to this problem of choppy videos. The main idea is to increase the video caching seconds. In its operation, VLC has to cache the video in its own player first before it plays the video to ensure that the video plays smoothly. It also switches video output to DirectX, DirectDraw, or OpenGL to improve video HD video frame. Changing a few settings in the FFmeg codec helps to prevent freezing and hanging of HD videos in VLC. Here are a few ways of fixing the problem of video freezing:
By increasing cache values
VLC has to cache a video before playing it, even when playing videos offline. It normally preloads a given portion of the video from your computer’s hard drive or RAM before it can access the entire video and play it. In the case of HD videos, buffering a significant portion of the video can help to avoid the lagging issue. Follow these steps to increase file caching:
•In VLC, go to Tools then Preferences. You can use keyboard shortcuts CTRL+P to get there.
•Select All in the Show Settings section
•Go to Advanced Settings and select the parent option Input/Codecs
•Scroll down Input/Codecs and to Advanced
•Under Advanced change the File Caching value, which is in milliseconds, from 300 to 1000 or higher value.
It is also quite possible to change Network Caching Values (ms) and Disc Caching (ms) and check if this improves how VLC performs. Network caching works for files saved in a network that can be played in your system.
How to change video output settings
•Straight from the menu bar go to Tools then Preferences. You can use keyboard shortcuts CTRL+P too.
•In the options presented choose Video
•On Output under Video Settings, change the default value from Automatic to DirectX or DirecDraw.
•Click Save and see if HD video playback performance has improved.
How to solve FFmpeg Loop Filter Skipping
•Go to Tools then Preferences or press CTRL+P•On Show Settings find the All button and change from Simple to Advanced Preferences
•Go to Input/Codecs then Video Codecs and to FFmpeg
•In FFmpeg audio/video look for the option that says Skip the loop filter for H.264 decoding.
•Change this option from None to All
While in the FFmpeg audio/video decoder settings locate Hardware decoding and check if it is on Disable then save.