The simplest video encoder: compiling

Source: Internet
Author: User

Recently, several common video encoders have been researched: X264,X265,VPX. This article simply records how they are compiled.

X264,x265,vpx These three open source video Encoders can be said to be today's "hottest" video encoders. x264 now occupies half of the video encoder, x265 is currently the best open source video encoder to achieve h.265 standards, and may replace x264 in the future, while VPX is Google's launch of the Open source video encoder, it proposed VP9 coding standard performance is good. After recording this article, we plan to write three articles for X264,X265,VPX to record how they are used.


X264



Website: http://www.videolan.org/developers/x264.html

Source code get Address:

git clone git://git.videolan.org/x264.git

Note You need to install yasm before compiling.

The simplest compilation step under Windows (MinGW)

1. Download the installation mingw and switch to the source code directory after running

2. Enter "./configure"
3. Enter "Make"
4. Enter "Make install" installation (optional)

The simplest compile steps under Linux:

1. Switch to the source code directory

2. Enter "./configure"
3. Enter "Make"

4. Enter "Make install" installation (optional)


Build after compilation:

X264.exe: Code that can be used directly from the command-line program

LIBX264.A: A class library that can be used for program development of code H.


windows compile to get Lib Class library step (Generate Libx264.lib)
1. Generate the "*.def" file. When you enter the "./configure" command, add the parameter after "./configure" instead:
./configure--enable-shared--EXTRA-LDFLAGS=-WL,--output-def=libx264.def
This allows you to generate "Libx264.dll", "libx264.def" files.
2. Use the VC's own Lib generation tool "Lib" to generate the "libx264.lib" file. Using Visual Studio command prompt, switch to the x264 source code directory and enter the following command:
Lib/def:libx264.def
The libx264.lib can be generated for development under VC.

X265
Website 1:http://www.videolan.org/developers/x265.html

Website 2:https://bitbucket.org/multicoreware/x265

Source code get Address:
HG Clone http://hg.videolan.org/x265

Note You need to install before compiling:
(1) yasm.
(2) CMake.

The simplest compilation step under Windows (VC2010)
1. Generate the X265.sln file using CMake. In the "Build" folder of its code root, find the version of ". sln" you want to build.

Take this machine as an example, open "vc10-x86" and Run "Make-solutions.bat" to generate a VC2010 32-bit solution file. In the middle, a CMake configuration dialog box pops up. You can click Configure First, and then click Generate.


2. Using VC to open the generated X265.sln, you can compile the program. You can right-click the solution and choose Build Solution to bulk compile all of the projects.



Build after compilation:

X265.exe: A command-line program that can be used directly for encoding h.265

Libx265.dll,libx265.lib: A class library (Lib and DLL separate) that can be used for program development of coded h.265

X265-static.lib:: A class library of coded h.265 that can be used for program development (single Lib)


VPX


Website: http://www.webmproject.org/

Source code get Address:

git clone https://chromium.googlesource.com/webm/libvpx

The above address may not be accessible, you can use the following mirror address:

git clone https://github.com/webmproject/libvpx


Note You need to install yasm before compiling.

The simplest compilation step under Windows (MinGW)

1. Download the installation mingw and switch to the source code directory after running
2. Enter "./configure"
3. Enter "Make"

The simplest compilation step under Linux
1. Switch to the source code directory
2. Enter "./configure"
3. Enter "Make"

Build after compilation:
Vpxdec.exe: Decoding VP8,VP9 command-line program that can be used directly
Vpxenc.exe: Encoding VP8,VP9 command-line program that can be used directly
LIBVPX.A: A class library of coded VP8,VP9 that can be used for program development


Steps to get VS2010 solutions for individual projects under Windows compilation

1. Set "-target" to "X86-WIN32-VS10" when configure

./configure--TARGET=X86-WIN32-VS10

2. Using VC to open the generated Vpx.sln, you can use vs to browse the entire solution. You can right-click the solution and choose Build Solution to bulk compile all of the projects.

The simplest video encoder: compiling

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.