Use megui to suppress 720*480 MP4 videos. For more information, see [For Beginners]

Source: Internet
Author: User
You are welcome to reprint it. Please indicate the author and its source. Author: little hedgehog

PS:You are welcome to refer to the errors in the text so that they can be corrected with me.
PS2:This article is intended for players who have a certain degree of Video Production basics. It is not intended for beginners. At least we must understand the use of AVS; otherwise, we do not need to look down.
PS3:Although the title of this article is 720xlarge, it is also applicable to the production of AVC 480x272.

Part 1: Summary of this post
Part 2: 720x480 MP4 suppression tutorial
Part 3: 720x480 sample download

Keywords:MP4 AVC 720x480 480 P 3.30 UMD-VIDEO Image Quality

Part 1: Summary of this post

1: Summary of this post

In 3.30, Sony opened the highest video format of PSP, MP4 AVC encoding, and x480 resolution. This article describes this video and briefly describes the suppression method.

The new format is as follows:

MPEG-4/AVC (H.264) Video main profile (AVC cabac) video playback in the following resolution: 264x720x480/352x480/480

As we all know, the resolution of this format has reached the level of UMD-VIDEO. So what does Sony mean by opening this format? What is the effect of this format? How high is practical value? Who is better at the 720xlarge and 480x272 videos?

The above questions are not discussed in this post. The task to be completed in this post is to objectively discuss some features and suppression methods of this new video format, do you have to press this format.

What are the effects of 1.1 x videos?
------ A word summary is: good film source, good parameter suppression, effect and UMD-VIDEO equivalent. The specific effect can only be seen by yourself.

1.2 How to obtain videos like this?
------ The method is simple: 1. Download from the Internet; 2. If you want to download from the Internet, we recommend that you pay more attention to cngba. If you want to press it on your own, you can continue to look down

Part 2: Suppression of xforwardedvideo

1: Summary of suppression methods

Before that, let's take a look at the following questions:

1) Is it difficult to suppress a x video? A: It is difficult to compare to the original 480x272 or lower!
2) does it take a lot of time to suppress a x video? A: It takes a lot of time to compare to the original 480x272 or lower!
3) Is there a qualitative leap in the X video compared to the X video? A: If the video is played on PSP, I don't think you can tell the difference.

If you want to continue, continue...

We all know that a video file is composed of video + audio + others. For PSP to play MP4, external subtitles are not supported, so the "Others" here makes no sense ....

1.1 Video Section

Video Encoding: X264 is the best choice, and can be divided into xforwarvfw and xforwarcli

Xforwarvfw is mainly called by virtualdubmod to compress videos. This is the most commonly used video suppression method for a long time. However, it is not recommended here because virtualdubmod can only be encapsulated in Avi, and MP4 can be synthesized only after extraction, and virtualdubmod + xw.vfw cannot use dual-core, in addition, due to the compatibility of h264 and Avi, development of this version has been stopped.

Xforwardcli, x264.exe, command line program, it is more troublesome to use independently. Generally, it is used in combination with GUI. Currently, megui is the most commonly used, and other commonly used software, such as windavcoder and xvid4psp, it can also be counted as a x264 GUI.

1.2 audio part

Audio Encoding:Common scenarios include faac and neroaacenc.

The quality is similar, and the conversion speed is similar. The general saying is that neroaac performs better at lower bit rates. If you want to recommend one, I recommend neroaacenc.

1.3 Synthesis

Basically, mp4box is used for synthesis. Nothing to say ~~

The above are some basic things. Just take a look. Enter the subject

Note:The following tutorial is intended for people who already have a certain understanding of AVS (avisynth), preferably those who have experience in DVDRip production. If you do not know AVS at all, you do not need to read it. Let's take a look at the relevant AVS tutorials.

2. Use megui to suppress MP4 of xx

2.1 is suitable for selecting a video source that is compressed into 720x480 MP4.

The following sources are recommended:

High-quality DVDs, preferably D9 with good bit rate and vob of MV

High-quality hdrip HDRs hddvdh BdH is generally 2 or above, and converting 1 DVD to 480x272 is sufficient.

HDTV ts TP, WMV-HD, HD H.264 encoded mov

BD remux hddvd remux

We do not recommend converting the following credits to 720x480

General DVDRip, no matter how high the quality, no need, x272 enough...

Sources with different resolutions less than X
[Reporter Note: This sentence is a bit extreme. Many AVI video sources on the Internet are also less than the source with a resolution such as 640x480 and 704x396, I personally think that the definition can still be compressed into P, so that you can directly add a p computer and PSP to read it.]

Various low-quality video sources such as rmvb and RM are basically a waste.

2.2 compilation of AVS (not the focus of this article, I wrote it all over)

This part is a headache, because this step is not going to happen, and we will not talk about it in the future. This step is a rather difficult step.

Here we use a 1080 ts source as an example.

First of all, if your computer cannot play this TS at all, there will be no conversion at all. Don't look for a tutorial to find a way for your computer to play it. Generally, you can play the video Directly after installing the fuse decoding and storm audio and video plug-in packages.

There are two ways to add ts to AVS:

One is to use mpeg2source, which is a little troublesome. You need to use dgindex to generate d2v, and then use AVS to upload d2v. The audio is extracted using DG or other tools and processed separately.

This method is troublesome. You can search for hdtd rip tutorials.

The following is only an example of the AVS script, but it is the most basic. filters such as subtitles are used according to their actual conditions.

Quote: loadplugin ("... \ dgdecode. dll ")

Loadplugin ("...... DLL ")

Mpeg2source ("... \ xxxxxx. d2v ")

Fielddeinterlace ()

Lanczos4resize (704,480)

Addborders (8, 0, 8, 0)

Converttoyv12 ()

Another method is to use directshowsource to mount ts. This method is easier, provided that the decoder has been configured on your computer.

Write AVS as follows:

Quote: directshowsource ("... \ XXXXXXX. Ts", 29.97)

Lanczos4resize (704,480)

Addborders (8, 0, 8, 0)

Converttoyv12 ()

Someone may ask, why do we need to resize to 704x480 first and then add a Black edge?

This is because when the PSP plays a x video, it will cut 8 pixels each, and then resize the video to x 72 output. That is to say, if this is not done, images with eight pixels on the left and right will be removed and cannot be displayed.

Sony is designed in this way and follows the rules of the DVD. (the original resolution of the MPEG2 stream of the DVD is also 720x480)

After writing AVS, try to play the video. If there is no problem, you can start to suppress it.

It should be noted that, if Resize is 480X272, the conversion is havc of 480x272. However, when X is used, the x264 setting can be higher, select PSP mp4avc 480X272 in the Video profile.
[Reporter Note: I personally feel that if we want to watch the video on both the computer and PSP, we can directly resize it to 720 × 480, but we cannot see it in 16 pixels less on the PSP, however, it is hard to have a black edge on the PC.]

2.3 start suppression with megui

First of all, let's talk about why megui is used for suppression. megui is very powerful and is the best choice for converting high-quality AVC videos. There are many containers that can be output, now, you can directly output MP4 files that can be played by PSP. (For a long time, this type of Universal Video suppression tool cannot directly extract videos that can be played by PSP)

Unfortunately, this software does not seem to have a Chinese version.

Why don't we recommend some previous dummies for videos with xforwardedbacks? Such as winmenc and winavcoder? The reason is as follows:

A:For high-quality videos, select X if you want to delete videos on the PSP. High quality brings about higher requirements for suppression. In order to meet high requirements, more powerful software must be used for implementation. It doesn't mean that the dumb software cannot be pressed, but if you really want to achieve good results, we recommend megui.

B:Generally, dummies use mencoder or AVS + DirectShow to be compatible with various video formats. This is no problem for normal video sources, but for various HD video source sources used for 480p conversion, problems may occur easily.
[Note]
C:To suppress such videos, the requirement has reached or even exceeded the General DVDRip production requirements, which is close to the HDE production requirements. For this level of video conversion, no one can use the dummies.
[Note]

Download and install megui 2.3.0

First, download megui

Http://mirror01.x264.nl/x264/megui-install.exe

Run megui,

Before Running megui for the first time, if Microsoft. NET Framework 2.0 is not installed, you must first install it. Otherwise, it cannot run.
Download here: http://dl.pconline.com.cn/html_2/1/82/id=10637&pn=0.html

After running the command, you will be prompted to update it. click confirm to update it.

If you have any questions about the download and installation, refer to the following post, which is not described here.

Quote: shadowchen from cgtop Forum
Megui tutorial download article: http://bbs.cgtop.org/showthread.php? T = 33387
Megui tutorial installation article: http://bbs.cgtop.org/showthread.php? T = 33421

After the installation and upgrade, the suppression will begin.

Before that, put the profile setting file I provided into the megui \ profiles folder.
Psp_avc_480p_profile.rar (2.59 KB)
[Reporter note: the profile here is too old. The megui of the new version cannot be imported at all. However, this article is good enough to explain the parameters comprehensively, you can follow the diagram below to explain how to modify the profile of the PD-PSP in megui]

2.3.1 settings on the main interface


Select the AVS you want to convert on the main interface. If the audio is processed separately, select the audio track file you have extracted.
If the audio is included in AVS, you can directly select this AVS
In the drop-down list of Video profile and audio profile, select the profile file that I provide. Of course, you can also set it on your own.
Note: If you want to convert a 480X272 video, select PSP mp4avc X. The audio is the same, so you do not need to change it.

For further video/audio settings, refer to the instructions below.

2.3.2 video part settings

It should be noted that after the configuration of my profile has been loaded, the following settings do not need to be performed, because you will find that the configuration is complete.

Parameter Details are only for those who want to learn. skip this step if you are an average person...

Main

In the upper left corner of the page, you can use the fixed bit rate (ABR), quality, and 2pass ~ 3 pass


The following is a detailed explanation:

ABROne forming. Bit Rate Allocation comes from instant check. This mode is usually not used.

Const QuantizerFixed quantization value output. The QR mode is the same as that in XviD. Each frame type uses the same quantization value to quantify, so that the quality of the whole frame is roughly the same. Here, the QR code of the P frame is specified. The QR codes of frames I and B are calculated based on the ratio of pages 2nd. The CQ model is applicable to films that require quality regardless of the full bit rate and file size.

2 pass-1st/2ndManually press 2pass. Same as rmvb. 1 st, turbo can be used to speed up suppression. In 1st pass, megui does not output any video information or generate an empty MP4/AVI file. (Vdm will .)

Automatic 2 passAutomatic 2pass suppression. Two tasks can be generated at a time, which speeds up processing.

3 passAdvanced functions for advanced users. [1]

Const QualityConstant image quality. If you do not need to suppress the volume, I recommend this. Because xforwardedvideos do not care much about the volume, we recommend this one if only 1pass is used.

Other settings:

Enable SNR CalculationYou do not need to select this option. This is a picture quality verification mechanism. turning it off will not affect image quality, but will also shorten the compression time.

Enable SSIM CalculationSame as above

ThreadsSet the number of your CPUs. You can select 2 for dual-core CPUs or CPUs that support hyper-threading to increase the speed!

FourccIt is a media file identification symbol and does not need to be modified.

DeblockingYou can perform noise processing and select the source based on the source. Positive values can soften the source and reduce the noise. Negative values can sharpen the source. If you enable deblocking During encoding, you must enable deblocking during decoding. Otherwise, color blocks and mosaic may occur. You can choose here ....... [2]

AVC ProfileAndAVC levelIt is very important to play the video on PSP. It must be set according to the figure.

Zones

RC and me

Parameters:

Ratecontrol

Vbv buffer sizeBit Rate controls the buffer size. Unit: kbit. The default value is 0.
Vbv maximum bitrateMaximum instantaneous bit rate in average bit rate mode. The default value is 0.
Vbv initial BufferBit Rate Control the ratio of the maximum data retained in the buffer zone to the buffer zone size. The value ranges from 0 ~ 1.0. The default value is 0.9.
Bitrate varianceIn average bit rate mode, the ratio of the instantaneous bit rate deviation is 0.1 ~ 100.0. The default value is 1.0.
Quantizer CompressionLinear quantization control. The value 0.0 indicates a fixed bit rate, and the value 1.0 indicates a fixed quantization value. The default value is 0.6. It is only used in 2-pass and quality modes.
Temp. blur of EST. Frame complexityThe maximum ratio of the smooth quantization value of adjacent frames. The value range is 0 ~ 99.9. The default value is 20.0. It is only used for 2-pass and quality modes.
Temp. blur of quant after CCThe maximum ratio of the smooth quantified values in the statistical file. The value range is 0 ~ 99.9. The default value is 0.5. It is only used for 2-pass.

M. E.

Chroma m. E.Select dynamic color prediction.
M. E. Range: M. E. AlgorithmIndicates the search radius of hexagon/exhaustive. The maximum value is 64. The default value is 16.
Scene Change sensiti.pdfDynamic screen change limit. When this value is exceeded, the I frame is inserted. The default value is 40.
M. E. AlgorithmFor full-pixel block Dynamic Prediction search, the default value is "hexagon". Optional:
Diamond: Diamond Search, radius 1 (FAST)
Hexagon: Positive hexagonal search, radius 2
Multi HEX: hexagonal search with variable radius
Exhaustive: comprehensive search
(It is recommended to set it to multi Hex. exhaustive is too slow, and the quality improvement is not obvious .)
Subpixel refinemenDynamic Prediction and partitioning modes, option 1 ~ 7. The default value is 5 (closely related to the compression quality and time, and 1 is more than four times the speed of 7). 1. dynamic search with full pixel blocks, perform precise search of 1/4 pixels for each block in fast mode
2: Use half-pixel blocks for dynamic search, and then use the quick mode to perform a precise search of 1/4 pixel blocks.
3: Use half-pixel blocks for dynamic search, and use the quality mode to perform a precise search of 1/4 pixel blocks for each block.
4: exact search of 1/4 pixel blocks in Quick Mode
5: precise search of 1/4 pixels in quality mode
6: optimizing the rate distortion of pixel blocks of I and P frames (rdo)
7: optimizing I and P frame motion vectors and intra-block rate distortion (best quality)
(The higher the quality, the better, but the encoding speed will also drop sharply. 5, 6 are recommended. 7. It is too slow)

Misc

Keyframe IntervalMaximum IDR frame spacing. The default value is 250. (This parameter can be increased when an animation is pressed)
Min. GOP sizeMinimum IDR frame spacing. The default value is 25. This parameter can be reduced when an animation is pressed)
Noise ctionNoise Removal, ranging from 0 ~ 100000, 0 by default [2]
Encode interlacedEncode the code into a line. Of course, do not select it. We want to press 480 p.

Quant options

Trellis:Trellis quantization. Find the appropriate quantization value for each 8x8 block. cabac is required. The default value is 0.
0: Disable
1: used only for the final Encoding
2: Always Use
(Improve quality and reduce speed. We recommend that you enable it .)
Number of refence frames:Maximum number of reference frames, ranging from 0 ~ 16. The default value is 1 (the parameter for improving the quality and compression ratio is generally set to> 1)
Mixd:Different reference frames can be used within one frame (valid, but the speed is greatly affected. We recommend that you enable it whenever possible)
Cabac:Content adaptive binary arithmetic coding (cabac, efficient entropy coding) (disabling will increase the speed, but seriously affect the quality)
No DCT decimatio:Disable p-Frame Joint encoding (increase details, but increase the size)
No fast p-Skip:Disable fast p-frame skipping Detection

Advanced

Parameters:

Quantizers

Minimum quantizer:Sets the minimum quantization value, ranging from 0 ~ 51. The default value is 10.
Maxmum quantizer:Sets the maximum quantization value, ranging from 0 ~ 51. The default value is 51.
Maxmum quantizer delta:Sets the quantization value difference between adjacent frames in the range of 0 ~ 50. The default value is 4.
Credits quantizer:Member table quantification Value
Factor Between I and P frame quants:Quantization coefficient between I frame and P frame. The default value is 1.40.
Factor between P and B frame quants:Quantization coefficient between P and B. The default value is 1.30.
Chroma QP offset:The Quantization difference between the color and brightness in the range of-12 ~ + 12. The default value is 0.

Macroblock options

The Dynamic Block division method is shown in. Do not select p4x4 because of AVC level3 restrictions.

B-frames B frame (bidirectional prediction frame)

Number of B-frames:Maximum number of B-frames that can be inserted between IP frames, ranging from 0 ~ 16. The default value is 0. (This parameter can greatly increase the compression ratio. It is generally set to> 1 if it is not used for secondary suppression)
Adaptive B-frames:Adaptive B-frame determination (this is not required when B-frames is set to 1. It is not recommended for others)
B-pyramid:B frame is allowed as a reference frame (it has little impact on speed and is generally enabled)
Rdo for B-frames:Frame B is also optimized for Rate Distortion and requires more than 6 subpixel refinemen (improving quality and reducing speed. We recommend that you enable it .)
Weighted B-prediction:B-frame weighted prediction is allowed (which can reduce the impact of low quality of adjacent B-frames) (both quality and compression ratio are improved, with little impact on speed. We recommend that you enable it .)
Bidirection m. E .:The average B-frame Reference Block Motion Vector is supported (which improves both the quality and compression ratio, and has little impact on the speed. We recommend that you enable it .)
B-frame mode:Dynamic prediction method. The default value is "spatial ". Optional: NONE/spatial/temporal/auto (Auto is recommended)
B-frame Bias:Control insertion of B frame determination, range-100 ~ + 100. The higher the value, the easier it is to insert B frames. The default value is 0.
Quantization matrix:You can select a custom array. The attachment provides several base lrm mrm hrm corresponding to low and medium bit rates.

The video setting ends now. Let's take a look at the audio settings.

2.3.3 audio part settings

Few audio files need to be set

This is the faac setting. If you want to use neroaacenc to suppress audio, download neroaacenc (the following attachment is downloaded)
Set the path of neroaacenc in tools> Settings> program paths.
Nerodigitalaudio.rar (874.12 kb1_nerodigitalaudio.rar (874.12 KB)
Downloads: 7862007-4-19

Settings of neroaacenc:

First, change the faac of the audio codec to nd aac on the main interface. Set

2.3.4 encoding conversion starts after the settings are completed


Don't forget to select MP4. However, the MKV can only be played on the computer.

After clicking "queue", the task is added to the queue manager. There are three tasks in total: Audio Encoding, video encoding, and MP4 synthesis.

As shown in:

Okay. Click start to suppress it.

High quality video suppression is very slow. Please wait. There is no need to compare the speed with the video suppression speed of 480x272, which is completely incomparable.

The compression speed is mainly determined by the x264 parameter, which has little to do with the GUI. With the same parameter settings, megui will not be slower than any other dummies.

3. Make a preview of MP4.

We all know that the XMB of PSP can display the MP4 preview image. However, for MP4 videos placed in the root directory after 3.00, the original THM preview image method fails.

In fact, THM is just a jpg image, and the suffix is changed.

Now, after Sony makes PSP more open, THM is also discarded in this special format, and the normal JPG is used as the preview image.

The preview image must be in the format of 160x120. jpg, which has the same name as the MP4 video and is placed in the same folder.

The above is the 720x480 MP4 tutorial for this post. What have you learned? Next, let's download a paragraph to see the actual effect.

References:

[1] meteorrain: "x.264 novice on the road tutorial" http://popgo.net/bbs/showthread.php? S = & amp; threadid = 338280 & perpage = 15 & amp; pagenumber = 1

[2] benny2: "[finishing + original] megui-x264 suppression of introduction" http://xn--xcrv5ddx1avfa.com/read.php? Tid = 170664

[3] kykdu: The x264 Parameter Details http://popgo.net/bbs/showthread.php? S = abda-8590b73c375ea59173ee4ddc3af & threadid = 408981
========================================================== ==========================================================

Part 3: 720x480mp4 video sample download

Sony hdtv hd demonstrationDreamcatcher

Sony has many high-definition demos. I think this step is a great one. I used to release the havc version, which is p this time.

There are 4 segments in total.

Below is

Preview under XMB

Demo1

Demo2

Demo3

Demo4

: Http://bt.cngba.com/view.php? T = 2007-04-17 & id = 8052

Make a planting within one month. If you need to make a planting later, ask the Forum PM.

Feeling: This tutorial is very detailed. As you can see, the MP4 format has recently become popular, so I want to change my PSP video from PMP to MP4, I tried to suppress it several times, so I simply took out AVS and megui .....
This article lacks some explanation of the parameter -- SAR control ratio. this parameter is the key to achieving p video playing on psp and PC. If you do not control this parameter, You need to manually calibrate the mp4. This parameter function is very simple, but its assignment is very complicated and I have not understood it yet. It is the key to deformation HD video technology that is currently popular. Let's take a look at it and share it with you.

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.