mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-23 21:20:42 +08:00
translated
This commit is contained in:
parent
3ab4fc9d69
commit
d143f7ce65
@ -1,233 +0,0 @@
|
||||
[#]: subject: "How to Use Subtitles with VLC"
|
||||
[#]: via: "https://itsfoss.com/vlc-use-subtitles/"
|
||||
[#]: author: "Sagar Sharma https://itsfoss.com/author/sagar/"
|
||||
[#]: collector: "lujun9972"
|
||||
[#]: translator: "geekpi"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
||||
How to Use Subtitles with VLC
|
||||
======
|
||||
|
||||
I'm a huge fan of anime and if you want to watch the latest episodes, then you have to watch in Japanese audio only making subtitles essential for non-japanese audiences.
|
||||
|
||||
Thankfully, my favorite video player VLC supports subtitles pretty well. No wonder it is one of the [best video players][1] of all time.
|
||||
|
||||
VLC can actually do a lot more than just playing the provided subtitles.
|
||||
|
||||
In this guide, I will walk you through the following:
|
||||
|
||||
* How to use available subtitles (if there are any)
|
||||
* How to use downloaded subtitles
|
||||
* How to download subtitles automatically (using the vlsub extension)
|
||||
* How to synchronize subtitles with video
|
||||
* What are the supported subtitle formats with VLC
|
||||
|
||||
|
||||
|
||||
So let's start with the first one.
|
||||
|
||||
### How to enable subtitles in VLC
|
||||
|
||||
Some videos come with companion subtitle files. If the subtitles are in the same folder as the video file, you can enable subtitles easily.
|
||||
|
||||
While there are several ways to enable subtitles, I will show you two effective ways to do so.
|
||||
|
||||
#### By pressing `V` (easiest way)
|
||||
|
||||
If you have one or more subtitles for the currently playing video, then you can press the `V` button and it will change the subtitles between the available options:
|
||||
|
||||
0:00
|
||||
|
||||
/0:04
|
||||
|
||||
1×
|
||||
|
||||
And as you can see when I pressed the `V`, it roamed through multiple subtitles and even had the option to disable the subtitles completely.
|
||||
|
||||
#### Using top menubar or right click context menu
|
||||
|
||||
While pressing the `V` key is the easiest way to enable subtitles but it won't work best if you have multiple subtitle files (perhaps in multiple languages) and you have to select one of them.
|
||||
|
||||
Suppose that the subtitle which you're looking for is in the last position then you have to press the `V` key several times and if you missed it, repeat the process again.
|
||||
|
||||
So in that case, choosing a subtitle track from the top menu is an easy and convenient way.
|
||||
|
||||
To use this method, you have to follow two simple steps:
|
||||
|
||||
* Click on `Subtitle` menu, located in the top menu bar
|
||||
* Choose `Sub Track` and then, select the preferred subtitle track
|
||||
|
||||
|
||||
|
||||
![][2]
|
||||
|
||||
You can also do it by pressing the right-click on the playing video and choosing the subtitles option.
|
||||
|
||||
### How to use downloaded subtitles in VLC
|
||||
|
||||
If you have downloaded subtitles from the web and have no idea how you can use them in VLC, then this section will solve the problem.
|
||||
|
||||
To use the downloaded subtitle, you'll have to import it to VLC. And can easily be done by following the given simple steps:
|
||||
|
||||
* First, click on the `Subtitle` from the top menubar
|
||||
* Choose the first `Add Subtitle File` option and it will open the file manager
|
||||
* From here, navigate to where the subtitle file is located and select it
|
||||
|
||||
|
||||
|
||||
![][3]
|
||||
|
||||
Once done, added subtitles can be accessed through the `Subtitle` menu located in the top menubar:
|
||||
|
||||
![][4]
|
||||
|
||||
💡
|
||||
|
||||
If you are saving the video for future use, I advise copying the subtitle file in the same folder as the video file itself. Even better would to be to rename the file the same the video file. So if video file is my-xyz.mp4, the subtitle file should be my-xyz.srt. This way, either the subtitle plays automatically or it will be recognized when you press the v key.
|
||||
|
||||
### How to download subtitles automatically in VLC (for Linux users)
|
||||
|
||||
Did you know that VLC has a plugin called VLsub that can be used to download subtitles from the web and accessed them directly in VLC?
|
||||
|
||||
And if you're a Linux user, then follow the given instructions to add it in VLC.
|
||||
|
||||
First, download the zip file [using the wget command][5]:
|
||||
|
||||
```
|
||||
|
||||
wget https://github.com/exebetche/vlsub/archive/master.zip
|
||||
|
||||
```
|
||||
|
||||
Next, [unzip the file using the unzip command][6] as shown:
|
||||
|
||||
```
|
||||
|
||||
unzip master.zip
|
||||
|
||||
```
|
||||
|
||||
After that, you'd need to [create a new directory][7]:
|
||||
|
||||
```
|
||||
|
||||
mkdir -p ~/.local/share/vlc/lua/extensions
|
||||
|
||||
```
|
||||
|
||||
And finally, move files to the created directory using [the mv command][8] as shown:
|
||||
|
||||
```
|
||||
|
||||
mv ~/vlsub-master/vlsub.lua ~/.local/share/vlc/lua/extensions
|
||||
|
||||
```
|
||||
|
||||
Now, open the VLC player, and under the `View` menu, you'll find `VLsub`:
|
||||
|
||||
![][9]
|
||||
|
||||
To download subtitles using VLsub, first, enter the name of the movie with the year to have better results, and hit `Search by name` button, select the subtitle file from the results, and click on the `Download selection` button as shown:
|
||||
|
||||
![][10]
|
||||
|
||||
That's it!
|
||||
|
||||
To learn more about [how to use the VLsub extension][11], refer to our detailed guide on that topic:
|
||||
|
||||
![][12]
|
||||
|
||||
### How to synchronize subtitles with the movie in VLC
|
||||
|
||||
Sometimes the downloaded subtitles may be a little behind or forward to what's going on in the movie which can be frustrating!
|
||||
|
||||
Worry not! VLC has a solution for this problem too!
|
||||
|
||||
In VLC, you can forward or backward subtitles by pressing `G` and `H` keys.
|
||||
|
||||
* The `G` key will forward the subtitle by 50 milliseconds
|
||||
* The `H` key will backward the subtitle by 50 milliseconds
|
||||
|
||||
|
||||
|
||||
While 50 milliseconds sounds too less, you will notice a significant difference within 2-3 keystrokes.
|
||||
|
||||
**You can also press and hold them if you're running too ahead or behind the actual scenes.**
|
||||
|
||||
Still confused? You may refer to our [detailed guide on how to synchronize subtitles in VLC][13]:
|
||||
|
||||
![][12]
|
||||
|
||||
### What are the supported subtitle formats in VLC?
|
||||
|
||||
If you wish to download subtitles from the internet, then, you must know the supported subtitle formats by VLC.
|
||||
|
||||
Here is the list of the supported subtitle formats by VLC:
|
||||
|
||||
* *.idx (VOBSub)
|
||||
* *.cvd (Chaoji VCD)
|
||||
* *.usf (Universal Subtitle)
|
||||
* *.ttxt (MPEG-4 Timed Text)
|
||||
* *.srt (SubRip)
|
||||
* *.ssa (Sub Station Alpha)
|
||||
* *.smi (SAMI)
|
||||
* *.aqt (AQTitle)
|
||||
* *.txt (ML2/VPlayer)
|
||||
* *.rt (RealText/Smil)
|
||||
* *.psb (PowerDivX)
|
||||
* *.pjs (Phoenix Subtitle)
|
||||
* *.dks (DKS)
|
||||
* *.mpl (ML2)
|
||||
* *.jss (JACOSub)
|
||||
* *.svcd (Super Video CD)
|
||||
* *.txt (ML2/VPlayer)
|
||||
|
||||
|
||||
|
||||
But the most popular subtle type is `*.srt` and often shipped by default when you download video files.
|
||||
|
||||
![][12]
|
||||
|
||||
### VLC can do a lot more than playing videos
|
||||
|
||||
Did you know that you can download YouTube videos using VLC? Well, it can do a lot more than just that.
|
||||
|
||||
And for that purpose, we made a detailed guide on [cool things you can do with VLC][14] player:
|
||||
|
||||
![][12]
|
||||
|
||||
And here's how you can get more out of VLC:
|
||||
|
||||
![][12]
|
||||
|
||||
I hope you will find this guide helpful.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://itsfoss.com/vlc-use-subtitles/
|
||||
|
||||
作者:[Sagar Sharma][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://itsfoss.com/author/sagar/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://itsfoss.com/video-players-linux/
|
||||
[2]: https://itsfoss.com/content/images/2023/08/Enable-subtitles-from-menu-bar-in-VLC.png
|
||||
[3]: https://itsfoss.com/content/images/2023/08/Use-subtitles-downloaded-from-web-in-VLC.png
|
||||
[4]: https://itsfoss.com/content/images/2023/08/Add-subtitles-in-VLC.png
|
||||
[5]: https://learnubuntu.com/install-wget/?ref=itsfoss.com
|
||||
[6]: https://learnubuntu.com/unzip-file/?ref=itsfoss.com
|
||||
[7]: https://linuxhandbook.com/mkdir-command/?ref=itsfoss.com
|
||||
[8]: https://linuxhandbook.com/mv-command/?ref=itsfoss.com
|
||||
[9]: https://itsfoss.com/content/images/2023/08/use-VLsub-extension-in-VLC-to-download-subtitles-easily.png
|
||||
[10]: https://itsfoss.com/content/images/2023/08/How-to-download-subtitles-in-VLC-using-VLsub-extension.png
|
||||
[11]: https://itsfoss.com/download-subtitles-automatically-vlc-media-player-ubuntu/
|
||||
[12]: https://itsfoss.com/content/images/size/w256h256/2022/12/android-chrome-192x192.png
|
||||
[13]: https://itsfoss.com/how-to-synchronize-subtitles-with-movie-quick-tip/
|
||||
[14]: https://itsfoss.com/simple-vlc-tips/
|
227
translated/tech/20230821 How to Use Subtitles with VLC.md
Normal file
227
translated/tech/20230821 How to Use Subtitles with VLC.md
Normal file
@ -0,0 +1,227 @@
|
||||
[#]: subject: "How to Use Subtitles with VLC"
|
||||
[#]: via: "https://itsfoss.com/vlc-use-subtitles/"
|
||||
[#]: author: "Sagar Sharma https://itsfoss.com/author/sagar/"
|
||||
[#]: collector: "lujun9972"
|
||||
[#]: translator: "geekpi"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
||||
如何通过 VLC 使用字幕
|
||||
======
|
||||
|
||||
我是动漫的超级粉丝,如果你想观看最新的剧集,那么你必须观看日语音频,只为非日语观众制作字幕。
|
||||
|
||||
值得庆幸的是,我最喜欢的视频播放器 VLC 很好地支持字幕。难怪它是有史以来[最好的视频播放器][1]之一。
|
||||
|
||||
VLC 实际上可以做的不仅仅是播放提供的字幕。
|
||||
|
||||
在本指南中,我将引导你完成以下内容:
|
||||
|
||||
* 如何使用可用的字幕(如果有的话)
|
||||
* 如何使用下载的字幕
|
||||
* 如何自动下载字幕(使用 vlsub 扩展)
|
||||
* 如何将字幕与视频同步
|
||||
* VLC 支持哪些字幕格式
|
||||
|
||||
|
||||
|
||||
那么让我们从第一个开始。
|
||||
|
||||
### 如何在 VLC 中启用字幕
|
||||
|
||||
有些视频附带字幕文件。如果字幕与视频文件位于同一文件夹中,你可以轻松启用字幕。
|
||||
|
||||
虽然启用字幕的方法有多种,但我将向你展示两种有效的方法。
|
||||
|
||||
#### 按 `V`(最简单的方法)
|
||||
|
||||
如果当前播放的视频有一个或多个字幕,那么你可以按“V”按钮,它将在可用选项之间更改字幕。
|
||||
|
||||
正如你所看到的,当我按下 `V` 时,它会在多个字幕之间漫游,甚至可以选择完全禁用字幕。
|
||||
|
||||
#### 使用顶部菜单栏或右键单击上下文菜单
|
||||
|
||||
虽然按 `V` 键是启用字幕的最简单方法,但如果你有多个字幕文件(可能有多种语言)并且必须选择其中之一,那么效果不佳。
|
||||
|
||||
假设你要查找的字幕位于最后一个位置,那么你必须按 `V` 键几次,如果你错过了,请再次重复该过程。
|
||||
|
||||
因此,在这种情况下,从顶部菜单中选择字幕轨道是一种简单方便的方法。
|
||||
|
||||
要使用此方法,你必须遵循两个简单的步骤:
|
||||
|
||||
* 单击顶部菜单栏中的`字幕`菜单
|
||||
* 选择`子轨道`,然后选择所需的字幕轨道
|
||||
|
||||
|
||||
|
||||
![][2]
|
||||
|
||||
你还可以通过右键单击正在播放的视频并选择字幕选项来完成此操作。
|
||||
|
||||
### 如何在 VLC 中使用下载的字幕
|
||||
|
||||
如果你从网上下载了字幕,但不知道如何在 VLC 中使用它们,那么本节将解决该问题。
|
||||
|
||||
要使用下载的字幕,你必须将其导入 VLC。并且可以通过遵循给定的简单步骤轻松完成:
|
||||
|
||||
* 首先,单击顶部菜单栏中的`字幕`
|
||||
* 选择第一个`添加字幕文件`选项,它将打开文件管理器
|
||||
* 从这里找到字幕文件所在的位置并选择它
|
||||
|
||||
|
||||
|
||||
![][3]
|
||||
|
||||
完成后,可以通过顶部菜单栏中的`字幕`菜单访问添加的字幕:
|
||||
|
||||
![][4]
|
||||
|
||||
💡
|
||||
|
||||
如果你要保存视频以供将来使用,我建议将字幕文件复制到与视频文件本身相同的文件夹中。更好的方法是将文件重命名为与视频文件相同的名称。因此,如果视频文件是 my-xyz.mp4,则字幕文件应该是 my-xyz.srt。这样,字幕要么自动播放,要么在你按 v 键时被识别。
|
||||
|
||||
### 如何在 VLC 中自动下载字幕(适用于 Linux 用户)
|
||||
|
||||
你是否知道 VLC 有一个名为 VLsub 的插件,可用于从网络下载字幕并直接在 VLC 中访问它们?
|
||||
|
||||
如果你是 Linux 用户,请按照给定的说明将其添加到 VLC 中。
|
||||
|
||||
首先,下载 zip 文件 [使用 wget 命令][5]:
|
||||
|
||||
````
|
||||
|
||||
wget https://github.com/exebetche/vlsub/archive/master.zip
|
||||
|
||||
````
|
||||
|
||||
接下来,如下所示[使用unzip命令解压文件][6]:
|
||||
|
||||
```
|
||||
|
||||
unzip master.zip
|
||||
|
||||
```
|
||||
|
||||
之后,你需要[创建一个新目录][7]:
|
||||
|
||||
````
|
||||
|
||||
mkdir -p ~/.local/share/vlc/lua/extensions
|
||||
|
||||
````
|
||||
|
||||
最后,使用 [mv 命令][8]将文件移动到创建的目录,如下所示:
|
||||
|
||||
````
|
||||
|
||||
mv ~/vlsub-master/vlsub.lua ~/.local/share/vlc/lua/extensions
|
||||
|
||||
````
|
||||
|
||||
现在,打开VLC播放器,在 `View` 菜单下,你将找到 `VLsub`:
|
||||
|
||||
![][9]
|
||||
|
||||
要使用 VLsub 下载字幕,首先,输入电影名称和年份以获得更好的结果,然后点击“按名称搜索”按钮,从结果中选择字幕文件,然后单击“下载选择”按钮,如图所示 :
|
||||
|
||||
![][10]
|
||||
|
||||
就是这样!
|
||||
|
||||
要了解有关[如何使用 VLsub 扩展][11]的更多信息,请参阅我们有关该主题的详细指南:
|
||||
|
||||
![][12]
|
||||
|
||||
### 如何在 VLC 中将字幕与电影同步
|
||||
|
||||
有时,下载的字幕可能会比电影中发生的事情稍微落后或提前,这可能会令人沮丧!
|
||||
|
||||
不用担心! VLC也有解决这个问题的方法!
|
||||
|
||||
在 VLC 中,你可以通过按 `G` 和 `H` 键前进或后退字幕。
|
||||
|
||||
* `G` 键将使字幕快进 50 毫秒
|
||||
* `H` 键将使字幕后退 50 毫秒
|
||||
|
||||
|
||||
|
||||
虽然 50 毫秒听起来太短,但你会在 2-3 次按键内注意到显着差异。
|
||||
|
||||
**如果你在实际场景中跑得太超前或落后,也可以按住它们。**
|
||||
|
||||
还感到困惑吗? 你可以参考我们的[如何在 VLC 中同步字幕的详细指南][13]:
|
||||
|
||||
![][12]
|
||||
|
||||
### VLC 支持哪些字幕格式?
|
||||
|
||||
如果你想从互联网上下载字幕,那么你必须了解 VLC 支持的字幕格式。
|
||||
|
||||
以下是 VLC 支持的字幕格式列表:
|
||||
|
||||
* *.idx (VOBSub)
|
||||
* *.cvd (Chaoji VCD)
|
||||
* *.usf (通用字幕)
|
||||
* *.ttxt (MPEG-4 定时文本)
|
||||
* *.srt (SubRip)
|
||||
* *.ssa (Sub Station Alpha)
|
||||
* *.smi (SAMI)
|
||||
* *.aqt (AQTitle)
|
||||
* *.txt (ML2/VPlayer)
|
||||
* *.rt (RealText/Smil)
|
||||
* *.psb (PowerDivX)
|
||||
* *.pjs (Phoenix Subtitle)
|
||||
* *.dks (DKS)
|
||||
* *.mpl (ML2)
|
||||
* *.jss (JACOSub)
|
||||
* *.svcd (Super Video CD)
|
||||
* *.txt (ML2/VPlayer)
|
||||
|
||||
|
||||
|
||||
但最流行的微妙类型是 `*.srt`,并且通常在你下载视频文件时默认提供。
|
||||
|
||||
![][12]
|
||||
|
||||
### VLC 的功能远不止播放视频
|
||||
|
||||
你知道可以使用 VLC 下载 YouTube 视频吗? 嗯,它可以做的远不止这些。
|
||||
|
||||
为此,我们制作了关于[你可以使用 VLC 播放器做的很酷的事情][14]的详细指南:
|
||||
|
||||
![][12]
|
||||
|
||||
以下是如何充分利用 VLC 的方法:
|
||||
|
||||
![][12]
|
||||
|
||||
我希望本指南对你有所帮助。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://itsfoss.com/vlc-use-subtitles/
|
||||
|
||||
作者:[Sagar Sharma][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[geekpi](https://github.com/geekpi)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://itsfoss.com/author/sagar/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://itsfoss.com/video-players-linux/
|
||||
[2]: https://itsfoss.com/content/images/2023/08/Enable-subtitles-from-menu-bar-in-VLC.png
|
||||
[3]: https://itsfoss.com/content/images/2023/08/Use-subtitles-downloaded-from-web-in-VLC.png
|
||||
[4]: https://itsfoss.com/content/images/2023/08/Add-subtitles-in-VLC.png
|
||||
[5]: https://learnubuntu.com/install-wget/?ref=itsfoss.com
|
||||
[6]: https://learnubuntu.com/unzip-file/?ref=itsfoss.com
|
||||
[7]: https://linuxhandbook.com/mkdir-command/?ref=itsfoss.com
|
||||
[8]: https://linuxhandbook.com/mv-command/?ref=itsfoss.com
|
||||
[9]: https://itsfoss.com/content/images/2023/08/use-VLsub-extension-in-VLC-to-download-subtitles-easily.png
|
||||
[10]: https://itsfoss.com/content/images/2023/08/How-to-download-subtitles-in-VLC-using-VLsub-extension.png
|
||||
[11]: https://itsfoss.com/download-subtitles-automatically-vlc-media-player-ubuntu/
|
||||
[12]: https://itsfoss.com/content/images/size/w256h256/2022/12/android-chrome-192x192.png
|
||||
[13]: https://itsfoss.com/how-to-synchronize-subtitles-with-movie-quick-tip/
|
||||
[14]: https://itsfoss.com/simple-vlc-tips/
|
Loading…
Reference in New Issue
Block a user