# How to optimize VLC for IPTV with a larger cache size

> Increase the File Caching and Network Caching values in VLC to reduce buffering while you watch IPTV.

You can change the settings in VLC media player to watch IPTV with less buffering by increasing the cache size. This guide shows where the cache settings are. For the full setup, read [how to watch IPTV on VLC media player](https://iptvfiesta.sx/help-center/article/how-to-setup-iptv-on-vlc-media-player).

You need VLC media player installed on your computer.

## Open the advanced input settings

1. Open VLC media player.

2. Select **Tools** > **Preferences**.

   ![VLC Tools menu with Preferences highlighted](https://iptvfiesta.sx/api/help-center/media/2021-08-How-to-optimize-VLC-for-IPTV-1.jpg)

3. Select **Input / Codecs** in the Simple Preferences window.

4. Select **All** in the **Show settings** area at the bottom of the window.

   ![VLC Simple Preferences window with Input / Codecs selected and All chosen](https://iptvfiesta.sx/api/help-center/media/2021-08-How-to-optimize-VLC-for-IPTV-2.jpg)

5. Select **Input / Codecs** in the left sidebar.

   ![VLC Advanced Preferences window with Input / Codecs selected in the sidebar](https://iptvfiesta.sx/api/help-center/media/2021-08-How-to-optimize-VLC-for-IPTV-3.jpg)

## Set the cache size

1. Under **Advanced** on the right side, change **File Caching (ms)** for a file on a local hard drive (a static M3U file), or **Network Caching (ms)** for a network share (a dynamic M3U URL).

   ![VLC Input / Codecs settings with the File caching and Network caching fields marked](https://iptvfiesta.sx/api/help-center/media/2021-08-How-to-optimize-VLC-for-IPTV-4.jpg)

The caching value is in milliseconds, so a value of 1000 buffers for 1 second. If you set the value too large, skipping to a new point causes a longer lag while the content is buffered again.

## Increase the cache for a network stream

Another temporary solution applies to a network URL or to streaming files such as TS and [M3U files](https://iptvfiesta.sx/help-center/article/what-is-m3u-list).

1. In VLC media player, select **Media** > **Open Network Stream**.

2. Enter the URL you want to play.

3. Select **Show More Options**.

   ![VLC Open Media dialog with Show more options selected and the Caching field](https://iptvfiesta.sx/api/help-center/media/2021-08-How-to-optimize-VLC-for-IPTV-5.jpg)

4. Based on your internet speed, increase the value in the **Caching** field.
