# 9.4.视频播放器

本节介绍了 FreeBSD Ports 中的一些可用于视频播放的软件。

**表 4. 视频播放器包**

| 名称          | 许可证     | 包                                                                               | 工具包 |
| ----------- | ------- | ------------------------------------------------------------------------------- | --- |
| MPlayer     | GPL 2.0 | [multimedia/mplayer](https://cgit.freebsd.org/ports/tree/multimedia/mplayer/)   | CLI |
| SMPlayer    | GPL 2.0 | [multimedia/smplayer](https://cgit.freebsd.org/ports/tree/multimedia/smplayer/) | Qt  |
| VLC 媒体播放器   | GPL 2.0 | [multimedia/vlc](https://cgit.freebsd.org/ports/tree/multimedia/vlc/)           | Qt  |
| Kodi (XBMC) | GPL 2.0 | [multimedia/kodi](https://cgit.freebsd.org/ports/tree/multimedia/kodi/)         | X11 |

## 9.4.1. MPlayer

MPlayer 是一款多媒体播放器和编码器套件，支持多个平台并可通过命令行操作。它支持众多不同的文件格式和编解码器，包括流行的 DivX、XviD、H.264 流媒体，以及 DVD 和 SVCD，还支持许多常见的音频编解码器。

要安装 MPlayer，请执行：

```sh
# pkg install mplayer
```

有关 MPlayer 工作示例，请参见 [mplayer(1)](https://man.freebsd.org/cgi/man.cgi?query=mplayer\&sektion=1\&format=html)。

## 9.4.2. SMPlayer

SMPlayer 旨在成为 MPlayer 的完整前端，从基本功能（如播放视频、DVD 和 VCD）到更高级的功能（如支持 MPlayer 滤镜等）。

要安装 SMPlayer，请执行：

```sh
# pkg install smplayer
```

## 9.4.3. VLC 媒体播放器

VLC 媒体播放器是一款高度可移植的多媒体播放器，支持多种音频和视频格式（如 MPEG-1、MPEG-2、MPEG-4、DivX、mp3、ogg 等），以及 DVD、VCD 和多种流媒体协议。它还可以用作服务器，通过高带宽网络在 IPv4 或 IPv6 上进行单播或多播流媒体传输。VLC 还具备实时转码功能，可以进行流媒体传输或保存到磁盘。

要安装 VLC，请执行：

```sh
# pkg install vlc
```

## 9.4.4. Kodi (XBMC)

Kodi（前身为 XBMC）是一个免费的开源跨平台媒体播放器和娱乐中心。它允许用户播放和查看来自本地和网络存储媒体以及互联网的多数视频、音乐、播客和其他数字媒体文件。

要安装 Kodi，请执行：

```sh
# pkg install kodi
```


---

# Agent Instructions: 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://handbook.bsdcn.org/di-9-zhang-duo-mei-ti/9.4.-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.
