Merge pull request #30050 from geekpi/translating

translated
This commit is contained in:
geekpi 2023-09-06 08:36:09 +08:00 committed by GitHub
commit cd89e5fb7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 93 additions and 93 deletions

View File

@ -1,93 +0,0 @@
[#]: subject: "How to Check VLC Log Files"
[#]: via: "https://itsfoss.com/vlc-check-log/"
[#]: author: "Sagar Sharma https://itsfoss.com/author/sagar/"
[#]: collector: "lujun9972/lctt-scripts-1693450080"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
How to Check VLC Log Files
======
While watching your favorite videos on VLC, you might encounter issues related to codecs, timestamps, video playback, and a lot more.
But the good news is like you [check the logs of your firewall][1], you can do the same with VLC to trace the root cause of the error.
📋
Unlike Linux, VLC does not save logs automatically, and once closed, all the logs are removed automatically, so you have to save them manually.
So make sure you save or read the log file before closing the VLC player.
### Check and save VLC log files
While it sounds complex, this is the easiest method that not only allows you to save logs but also lets you read them without saving them to a file.
First, go to the `Tools` menu from the top menubar and select choose `Messages`, alternatively, you can also press `Ctrl + M` to save the same effect:
![][2]
And it will show logs related to the currently playing video file.
Here, you have two choices: You can either read logs only or you can save them as well.
Once you click on the `Messages`, you will notice a tab for the **Verbosity** so let's take a look at the effect of multiple verbosity options you have.
* `Errors`: This will only record the error messages only
* `Warnings`: It will conclude error and warning messages
* `Debug`: This level will include errors, warnings, and debug messages
After choosing the appropriate verbosity option, soon you will see logs related to the chosen option.
![][3]
As you can see when I choose the `debug` option, it also included the warning logs.
To save logs, hit the `Save as...` button and it will open the file manager, from there, choose where you can to save the file and give it the appropriate name:
![][4]
And now, you can open the log file using any text editor:
![][5]
From here, you can identify the culprit causing errors.
### More on VLC
Did you know that you can download YouTube videos using VLC or use YouTube links to stream videos without ads?
Well, VLC can do a lot more than that. And if you're interested, check out our detailed [guide on tips to make VLC awesome][6]:
![][7]
Want to [download VLC subtitles automatically][8]? Here's how you do it:
![][7]
I hope you will find this guide helpful.
--------------------------------------------------------------------------------
via: https://itsfoss.com/vlc-check-log/
作者:[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://learnubuntu.com/check-firewall-logs/
[2]: https://itsfoss.com/content/images/2023/08/Go-to-messages-to-read-logs-in-VLC.png
[3]: https://itsfoss.com/content/images/2023/08/Choose-verbosity-to-capture-different-types-of-logs-1.png
[4]: https://itsfoss.com/content/images/2023/08/Save-VLC-logs-1.png
[5]: https://itsfoss.com/content/images/2023/08/Open-VLC-log-file.png
[6]: https://itsfoss.com/simple-vlc-tips/
[7]: https://itsfoss.com/content/images/size/w256h256/2022/12/android-chrome-192x192.png
[8]: https://itsfoss.com/download-subtitles-automatically-vlc-media-player-ubuntu/

View File

@ -0,0 +1,93 @@
[#]: subject: "How to Check VLC Log Files"
[#]: via: "https://itsfoss.com/vlc-check-log/"
[#]: author: "Sagar Sharma https://itsfoss.com/author/sagar/"
[#]: collector: "lujun9972/lctt-scripts-1693450080"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
如何检查 VLC 日志文件
======
在 VLC 上观看你喜爱的视频时,你可能会遇到与编解码器、时间戳、视频播放等相关的问题。
但好消息是,就像[检查防火墙的日志][1]一样,你可以使用 VLC 执行相同的操作来跟踪错误的根本原因。
📋
与 Linux 不同VLC 不会自动保存日志,一旦关闭,所有日志都会自动删除,因此你必须手动保存它们。
因此,请确保在关闭 VLC 播放器之前保存或读取日志文件。
### 检查并保存 VLC 日志文件
虽然听起来很复杂,但这是最简单的方法,它不仅允许你保存日志,还可以让你读取日志而不将其保存到文件中。
首先,从顶部菜单栏转到`工具`菜单,然后选择`消息`,或者,你也可以按 `Ctrl + M` 达到相同的效果:
![][2]
它将显示与当前播放的视频文件相关的日志。
在这里,你有两种选择:你可以仅读取日志,也可以保存日志。
单击`消息`后,你会注意到 `Verbosity` 选项卡,因此让我们看一下多个详细程度选项的效果。
* `Errors`: 只会记录错误信息
* `Warnings`: 它将总结错误和警告消息
* `Debug`:此级别将包括错误、警告和调试消息
选择适当的详细程度选项后,你很快就会看到与所选选项相关的日志。
![][3]
正如你所看到的,当我选择 `debug` 选项时,它还包含警告日志。
要保存日志,请点击 `Save as...` 按钮,它将打开文件管理器,在这选择保存文件的位置并为其指定适当的名称:
![][4]
现在,你可以使用任何文本编辑器打开日志文件:
![][5]
从这里,你可以识别导致错误的罪魁祸首。
### 有关 VLC 的更多信息
你是否知道你可以使用 VLC 下载 YouTube 视频或使用 YouTube 链接来流式传输视频而无需广告?
VLC 能做的远不止这些。如果你有兴趣,请查看我们详细的[让 VLC 更出色的技巧指南][6]
![][7]
想要[自动下载 VLC 字幕][8]?操作方法如下:
![][7]
我希望本指南对你有所帮助。
--------------------------------------------------------------------------------
via: https://itsfoss.com/vlc-check-log/
作者:[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://learnubuntu.com/check-firewall-logs/
[2]: https://itsfoss.com/content/images/2023/08/Go-to-messages-to-read-logs-in-VLC.png
[3]: https://itsfoss.com/content/images/2023/08/Choose-verbosity-to-capture-different-types-of-logs-1.png
[4]: https://itsfoss.com/content/images/2023/08/Save-VLC-logs-1.png
[5]: https://itsfoss.com/content/images/2023/08/Open-VLC-log-file.png
[6]: https://itsfoss.com/simple-vlc-tips/
[7]: https://itsfoss.com/content/images/size/w256h256/2022/12/android-chrome-192x192.png
[8]: https://itsfoss.com/download-subtitles-automatically-vlc-media-player-ubuntu/