Use mplayer in linux to watch HD movies

Source: Internet
Author: User
Tags intel pentium

In centos, mplayer was used to watch HD movies. Find a good solution on the Internet and attach it to the bottom. Here we first record our actual solution:
Solution 1: Use the mplayer-framedrop parameter to play the video. The effect is also good.
Solution
Method 2: Follow the 2nd methods described below to use multi-threaded mplayer for playback. The link below is unavailable, and the GIT proxy configuration is also troublesome, so you can directly go to mplayer
Download the latest mplayer source code package from the official website and go to http:
// Src.chromium.org/viewvc/chrome/trunk/deps/third_party/ffmpeg/ffmpeg-mt.tar.gz
Download the source code of FFMPEG-MT, decompress it, and replace FFMPEG in the mplayer source code with FFMPEG-MT.
& Make
Install mplayer in three steps. An error occurred while installing. The libswcale directory does not contain makefile. The original libswcale version of FFMPEG-MT
Then copy libswcale in FFMPEG of mpalyer and reinstall it. After the playback is complete, run the following command:
Mplayer-VFM lavf-lavdopts threads = 4 ~ /Movies/movie. rmvb

The following describes how to use mplayer to watch HD movies in Linux.

Three solutions for using mplayer to watch HD movies in Linux

Recently, the official website of mplayer published a video
Acceleration and you
This article briefly describes how to use MPlayer to watch 1080 H.264
The following is an excerpt from several schemes of HD movies.

  1. VDPAU

    VDPAU is short for Video Decode and Presentation API for Unix.
    A set of Apis designed by GeForce 8 and the updated series, including decoding and post-decoding, can greatly reduce the CPU usage.
    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 by yourself. At the same time, you must specify-vo vdpau -vc ffh264vdpau

    Options and parameters.

  2. 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
    && make install

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

  3. CoreAVC for Linux

    CoreAVC

    It is said to be the best H.264 in Windows.
    Decoder, including multi-thread and multi-core (Professional Edition) Support. Its biggest feature is fast. CoreAVC for Linux can be used in Linux
    CoreAVC. 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 article.
    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 ~ 70%
    Between (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. What about the third solution, CoreAVC
You need to pay extra for the purchase. The Professional Edition requires 15 yuan. 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.