Play movie subtitles in Ubuntu

Source: Internet
Author: User

The Ubuntu default movie projector cannot correctly identify the SRT subtitle encoding, and it is always garbled during playback. The solution is to use the command line playing software mplayer. The Playback command is

Mplayer movie_file_name.avi-sub movie_sub_file_name.srt-subcp cp936-Font/usr/share/fonts/TrueType/Microsoft/msyh. TTF

Where

  1. Movie_file_name.avi is the file name of the movie.
  2. Movie_sub_file_name_srt is the subtitle file name.
  3. Cp936 is the subtitle encoding. It is usually cp936/gb2312/GBK/UTF-8, one of which
  4. /Usr/share/fonts/TrueType/Microsoft/msyh. TTF is the font used for subtitles. Here, the font of is used.

For detailed use of mplayer command line, see http://wiki.ubuntu.org.cn/MPlayer%E4%BD%BF%E7%94%A8%E7%B2%BE%E8%A6%81

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.