当前位置: 首页 > article >正文

mplayer怎么使用_MPlayer使用中文字幕

mplayer怎么使用

mplayer 使用中文字幕文件时经常会出现乱码问题. 以下是解决办法:

mplayer使用中文字幕文件时经常会出现乱码问题。 以下是解决方法:

1.外挂字体方法 (1. 外挂字体方法)

比如当前目录下有文件为Gone with the Wind.avi, 字幕文件为: Gone.With.the.Wind.1939.Bluray.720p.DTS.2Audio.x264-CHD.chs.srt

例如,当前目录下的有文件为Wind.avi,标题文件为:Gone.With.the.Wind.1939.Bluray.720p.DTS.2Audio.x264-CHD.chs.srt

可以使用如下命令来播放, 将不会出现中文字幕乱码的问题了:

可以使用如下命令来播放,将不会出现中文字幕乱码的问题了:

mplayer -ass -subcp cp936  Gone with the Wind.avi -sub Gone.With.the.Wind.1939.Bluray.720p.DTS.2Audio.x264-CHD.chs.srt

对于以上参数的解释:
-ass: Turn on SSA/ASS subtitle rendering. With this option, libass will be used for SSA/ASS external subtitles and Matroska tracks. You may also want to use -embeddedfonts. NOTE: Unlike normal OSD, libass uses fontconfig by default. To disable it, use -nofontconfig.

对于以上参数的解释:
-ass:打开SSA / ASS字幕渲染。 使用此选项,libass将用于SSA / ASS外部字幕和Matroska音轨。 您可能还需要使用-embeddedfonts。 注意:与普通的OSD不同,libass默认使用fontconfig。 要禁用它,请使用-nofontconfig。

-subcp codepage: Specify the subtitle codepage.
The Chinese character codepages:
936 — GBK Supports Simplified Chinese 简体中文
950 — Supports Traditional Chinese 繁体中文

-subcp代码页:指定字幕代码页。
在中国字符的代码页:
936 — GBK支持简体中文简体中文
950 —支持繁体中文繁体中文

-sub: Use these subtitle files.

-sub:使用这些字幕文件 。

另外可以使用sub-fuzziness参数来自动加载字幕文件:
-sub-fuzziness mode: Adjust matching fuzziness when searching for subtitles:
0 exact match
1 Load all subs containing movie name.
2 Load all subs in the current directory.

另外可以使用sub-fuzziness参数来自动加载字幕文件:
-sub-fuzziness模式:搜索字幕时调整匹配的模糊度:
0个完全匹配
1加载所有包含电影名称的字幕。
2将所有子加载到当前目录中。

2.内嵌字体方法 (2. 内嵌字体方法)

对于mkv, ogm等内嵌字体文件格式, 可以使用 sid 选项选择内嵌字体:
-sid ID: Display the subtitle stream specified by ID (0-31). MPlayer prints the available subtitle IDs when run in verbose (-v) mode. If you cannot select one of the subtitles on a DVD, also try -vobsubid.

对于mkv,ogm等内嵌字体文件格式,可以使用sid选项选择内嵌字体:
-sid ID:显示由ID(0-31)指定的字幕流。 当以详细(-v)模式运行时,MPlayer将打印可用的字幕ID。 如果您无法选择DVD上的字幕之一,也请尝试-vobsubid。

如ID为1的字幕为简体中文:

如ID为1的字幕为简体中文:

mplayer *.mkv -sid 1 -subcp cp936

硬盘上的DVD内容:

硬盘上的DVD内容:


mplayer dvd://1 -dvd-device /xxx/dvd -sid 0 -subcp cp936

翻译自: https://www.systutorials.com/mplayer-chinese/

mplayer怎么使用

http://www.lryc.cn/news/2415849.html

相关文章:

  • 万能启动的最后的传说:UD三分区法部署教程!UD加UEFI!
  • Android4.2自定义升级包
  • 【Python】python安装packages
  • CS1.5情人脚本V2024.05[混战脚本]
  • 无法定位程序输入点_except_handler4_common于动态链接库msvcrt.dll上
  • 基于虚拟机下的win7系统安装简记
  • 团队交流合作简单解决方案:TeamViewer远程控制会议演示 + HyperCam屏幕录制(免费)...
  • stm32 bin文件和hex文件的生成和下载
  • html 网页配色,配色就是这么简单!7个在线配色网站推荐
  • Qt在线音乐播放器
  • 《Spring视频教程》(p2)
  • domodal返回值问题
  • 【芯核架构】听你说你很了解ARM?
  • winrar4.0 注册码 key
  • Spring定时任务的几种实现
  • 心灵指南 刘墉 第三辑 肯定自己 笔记
  • 传说中的800句记7000词
  • 如何汉化vs2010、VS015、vs2017、VS019、v2022
  • 杂记
  • 缓存溢出
  • Linux USB 驱动实验
  • 用户行为分析
  • CodeGear Delphi 2007 for Win32 专业版下载地址及安装、破解方法
  • VBScript基础,变量,函数,流程
  • android布局layout,Android布局(layout)
  • Vmware17.5.1安装CentOS-Stream-9 【超超详细图文安装教程】
  • Django项目实战----接入第三方QQ登录绑定用户
  • 站外SEO应该怎么做?
  • 华为ct3100在entware上安装debian环境且在debian中安装samba过程
  • Blog主流程序整理(转)