Ugreen NAS 影音中心
Q: 如何在电视上观看 NAS 里的影片?
A: 最简单方式是使用 DLNA (Digital Living Network Alliance,数字生活网络联盟)。在 NAS 上开启 DLNA 功能后,支持 DLNA 的设备(如电视、电脑、电视盒等)在局域网内可访问NAS设备上的媒体文件(如音乐、视频、图片等文件数据)。
DLNA 服务不仅支持多种常见的媒体格式,还具有自动发现功能,确保您可以在多个设备上同时访问并控制播放的媒体文件。
注意: DLNA服务启用后,所添加的【媒体资源】将被局域网内其它设备匿名访问,为了您的隐私安全,请谨慎添加个人文件夹或敏感资源。
Ugreen NAS 开启 DLNA 服务
- 在应用中心安装 DLNA
- 打开 DLNA 应用,开启 DLNA 服务,并添加媒体资源路径。
电视端会自动发现 NAS 设备,选择对应的 NAS 设备名称,即可浏览并播放 NAS 上的媒体文件。
限制:
- DLNA 仅支持局域网内访问,无法通过互联网访问 NAS 上的媒体文件。
- 安全性较低,所有同一局域网内的设备均可访问 DLNA 服务,建议仅添加公共媒体资源文件夹。
Plex Server
Log in to Plex: https://app.plex.tv/desktop/#!/
Q: What is Plex? What does Plex do?
A: Plex is a media server platform that allows you to access and stream your personal media collection (movies, TV shows, music, photos, etc.) across various devices at home (using wifi). Remote access outside your home network requires a Plex Pass subscription.
为了观看 NAS 里存储的影片,第二种解决方案为 Docker + Plex Server。主要步骤如下:
- 在 NAS 安装 Docker
- 安装 Plex 镜像
- 配置 Plex 服务器
- 访问 Plex 服务器
使用 Docker 面板安装镜像容器前有哪些准备事项?
在使用 UGOS Pro 的 Docker 面板安装容器之前,需要提前创建容器所需的存储空间文件夹和子文件夹,以确保容器能够顺利运行并且数据能够正确存储和管理。
文件夹目录路径建议选择存放在 /共享文件夹/docker 目录内。
Ref: 绿联知识中心 Docker
详细步骤
-
安装 Docker
在应用中心搜索并安装 Docker 应用。Docker is a platform that enables you to run applications in isolated containers.
-
安装 Plex 镜像
在 Docker 应用中,点击 “镜像” 选项卡,搜索
linuxserver/plex镜像并安装。Click “Download” to fetch the Plex image. This image will be used to create a container.
-
Create a Folder Structure for Plex Data
Before creating the Plex container, create a folder structure to store Plex data. This structure will help organize your media files and Plex configuration.
Example folder structure:
/共享文件夹/docker/plex/ ├── config/ # Plex configuration files ├── movies/ # Movie files ├── tvshows/ # TV show files └── music/ # Music files-
Be sure to separate movie and television content into separate main directories. Otherwise Plex may have difficulty correctly identifying your media. Plex uses specific naming conventions to identify and organize media files, so maintaining a clear folder structure is crucial.
-
You can have subfolders within these main directories. E.g., if you chose to categorize your children’s content separate from more “adult” content (e.g.
/TV Shows/Kids/ShowNamevs/TV Shows/Regular/ShowName), then you would specify/TV Shows/Kidsas the source location for a “kids” TV library.
-
-
Set Storage Volumes
When creating the Plex container, set the storage volumes to map the folders created in the previous step to the appropriate paths inside the container.
Example volume mappings:
/config->/共享文件夹/docker/plex/config/movies->/共享文件夹/docker/plex/movies/tvshows->/共享文件夹/docker/plex/tvshows/music->/共享文件夹/docker/plex/music
-
Create Plex Container
在镜像下载完成后,我们开始创建容器,在【镜像 > 本地镜像】的列表中选择刚下载的 linuxserver/plex 镜像。点击 “+” 或双击镜像文件创建容器,配置容器参数。
基础信息配置
- 在容器创建向导的“基础信息”部分,您可以自定义容器的名称,便于后续识别。
- 启用【自动重启】选项,以确保容器在系统重启或故障时能够自动恢复运行。
- 勾选启用【显卡能力】。
存储空间配置
- 点击
/config的自动分配按钮,选择要存放 plex 配置文件 config 的文件夹,类型选择读写。建议选择 NAS 中/共享文件夹/docker目录下的路径,类型选择“读写”,以防止容器在运行期间因权限不足出现问题。 - 点击添加,选择存放
transcode(转码)的文件夹路径, 装载路径/transcode,类型选择读写。 - 点击添加,选择存放影片资源的文件夹路径,装载路径
/video,类型选择读写。
网络配置
设置容器的网络模式和端口映射。推荐使用
host网络模式。确保配置信息正确后,点击 “完成” 创建容器。
-
访问容器 Web UI
容器启动后,可以通过浏览器访问容器的Web UI,访问URL
http://<NAS_IP>:32400/web,将 NAS 的 IP 替换成您的 NAS IP 地址。我的地址:
http://10.0.0.7:32400/web进入 plex 页面后,进行初始化配置,Plex 页面需要时间加载,才会进入媒体库配置。
- 第一次载入可使用 Google 账号登录。
- 服务器设置,全部选择下一步。在资料媒体库页面,选择媒体类型(电影、电视剧、音乐等),并添加对应的媒体文件夹路径 on your NAS(如
/videos)。
-
Set up TV Plex Client
在支持 Plex 的电视或设备上安装 Plex 客户端应用, 并登录您的 Plex 账号。 连接到您的 Plex 服务器,浏览并播放存储在 NAS 上的媒体文件。
支持配对码登录。Enter the Plex Claim Token from https://www.plex.tv/link/ to link your server to your account.
Optional Settings:
Network and Access Settings:
Configure network settings to allow remote access if desired. Set appropriate access permissions for different user profiles.
关于 Docker
-
不推荐 SSH 终端操作 Docker。
用户可以使用图形界面进行操作,以避免权限问题和数据不一致的风险。
-
目录挂载与存储位置迁移:请谨慎通过文件管理器修改共享文件夹存储位置。当容器所挂载的文件夹发生存储位置的变化,将导致该容器运行异常。
-
镜像拉取:中国大陆地区的用户可能遇到镜像拉取失败或速度缓慢的问题。可以在镜像配置页面设置加速器或代理以解决此问题。
-
硬盘休眠:使用 Docker 可能影响硬盘的休眠状态,具体取决于您所运行的容器及其活动情况。
基本操作
Q: 如何修改语言?
A: 登录 Plex 服务器,点击右上角的扳手工具 ,选择【Account】->【语言】,选择所需语言并保存更改。
Q: How to add local subtitles to videos in Plex? 添加字幕
A: You can enable Local Media Assets and then Plex will scan for subtitle files in the same directory as your media files. You may need to refresh metadata.
Supported subtitle file formats: .srt, .smi, .ass, .ssa, .vtt.
For the video MovieName (Release Date).mp4, its subtitle files need to be named as follows:
MovieName (Release Date).[Language_Code].srtorMovies/MovieName (Release Date).[Language_Code].srtMovies/MovieName (Release Date).[Language_Code].forced.srt
Need to include the video name file, plus a language code before the file extension. Don’t need the square brackets.
Where [Language_Code] is defined by the ISO-639-1 (2-letter) or ISO-639-2/B (3-letter) standard.
- English:
enoreng - Chinese (Simplified):
zhorzho
Examples:
-
Movie file structure with subtitles:
Movies/ ├── /Avatar (2009) │ ├── Avatar (2009).mkv │ ├── poster.jpg │ ├── Avatar (2009).en.srt │ └── Avatar (2009).fr.srt -
TV Episodes file structure with subtitles:
TV Shows/ ├── Absolutely Fabulous/ │ ├── Season 02/ │ ├── Absolutely Fabulous - s02e03.avi │ ├── Absolutely Fabulous - s02e03.eng.smi │ └── Absolutely Fabulous - s02e03.en.forced.smiAs of server version 1.41.0 using the Plex Series or Plex Movie agents you can put external subtitles in a subtitle directory.
Must in the same parent directory of the video files.
The folder can be named “subs” or “subtitles”; case insensitive.TV Shows/ ├── Absolutely Fabulous/ │ ├── Season 02/ │ ├── Absolutely Fabulous - s02e03.avi │ ├── subtitles/ │ ├── Absolutely Fabulous - s02e03.eng.smi │ └── Absolutely Fabulous - s02e03.en.forced.smi
Without language code, Plex apps will show “Unknown” instead of the subtitle language and the automatic process which determines if the subtitle should be shown or not will not work as intended.
ref:
- Plex Quick Start: Adding Local Subtitles to Your Media
- Plex Guide Collection: Using Subtitles
- Wiki: ISO Language Code
Q: What does Local Media Assets do? ↩
A: You might have your own image files for movie posters & backgrounds, subtitles, your own movie “extras”, etc. To use these, ensure they are named and organized, and that the Local Media Assets source is enabled and ordered correctly.
FAQ
Q: Why Plex is not adding certain movies or TV shows to my library? ↩︎
A: The biggest reason by far for items to not be found during a library scan is due to naming.
- The movie scanners will skip content that is named like a television episode (including date-based episodes)
- The TV scanners will skip content that is not named like a television episode
Q: What is the convention for naming my media files? ↩︎
A: For TV Shows,
- it is recommended to always include the year alongside the series title in folder and file names, e.g.
/Band of Brothers (2001)/Season 01/Band of Brothers (2001) - s01e01 - Currahee.mkv - Be sure to use the English word “Season” when creating season directories, even if your content is in another language.
- Many of our naming instructions mention having Optional_Info at the end of the file name and put it in brackets
[], e.g./Band of Brothers (2001) - s01e01 - Currahee [1080p Bluray].mkv, whatever you put in the brackets will be ignored by Plex during matching.
The naming is more relaxed for Movies.
Example of how to organize TV Shows:
/TV Shows
/Doctor Who (1963)
/Season 01
Doctor Who (1963) - s01e01 - An Unearthly Child (1).mp4
Doctor Who (1963) - s01e02 - The Cave of Skulls (2).mp4
/From the Earth to the Moon (1998)
/Season 01
From the Earth to the Moon (1998) - s01e01.mp4
From the Earth to the Moon (1998) - s01e02.mp4
/Grey's Anatomy (2005)
/Season 00
Grey's Anatomy (2005) - s00e01 - Straight to the Heart.mkv
/Season 01
Grey's Anatomy (2005) - s01e01 - pt1.avi
Grey's Anatomy (2005) - s01e01 - pt2.avi
Grey's Anatomy (2005) - s01e02 - The First Cut is the Deepest.avi
Grey's Anatomy (2005) - s01e03.mp4
/Season 02
Grey's Anatomy (2005) - s02e01-e03.avi
Grey's Anatomy (2005) - s02e04.m4v
/The Colbert Report (2005)
/Season 08
The Colbert Report (2005) - 2011-11-15 - Elijah Wood.avi
/The Office (UK) (2001) {tmdb-2996}
/Season 01
The Office (UK) - s01e01 - Downsize.mp4
/ The Office (US) (2005) {tvdb-73244}
/Season 01
The Office (US) - s01e01 - Pilot.mkv
Setting Up Remote Access
Plex Media Server allows you to access your media library from outside your local network.
You will need a Remote Watch Pass subscription (as of April 29, 2025).
Different plans for Plex services: Plex: Free vs Paid
Manage Plex Pass Subscriptions: https://account.plex.tv/payments
- Remote Watch Pass: 2 USD/month
Accessing a Server through Relay
Q: What is Relay?
A: Your Plex Media Server establishes a secure connection to one of our Relay servers. Your app then also connects securely to the same Relay server and accesses the stream from your Plex Media Server.
ref:
Match Metadata
- Songs: Need to click singer name and then go to the song, click the three dots on the right, then “Match” Metadata.
- Movies/TV Shows: Click the three dots on the right of the title, then choose “Match” Metadata.
Android TV 端
使用场景更广泛适用的是安装客户端,自带「影视中心」app 是最方便。Plex 属于第三方播放器,自定义操作更丰富。客户端的问题是,部分电视品牌不支持直接安装,比如 Samsung TV。
U 盘安装
- 去官网 https://nas.ugreen.com/pages/app-download 找到 Android TV 平台的 apk 软件包并下载,接着将软件包保存到 U 盘。
- 将 U 盘插到电视上,电视会自动弹出提示界面,直接打开 U 盘,然后找到对应的 apk 软件包,点击安装就行,风险警告直接忽略就行。
Issue: You cannot install the UGREEN Android TV client directly on a Samsung TV because Samsung uses its own Tizen OS, not Android. You need a tpk package to install apps on Samsung Smart TVs.
Workaround:
- Use DLNA or Plex instead.
-
电视盒子
电视盒子可支持安装各种应用程序,如视频播放器、游戏等,扩展电视功能。打破智能电视原有系统的限制,比如 Tizen 不支持 安卓 app。
How to change language on Samsung TV? ↩︎
Enable Unknown Sources on Samsung TV ↩︎
Usually, third-party applications are regarded as unknown sources by the operating system of Smart TV. But you can turn on the Unknown Sources feature on the Samsung Smart TV. This feature allows you to install the apps without limits.
Go to Settings > System > Add-ons > turn on the switch next to Unknown Sources
Enable the Developer Mode ↩︎
- Settings > Smart Hub
-
Navigate to the Apps section, click on it, and then you will be asked to enter a pin.
Here you can enter 12345 as the pin, which is the default code for all Samsung Smart TVs. The developer mode configuration popup appears.
- Switch “Developer mode” to “On”.
-
Reboot your Smart TV.
You can turn off the TV by holding the power button for 2 sec, then restart it.
When you open the “Apps” panel after the reboot, “Developer mode” is marked at the top of the screen.

「影视中心」基本操作
在管理员账号下,打开「影视中心」App,点击右上角 图标,进入设置页面。
添加媒体库
左侧服务管理菜单选择【媒体库】,可进行媒体库的添加与管理。
- 点击【添加媒体库】,进入新增媒体库弹窗。
- 对于已有的媒体库,可以点击右侧的
...图标,选择进行管理。
媒体库可以编辑以下选项:
- 媒体库名称:输入您对该媒体库的命名,最长20个字符。
- 媒体库语言:选择媒体库的信息语言。
- 媒体文件夹:选择媒体库关联的 NAS 媒体文件夹,支持添加多个文件夹。
-
元数据刮削:绿联云支持 TMDB 和智能识别,勾选以启用刮削器,长按拖拽可以调整优先级,排序靠前的刮削源优先使用,靠前的源未刮削到的字段则启用靠后的刮削源进行刮削补充。
默认 TMDB 及智能识别都启用,TMDB 排序在前。
扫描媒体库
用户将视频内容存放到媒体库关联文件夹后,正常情况下,影视中心服务会监听对应文件夹,发起入库动作,但如果您需要更快入库,可以选择手动扫描媒体库,您可操作扫描全部已创建的媒体库或单独的媒体库(入口不同)
- 在媒体库管理界面选择 “扫描全部媒体库” 或单击右键呼出或选择单个媒体库右上角的
...按钮。 -
点击扫描媒体库时,弹出浮窗,选择扫描模式:
- 扫描新添加和修改的:仅针对媒体文件夹中的新内容做扫描和刮削。
- 扫描全部并补充缺失:遍历媒体库中所有视频文件,对缺失的元数据字段做刮削,获取到则填充上。
- 完整覆盖:遍历媒体库中所有视频文件,刮削并替换所有视频信息字段。
ref: 绿联 NAS 影视中心媒体库管理
添加外挂字幕
字幕查找网站:
- Zimuku: 以中文字幕为主,适合查找中文或中英双语字幕。✅
-
OpenSubtitles org: 最大的字幕资源库之一,支持多语言字幕的搜索和下载,还提供 API 服务。
Use OpenSubtitles com if .org does not work.
- Subscene: 提供多语种字幕。
播放器如何自动识别本地字幕
- 字幕文件与视频文件需要位于同一文件夹中
- 命名为与视频文件匹配的名称
- 视频文件名:
Interlaced.Scenes.S01E06.2024.mkv-
S01E06表示第一季第六集,此处非常严格,必须包含SxxExx格式。EPx不被识别。 -
2024可以放在紧跟视频名后面,如Interlaced.Scenes.2024.S01E06.mkv
-
- 直接命名为视频名:
视频文件名.srt - 可选择添加语言代码:
视频文件名.语言代码.srt
- 视频文件名:
TV Shows/Interlaced Scenes (2024)/
├—— Interlaced.Scenes.S01E06.2024.mkv
├—— Interlaced.Scenes.S01E06.2024.srt
├—— Interlaced.Scenes.S01E06.2024.zh-cn.srt
- 可手动添加字幕,但是播放器无法保留上次播放字幕文件的记忆,每次播放都需要重新选择。比较麻烦。
- 更加容易的方式:
- 将字幕文件重命名为与视频文件相同的名称并置于同一文件夹内,播放器会自动识别加载字幕。
- 用视频处理软件,如 mkvtoolnix,内嵌字幕到视频文件中。→ This is called “softsubbing.” ↩︎
- use online tool to burn subtitles into video files → This is called “hardsubbing.” 这种方式不是很灵活,相当于永久添加字幕,没办法选择不同语言或者关闭字幕。
- 影视中心播放时,可能需要一段时间加载,等二三十秒左右,字幕才会显示出来。
AI prompts for subtitle management:
I need to rename and relocate my subtitle files so that my video player can automatically detect them.
Requirement:
- put
.srtin the same directory as .mp4- for
video.mp4, the subtitle should be named asvideo.en.srtInstructions:
- TV shows path:
~/Downloads/tmp/Prison.Break.S01.1080p.BluRay.x265-RARBG- My subtitle files are in
~/Downloads/tmp/Prison.Break.S01.1080p.BluRay.x265-RARBGSubs/episode_name/name.srtyou should match folder nameSubs/episode_name/and use the first.srtfiles in the folder, rename to match video, then move to the target directory.
.py scirpt is in ./script/match_subtitles.py
python3 script/match_subtitles.py
--video-dir "/path/to/show/season"
--subs-dir "/path/to/show/season/Subs"
--apply
Example;
python3 "/Users/menghan/Documents/PhD Courses/Econ-Study/script/match_subtitles.py" --video-dir "/Users/menghan/Downloads/tmp/Prison.Break.S01.1080p.BluRay.x265-RARBG" --subs-dir "/Users/menghan/Downloads/tmp/Prison.Break.S01.1080p.BluRay.x265-RARBG/Subs" --apply
如果字幕不是很同步,可以调整字幕的时间轴。
- 1s = 1000 ms
ref:
Ref: