MediaCoder How to use the tutorial

Source: Internet
Author: User

First, Video coding options

1, encoder selection as shown in Figure 1

Video source for 1080P or 720P bdrip movies, video code rate after many practices 1100KbPS for the best, not only to ensure the quality of video, but also take into account the volume, the general volume in 900M around.

Format selection is H.264 encoding, using two-time encoding mode, the effect will be much better than the direct compression.

Encoder uses x264. Some children's shoes are about to ask, why not use the Intel Video hardware acceleration or n card cuda acceleration! Because these two kinds of hardware acceleration in consideration of speed, the same rate under the screen quality is far below the CPU Software Encoder x264, we do not believe you can try. According to the current computer configuration, CPU software coding speed is not much slower than hardware acceleration, or acceptable range.

X264 encoder settings are critical to the quality of the screen, iPhone4 and 4S hardware Support high specification H.264 encoding, so I recommend using the highest profile @5.1 maximum size ( Note: If you need to play on the PSP MP4-AVC then profile must select Main, otherwise the PSP will not play!);

Presets use custom, detailed parameters are explained later;

optimization remains the default;

GOP remain the default.

Sub-pixel optimization, dynamic prediction and partitioning methods, option 1-11 the larger the number of options selected, the better the image quality, the slower the speed! The recommended option is 6 or 7.

2. Advanced Video coding options are shown in Figure 2:

Click the advanced in Figure 1:

We only change the options in the red box, please leave the default.

The ① b frame is the maximum number of B frames that can be inserted between the I frame and the P frame, with a range of 0-16. Recommendation: More than 1, my setting is 3, the higher the number of coding speed will be slower!

② the Enable all Macroblock type: A dynamic block partitioning method that allows the use of the 8x8, 4x8, and 4x4 partitioning methods at a lower level. Recommended selection (Note: If you want to use these partitioning methods, you need to subpel refinement quality commonly known as sub-pixel optimization settings greater than or equal to 5!) To improve picture quality.

Adaptive spatial Transform size: Allows the dynamic partitioning method to be automatically selected between 4x4 and 8X8DCT, and allows the i8x8 dynamic partitioning method to be used. Suggested Choice (note: If not, then only use 4X4DCT dynamic prediction!)

Fullpixel motion estimation algorithm the way to dynamically predict the full pixel block, you can option:

Diamond: Diamond Search, search radius of 1;

Hexagonal: Positive hexagonal search, search radius of 2;

Uneven multi-hexagon: Variable radius hexagon search;

Exhaustive: Full search;

Hadamard exhaustive: Full search in Hadamard way, slower than exhaustive.

The recommended choice of uneven multi-hexagon (exhaustive and Hadamard exhaustive is too slow, and the quality improvement is extremely inconspicuous. Unless you are not afraid to waste time and the pursuit of high-quality images of the Ashes level players and very much believe that their machine configuration, then choose Hadamard Exhaustive Bar!

③ rate-distortion Optimal Quantization (trellis): Trellis quantification, recommended to open, this parameter can be used to raise the picture of high quality, low configuration of the computer and the quality of the screen is not required users can choose enabledonly for The final encode, configure a higher computer and the screen quality requirements of users can choose Enabledduring all mode decision; screen quality: Enabledonly for the final Encode is worse than enabledduring all mode decision! Encoding speed: Enabledonly for the final encode faster than enabledduring all mode decision!

How AQ distribures bits: Adaptive quantization mode, which can redistribute quantization values between different macro blocks in 1 frames, improves the detail of the dark, but increases the rate of the code and suggests that it be turned on.

Reduce blocking and blurring in flat and textureareas:aq intensity, reducing the quantization value of the low detail macro block, we recommend that normal be selected.

3, resolution related settings such as Figure 3

iphone resolution fixed to 960x540 (IPAD1/2 fixed to 1024x576), just meet the 16:9 screen standard.

The frame rate is set to 23.976, which is the movie standard frame rate.

① Click on the "Resolution" button, the following image appears

Scaling algorithm is set to Lanczos algorithm, this algorithm is faster, and the screen is sharp, recommended use.

② See if the pixel width of the video source is 16:9, as shown in Figure 4

A 1080P or 720P standard format for a movie is 16:9 of the width-height ratio. But some of the sources might be 12:5 or something. If you still compress according to iphone960x540 (ipad1/2@1024x576) resolution, it will lengthen the image to produce proportional distortion, assuming that the ratio of slice to height is 12:5, for example, according to the ② of Figure 3, select "Set display aspect ratio" and fixed ratio of width to height is 16:9, and screen clipping set to 0:-140:1920:1080, because the chip source is 1920x800@12:5 resolution, to restore to 16:9 must add a 140 pixel black edge to become the standard ratio of 1920x1080@16:9, Other non-standard resolution films follow the above method and so on.

Complete the above work screen width and height is fixed, because the addition of the black Edge also easy to compress subtitles, so that subtitles will not block the screen.

Second, audio settings

As shown in Figure 5:

The audio format is selected as He-aac,iphone and can be decoded by hardware.

The encoder uses Nero Encoder.

The code rate mode is set to CBR fixed bit rate.

The code rate is set to 64Kbps.

The other settings are default.

Three, packaging containers

This is about the MediaCoder audio and video transcoding Express use of the tutorial introduced, the fight can use this software to carry out a variety of audio-visual conversion is very convenient and practical oh, hope for everyone useful.

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.