Three solutions for using MPlayer to watch HD movies in Linux

Source: Internet
Author: User
Tags intel pentium
Article Title: three solutions for using MPlayer to watch HD movies in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Recently, the MPlayer official website published an article titled "Video Acceleration and You", which briefly describes how to use MPlayer to watch 1080 H. the following is an excerpt from several schemes of 264 HD movies.

VDPAU
VDPAU is short for Video Decode and Presentation API for Unix. It is a set of Apis designed by NVIDIA for GeForce 8 and its newer series, including decoding and post-decoding, CPU usage can be greatly reduced.

Currently, the SVN version of MPlayer provides support for VDPAU. You will need to use the Subversion version control tool to obtain its source code and compile it on your own. In addition, you must specify the-vo vdpau-vc ffh1_vdpau option and parameter during playback.

FFmpeg-mt
FFmpeg-mt is a new branch of FFmpeg that contains multi-threaded experimental features. It can take full advantage of multiple cores or CPUs to accelerate video decoding.

The source code of FFmpeg-mt can be obtained by Git. To compile and install FFmpeg-mt, run the following command:

Git clone git: // repo. or. cz/mplayer & cd mplayer & git checkout origin/mt & git submodule init & git submodule update &&. /configure & make install

Similarly, you must specify the corresponding options and parameters during playback:-lavdopts threads = N, where N is the number of threads.

CoreAVC for Linux
CoreAVC is said to be the best H.264 decoder on Windows, including multi-thread and multi-core (Professional Edition). Its biggest feature is fast. CoreAVC for Linux can be used in Linux. Previously, the project was closed by CoreAVC developers, and later it was reopened on Google Code after communication.

For how to install CoreAVC for MPlayer, refer to this installation guide.

Thanks to my friend Dark, I am currently using this solution. In my experience, 1080 P movies can be played smoothly, and the CPU usage is between 40% and ~ Between 70% (My Intel Pentium Dual-Core E2140 CPU); 720 P lower, about 10% ~ 40%.

To sum up, the first solution has higher requirements for the video card, and my GeForce 7300GT is currently no blessing. The third solution, CoreAVC needs to spend extra money to purchase, and the Professional Edition requires 15 knives; the second solution is worth a try.

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.