MP4 Video Encoder

Source: Internet
Author: User

Play video with HTML5, the most popular video format is non-MP4, all the latest browser support;

MP4 MPEG 4 files with the H + + video encoding and AAC audio encoding;

Previously done a video of other encoding format into the MP4 program, the quality of the conversion can be controlled, the worse the quality, the smaller the video, so you can turn a few g of video can be turned into dozens of M MP4, easy to put on the internet with HTML5 watch.

The program simply wraps the process of invoking the open source encoder; The following encoders and class libraries are used specifically:

x264 = Video Encoder

FAAC = Audio Encoder

Mp4box + combines video and audio

AvisynthWrapper.dll = AVI Script Interpreter

Detailed role and related parameters, in a large number of online, here no longer repeat; (really admire the selfless contribution of some foreign people's spirit, so complex and practical procedures are open source, for the use of all mankind, it is said that the domestic a storm, buckle the audio and video are used a lot of open-source encoder, but not open source, despise it)

Program is open source to Github:https://github.com/dhenskr/mp4encoder.git

Directory of Source Solutions:

At compile time pay attention to change the target platform of Mp4encodertester project to x86, otherwise the platform error will occur when calling AvisynthWrapper.dll class library method;

Under the directory where the program is running (the bin/debug/directory for the Mp4encodertester project already contains the following files, you can also download them on the relevant website) to include the files in the box below

Note: The Main method of the Mp4encodertester project Program.cs file, the input and output variables are changed to the corresponding video path under their system:

        Static void Main (string[] args) {            string@ "C:\Users\Canie\Desktop\testVideo\orig\ orig.wmv";             string @" C:\Users\Canie\Desktop\testVideo\encoded\encoded.mp4 " ;             New encoderhelper (input, output);            Encoderhelper.encode ();        }

The program references a powerful video encoder: MeGUI

If you want to learn video coding advice directly to see the source of MeGUI, and my this program is just to put in the background to the specified folder video automatic timing conversion, so did not do interface, function is relatively single, simply encoded into the MP4 format;

The source code lacks the detailed document explanation, has the mood to gradually improve;

MP4 Video Encoder

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.