When high definition videos of large sizes are opened in VLC Media Player—the HD video doesn’t play perfectly at all times. The HD video freezes and skips a few frames while the audio plays perfectly. The video might hang a few seconds and loop around the same point again. This is an error that is not so rare to the users of VLC. Fortunately, there are a number of ways that you can try to fix the video lag.
There isn’t a single or perfect solution to fixing the choppy videos. If you have to play movie files that take up large GBs of space there are a couple of things we can do. The basic idea is to increase the number of seconds videos are cached. It doesn’t matter whether the videos are being played locally from a hard drive or from a network location. VLC needs to cache the video in the player itself while playing. We can increase the cache to ensure that the videos play smoothly. The other thing that improves HD video frame rate is switching the video output to DirectX DirectDraw or OpenGL. Make some changes in the video FFmpeg codec also seems to help.
So, to fix this video freezing issue try a combination of these methods till the video plays smoothly:
Increase Cache Values
Even when playing an offline video, VLC needs to cache it. It preloads a certain portion of the video from the hard drive to your computer’s main memory or RAM. From there, the player accesses it and plays it. It happens constantly as a video is being played. For HD videos, buffering larger portions to the memory helps with the constant lag.
Here’s how to increase file caching
- Open Tools > Preferences [CTRL + P].
- In Show settings select the All
- In Advanced settings, click on the parent option that says Input / Codecs.
- In Input / Codecs scroll down to the options under the heading Advanced.
- Change the values for File caching (ms) from 300 to a higher value like 1000 or 2000. The value is in milliseconds.
Note: You can also change the values for Network caching (ms) and Disc caching (ms) to see whether it improves your playback performance. Network caching is for files that are stored on a network but are being played in your current system.
Change Video Output Settings
- In the menu bar, click on Tools > Preferences [CTRL + P].
- From the options present, click on Video.
- In Video Settings, under Output change the value from Automatic to DirectX (DirecDraw) video output. Try OpenGL video output as well.
- Click Save.
FFmpeg Loop Filter Skipping
- Open up Tools > Preferences [CTRL + P].
- Under Show settings click the radio button that says All to switch from Simple to Advanced Preferences.
- Navigate to Input / Codecs > Video Codecs > FFmpeg.
- Under FFmpeg audio/video decoder find the option that says Skip the loop filter for H.264 decoding.
- Change it from None to All.
Additional and Optional Step
- In the same FFmpeg audio/video decoder settings, find Hardware decoding and ensure the value is Disable.
Click Save at the end.
View Comments (114)
Thanks a lot, it worked. God bless
Worked great, however as someone else pointed out (IMPORTANT) you have to start the movie then stop it then restart it for the changes to take effect
thanks this fixed it immediately!
Worked Amazing on my 2017 Dell Lattitude 7480. I decided to first change the Disc Caching value to 2000. Then i saved the settings and closed VLC.
Later i opened it again and then changed the Output toDirectX . Then i saved the settings and then closed VLC.
Glad it worked. I was this close to throwing away my laptop cuz it did not let me play 1080p Videos especially Anime.
Thanks for this Ajay!! I followed the steps above as well and got the pink screen as someone else mentioned. Flipping to DirectX solved it for me.
I made all the suggested changes, but all I got was a solid hot pink screen when I opened a video, no audio.Changed back and was working as before. I was trying to fix an issue with an MPEG-4 part 10 video that played fine on mpc and wmp.
Change Video output setting to something other than DirectX
I did all but now I only get a purple view, full screen! No videos! Help!
It worked very nice bro, thanks!😂
for me too!!
Thank you so much.
Directx didn't work
But openGL did plus the rest settings.
Have to close the VLC and load the movie all over again for changes to take effect. Works perfectly.
Stay blessed
why is it set to just 1 second for the caching? on windwos its hell, constanly freezing. On osx it runs just fine
I got no problems with ver 2.2.4 and HD files
Updated to 3.0.16 - and here you are! Freezing, colours distortion, lagging, pixelation
Should I manualy try to tune all those settings OR VideoLAN takes care and release some patch
I was in the same spot and got the same issues after updating. Yes, at the least changing the file and disc cache fixed it for me
I am having the exact same issue.