Language: EN

como-usar-vlc-en-raspberry-pi

How to Install VLC on Raspberry Pi

VLC is a free and open-source media player, known as VLC Media Player and developed by the VideoLAN project.

VLC supports a wide variety of audio and video formats, which has made it one of the most well-known tools for playing almost any type of multimedia file.

Additionally, VLC offers many additional features such as the ability to stream live content, convert files between different formats, and adjust playback settings according to user needs.

Its interface is quite simple and it is widely used on different operating systems, such as Windows, macOS, Linux, iOS, and Android.

vlc-screenshot

Some of the most important features of VLC are:

  • Format Compatibility: Plays an extensive range of video and audio formats, including MP4, AVI, MKV, MP3, FLAC, and many more.
  • Transcoding: Allows converting files from one format to another.
  • Network Playback: Supports streaming multimedia content over local networks or the Internet.
  • Customizable Interface: Offers a graphical interface that can be adjusted to your preferences.
  • Subtitles and Audio: Supports multiple subtitle and audio tracks, making it easy to play content in different languages.

For more information on advanced settings and VLC plugins, check the official Kodi documentation.

Installing VLC on Raspberry Pi

To install VLC on our Raspberry Pi, we first ensure that the system is up to date before starting the installation. For that, we run these commands:

sudo apt update
sudo apt upgrade

Then, to install VLC, we use the following command in the terminal:

sudo apt install vlc

This command will download and install VLC along with all the necessary dependencies.

Once the installation is complete, we verify that VLC is correctly installed by running:

vlc

This should open the VLC graphical interface on our Raspberry Pi.

Using VLC on Raspberry Pi

Playing Local Files

To play local files with VLC:

  • First, we open VLC from the application menu or by using the command vlc.
  • In the VLC interface, we select Media at the top left and then Open File….
  • Finally, we navigate to the video or audio file we wish to play and click Open.

Playing from a URL

VLC can also play multimedia content streamed from a URL. To do this:

  • First, we start VLC.
  • Then, we go to Media and select Open Network…
  • Finally, we enter the URL of the content we want to play and click Play.

Adjusting Subtitles and Audio Tracks

To adjust subtitles and audio tracks during playback:

  • Subtitles: In the menu bar, select Subtitles and choose the desired subtitle track or load an external subtitle file.
  • Audio Tracks: Go to Audio in the menu bar and select the audio track you want to play.

Web Interface

In addition to its traditional user interface, VLC also has a web interface that you can use to control the playback of your multimedia content remotely. This can be especially useful if you need to access VLC from another device, such as a computer or a mobile device.

To use the VLC web interface, you first need to ensure that VLC is running on your Raspberry Pi. In “Preferences / (select All) / Main Interfaces” we enable “http”. Now we set the password in the “Lua” section.

Then, open a web browser on another device and type the IP address of your Raspberry Pi followed by “:8080”. For example, if your IP address is “192.168.1.100”, you would type “192.168.1.100:8080” in your browser’s address bar.

Control VLC from the Command Line

VLC can also be controlled from the command line, which is useful for automation or integration with other scripts. Some basic commands include:

CommandDescription
vlc [file]Plays the specified file.
vlc -I rcStarts VLC in console mode and allows control via commands.
vlc -fPlays the file in full screen.
vlc -LShows the file list in the VLC library.
vlc -pDisplays a preview of the file in a pop-up window.
vlc -sSets the file to run in no-GUI (graphical user interface) mode.

These are just a few examples of the commands you can use to control VLC from the console. To see a complete list of options, you can type the command “vlc —help” in the Terminal.