> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/ask/flat/chapter-11-multimedia-and-external-devices/di-11.6-jie-shi-pin-bo-fang-qi.md).

# 11.6 Video Players

The main video players on FreeBSD include VLC, SMPlayer, and Kodi, all of which support pkg installation. This section also includes a configuration method for playing video directly in the TTY using mpv.

## VLC

### Installing VLC

* Install using pkg (binary package manager):

```sh
# pkg install vlc
```

* Or compile and install using Ports (source code package manager):

```sh
# cd /usr/ports/multimedia/vlc/
# make install clean
```

### Playing Video with VLC

Based on testing, common video formats can all play normally in VLC.

![VLC Player](/files/sLeCUFFizeE9hLogRdGN)

![VLC Video Playback](/files/R4x6nis5SeoKlOzpekzK)

## SMPlayer

SMPlayer is a Qt graphical frontend for MPlayer (a command-line video player) and mpv.

### Installing SMPlayer

* Install using the pkg binary package manager:

```sh
# pkg install smplayer
```

* Or compile and install using Ports source code:

```sh
# cd /usr/ports/multimedia/smplayer/
# make install clean
```

### Playing Video with SMPlayer

Based on testing, common video formats can all play normally in SMPlayer.

![SMPlayer](/files/cZMrB5oqzDfezpkQCY6e)

![SMPlayer](/files/PxWLCUFS1JqjJIbZTi8S)

![SMPlayer](/files/l1auoAxwUPZ9bQlxo96h)

## Kodi

Kodi is an open-source media center software, formerly known as XBMC (Xbox Media Center).

### Installing Kodi

* Install using the pkg binary package manager:

```sh
# pkg install kodi
```

* Or compile and install using Ports source code:

```sh
# cd /usr/ports/multimedia/kodi/
# make install clean
```

### Setting Up a Chinese Environment for Kodi

First, open the `interface` settings option in the Kodi main interface:

![Kodi Settings Interface](/files/LA5yUwtIjC6LceGdyvLN)

Click the `Skin` option, then click the settings level button at the bottom left of the interface, changing the current `Basic` level to `Expert` or `Standard` level, otherwise you will not be able to see advanced settings options such as `Fonts`. Then set `Fonts` to `Arial based`, otherwise Chinese characters may display as garbled text.

![Kodi Font Settings Interface](/files/hGULIKGuYFvPBfZ4MDqZ)

After returning to the previous menu, select `Regional` → `Language` → `Chinese (Simplified)` in sequence to complete the language switch.

![Kodi Language Settings Interface](/files/QcWkNyRwKoP4JZTajDcZ)

The effect after completing the Chinese interface setup is as follows:

![Kodi Chinese Interface](/files/tLiXRvZpJvDnCmllKNEH)

### Playing Video with Kodi

Based on testing, common video formats can all play normally in the Kodi media center.

![Kodi Video Playback Test](/files/gEzf6cLYLDHZWut48oxT)

## Appendix: Playing Video Directly in TTY (mpv)

You can directly use the mpv command to play video files in a Linux/FreeBSD TTY (Teletypewriter, i.e., pure text terminal) environment.

* Install using pkg (binary package manager):

```sh
# pkg install mpv
```

* You can also compile and install via Ports source code:

```sh
# cd /usr/ports/multimedia/mpv/
# make install clean
```

After switching to the TTY terminal environment, use the mpv player to play the video file `1.mp4`:

```sh
$ mpv 1.mp4
```

> **Note**
>
> This functionality depends on the DRM (Direct Rendering Manager) graphics subsystem and may not work properly in virtual machine environments.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://book.bsdcn.org/ask/flat/chapter-11-multimedia-and-external-devices/di-11.6-jie-shi-pin-bo-fang-qi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
