X264 procedures used to suppress the video, including the suppression of good to the video is not a high-tech, this guide aims to promote the use of the x264, so that everyone is able to suppress the high-quality Encode. The purpose of this guide: universal suppression x264x264 Wizard
1, the need for software
GraphStudio.http://blog.monogram.sk/janos/
Eac3to.http://forum.doom9.org/showthread.php?t=125966
x264.http://www.bahoney.org/x264/
AVSP.http://avisynth.org/qwerpoi/Download.html
AviSynth.http://avisynth.org/mediawiki/Main_Page
MeGUI.http://sourceforge.net/projects/megui
Haali.http://haali.cs.msu.ru/mkv/
FFDShow.http://ffdshow-tryout.sourceforge.net/
SurCode DTS.http://www.mediafire.com/?yettrtwclyd
Arcsoft DTS DLLs.http://bbs.hdchina.org/viewthread.php?tid=4636
ArcsoftTotalmedia.http://rapidshare.com/files/132429421/TMT.rar.html
MKVtoolnix.http://www.bunkus.org/videotools/mkvtoolnix/
SonicHDDVDDecoder4.2.http://rapidshare.com/files/91792667/Sonic.CinePlayer.HD.DVD.Decoder.v4.2.rar.html
For HD DVD, you can also use this wizard. If the failure, you can use Eac3to will. EVO files into mkv files to deal with pay-per-view guide. 2, FFDShow Download the latest version of FFDShow, FFDShow will be installed by default when decoding H264; for VC-1 and MPEG-2, also can use the FFDShow decoder, open "ffdshow video decoder configuration", in the "Codecs" in this part of the VC-1 decoder is set to "libavcodec", will be MPEG-2 decoder is set to "libmpeg2". After my test, the use of WMV Video Decoder DEMO with FFDShow as the VC-1 decoder, there is no difference between shots. 3, GraphStudio Contains GraphStudio we can create for the Source specified in the decoder or plug-ins. Grf file. "Ctrl + F" plug-in list can be opened. 1, with "Haali Media Splitter" will open your source file; 2, select "FFDShow Video Decoder"; 3, the source of the Video with the FFDShow connected to the In 4. AvsP (this part of the preparation by the jaychu128) AvsP apply to all the preparatory work before the suppression. In view of the video you select will be the value passed to the encoders of different ways, you can use almost all the variety of options and filters. We can create a avs script AvsP in order to enter the video into MeGUI. Generated in earlier steps to open the grf files (need to select the browser window, replace all file types), this script language the following statement will appear District: DirectShowSource ( "C: \ your_movie \ filename.grf") If you have already learned about the The movie's frame rate then added in the statement "Fps = XX.XXX", at the same time do not forget to add "Audio = false" in order to shield the audio stream. You can see the back of course to see how to use various media Eac3to information including frame rate and so on. As you can see, between each of the parameters are, "" separated (in this article are described in the English half-angle punctuation). At this time the script is how it should be: DirectShowSource ( "C: \ your_movie \ filename.grf", Audio = false, Fps = 23.976) Now starts a new line to "ConvertToYV12 ()" added to the script in order to achieve the purpose of converting color gamut (which may only apply to the source of HDTV recording with this useful but harmless). Basic first step done: DirectShowSource ( "C: \ your_movie \ filename.grf", Audio = false, Fps = 23.976) ConvertToYV12 () Cropping (cut, commonly known as "cut the black edges") if we want to cut the video screen, it is necessary to find a bright scene and then the black side of the frame are cut off. If the aspect ratio is not correct, suggest that you cut more than 1-2 pixels in order to achieve the correct ratio. "Crop (0,0, -0, -0)" Left, Top,-Right,-Bottom L, T, R, B values are the absolute value of cutting, but we should pay attention to the right and must be cut at the bottom of together with the negative sign (as opposed to direction). Under normal circumstances we can cut even pixels, but the slight deformation Spline36Resize can cut the odd-numbered pixels. Examples include the following statement: spline36resize (1920,816,0131,0, -133) but this method may lead to a slight loss of quality, so check in advance under the former repressive avs script presented by the performance of the screen. Mod16 & Mod4 in accordance with established practice, we always cut a little more height and width in order to meet the Mod16 or Mod4 (divisible by 16 or 4), to achieve the highest possible compression ratio, Mod2 is also not a bad idea (for a negligible effect on compression ratio) . I will, for example the following detailed description. For example, there is the original video resolution is 1920x1080, I used the "Crop (0144, -0, -136)" became a statement of its crop of 1920x800 resolution, how to determine whether it meets or Mod16 do Mod4? This case: after cutting the width of W = 1920 - (cut off the left + right of the Department of pixels cut off the number of pixels) = 1920, after cutting the height of H = 1080 - (the upper cut off the lower part of the pixel number + cut the number of pixels) = 800W / 16 = 120 W / 4 = 480; H / 16 = 50 H / 4 = 200; are in line with the objective to reach. At this time our script is how it should be: DirectShowSource ( "C: \ your_movie \ filename.grf", Audio = false, Fps = 23.976) ConvertToYV12 () Crop (0144, -0, -136) (if you want to suppress the video does not require deformation, then you can save the avs script, there is no need to continue down to read) Resize (720p deformation) If you want the video to 720p resolution, distortion (1280x ???), you can use the combination of the following statements: If, after cutting the size of the source close to 1920x1080: Spline36resize (1280,720) 1920x1040: Spline36resize ( 1280,688) 1920x816: Spline36resize (1280,544) 1920x800: Spline36resize (1280,536) 1920x800: Spline36resize (1280,528) (the last two cases, depending on what kind of deformation relative to the source, after cutting the screen size of deformation less) If you do not comply with the above situation, it is recommended using the following formula: target after deformation after cutting height = screen height of the source x (1280 / cutting width of the screen after the source) if calculated to the decimal part of the number of odd, please rounding the fractional part of the deformation degree of access that even a smaller value. Now the script is how it should be: DirectShowSource ( "C: \ your_movie \ filename.grf", Audio = false, Fps = 23.976) ConvertToYV12 () Crop (0144, -0, -136) Spline36resize (1280,536) OAR (the ratio of the original show) after the deformation to ensure that the objectives to reach the screen, or close to the ratio of the original show. Mod16 or as much as possible to meet the Mod4. After cutting the screen height of the source / sources after cutting the screen width = OAR Assuming we have a video source file in the post-cut resolution of 1920x1040, while the goal of a high degree of deformation should be 693.33. Of course, not even as a non-parameter deformation and cutting, then we will try to meet the Mod4 or Mod16, the script is as follows: DirectShowSource ( "C: \ your_movie \ filename.grf", Audio = false, Fps = 23.976) ConvertToYV12 () Crop (0144, -0, -136) Spline36resize (1280,692) However, deformation of the individual recommended for 1280x694, although the compression ratio slightly, but compared to the improvement in the ratio of the screen can be ignored. 5, MeGUI MeGUI is a simple suppression of integrated software. When you open MeGUI, he will automatically check for updates are available; If you use MeGUI, recommended the latest version of the x264 will be copied to "\ megui \ tools \ x264 \" where, because of the x264 update MeGUI is not often very quickly. MeGUI in with a lot of pre-set profiles are available: Quote: x264: DXVA-HD-HQx264: DXVA-HD-Insanex264: Unrestricted 2Pass HQ The following are some of MeGUI steps: MeGUI start after the update finished, you can press "ctrl + O" to open the production of good you in advance. Avs file, if you produced. Avs file no problem, you will see the preview. Select the file format. Mkv. Then we come into the profile of the Config: To enter the Config interface, there will be options that will appear in the bottom correspond to the command-line options. If you choose is DXVA-HD-HQ (DXVA can be applied to Gpu with hardware decoding) of the profile, the following is a basic command-line: Quote: program - pass 2 - bitrate 1000 - stats ". Stats" - level 4.1 - ref 4 - mixed-refs - bframes 3 - b-adapt 2 - weightb - direct auto -- deblock -1: -1 - subme 7 - trellis 2 - partitions p8x8, b8x8, i4x4, i8x8 - 8x8dct - vbv-bufsize 50000 - vbv-maxrate 50000 - me umh - threads auto - thread -input - progress - no-psnr - no-ssim - output "output" "input" Need to choose their own parameters, click on the "New", then enter the custom name of the profile, and then save the future, you can quickly select the settings you want. As for the role of parameters x264, on the back. 6, some important basic information x264 HD source as a result of each of the compressibility, the extent of颗粒感, distorting all very different, so you need to make each different source settings in order to achieve the purpose of suppression. a, L4.1 The following is a common resolution of the corresponding reference frames of the most desirable values: Quote :---------------------------- Resolution no. Ref ---------------- ----------- 1280x544 12 1280x720 9 1920x800 5 1920x816 5 1920x1080 4 --------------------------- If your video resolution is not the scope of the above, you can use the following formula for calculating your own encode the largest value of ref: 8388608__________________ (width x height) b, Deblocking As the name suggests, this parameter is used to prevent block (color piles) the occurrence, and here I use one of my comparison Encode For example, what is full of block: http://hdbits.org/details.php?id = 39,888, where that version of the SLO is a typical full of block of Encode, distorted and very serious, serious loss of particles. Caused by block of the main reason is the bit rate, followed by the parameter setting. x264 has two Deblocking units, respectively, called Deblocking strength and Deblocking threshold, Deblocking strength in charge of Alpha Deblocking, Deblocking threshold competent Beta Deblocking (Alpha and Beta Deblocking is the official name). 4. AvsP AvsP apply to all the preparatory work before the suppression. In view of the video you select will be the value passed to the encoders of different ways, you can use almost all the variety of options and filters. We can create a avs script AvsP in order to enter the video into MeGUI. Generated in earlier steps to open the grf files (need to select the browser window, replace all file types), this script language the following statement will appear District: DirectShowSource ( "C: \ your_movie \ filename.grf") If you have already learned about the The movie's frame rate then added in the statement "Fps = XX.XXX", at the same time do not forget to add "Audio = false" in order to shield the audio stream. You can see the back of course to see how to use various media Eac3to information including frame rate and so on. As you can see, between each of the parameters are, "" separated (in this article are described in the English half-angle punctuation). At this time the script is how it should be: DirectShowSource ( "C: \ your_movie \ filename.grf", Audio = false, Fps = 23.976) Now starts a new line to "ConvertToYV12 ()" added to the script in order to achieve the purpose of converting color gamut (which may only apply to the source of HDTV recording with this useful but harmless). Basic first step done: DirectShowSource ( "C: \ your_movie \ filename.grf", Audio = false, Fps = 23.976) ConvertToYV12 () Cropping (cut, commonly known as "cut the black edges") if we want to cut the video screen, it is necessary to find a bright scene and then the black side of the frame are cut off. If the aspect ratio is not correct, suggest that you cut more than 1-2 pixels in order to achieve the correct ratio. "Crop (0,0, -0, -0)" Left, Top,-Right,-Bottom L, T, R, B values are the absolute value of cutting, but we should pay attention to the right and must be cut at the bottom of together with the negative sign (as opposed to direction). Under normal circumstances we can cut even pixels, but the slight deformation Spline36Resize can cut the odd-numbered pixels. Examples include the following statement: spline36resize (1920,816,0131,0, -133) but this method may lead to a slight loss of quality, so check in advance under the former repressive avs script presented by the performance of the screen. Mod16 & Mod4 in accordance with established practice, we always cut a little more height and width in order to meet the Mod16 or Mod4 (divisible by 16 or 4), to achieve the highest possible compression ratio, Mod2 is also not a bad idea (for a negligible effect on compression ratio) . I will, for example the following detailed description. For example, there is the original video resolution is 1920x1080, I used the "Crop (0144, -0, -136)" became a statement of its crop of 1920x800 resolution, how to determine whether it meets or Mod16 do Mod4? This case: after cutting the width of W = 1920 - (cut off the left + right of the Department of pixels cut off the number of pixels) = 1920, after cutting the height of H = 1080 - (the upper cut off the lower part of the pixel number + cut the number of pixels) = 800W / 16 = 120 W / 4 = 480; H / 16 = 50 H / 4 = 200; are in line with the objective to reach. At this time our script is how it should be: DirectShowSource ( "C: \ your_movie \ filename.grf", Audio = false, Fps = 23.976) ConvertToYV12 () Crop (0144, -0, -136) (if you want to suppress the video does not require deformation, then you can save the avs script, there is no need to continue down to read) Resize (720p deformation) If you want the video to 720p resolution, distortion (1280x ???), you can use the combination of the following statements: If, after cutting the size of the source close to 1920x1080: Spline36resize (1280,720) 1920x1040: Spline36resize ( 1280,688) 1920x816: Spline36resize (1280,544) 1920x800: Spline36resize (1280,536) 1920x800: Spline36resize (1280,528) (the last two cases, depending on what kind of deformation relative to the source, after cutting the screen size of deformation less) If you do not comply with the above situation, it is recommended using the following formula: target after deformation after cutting height = screen height of the source x (1280 / cutting width of the screen after the source) if calculated to the decimal part of the number of odd, please rounding the fractional part of the deformation degree of access that even a smaller value. Now the script is how it should be: DirectShowSource ( "C: \ your_movie \ filename.grf", Audio = false, Fps = 23.976) ConvertToYV12 () Crop (0144, -0, -136) Spline36resize (1280,536) OAR (the ratio of the original show) after the deformation to ensure that the objectives to reach the screen, or close to the ratio of the original show. Mod16 or as much as possible to meet the Mod4. After cutting the screen height of the source / sources after cutting the screen width = OAR Assuming we have a video source file in the post-cut resolution of 1920x1040, while the goal of a high degree of deformation should be 693.33. Of course, not even as a non-parameter deformation and cutting, then we will try to meet the Mod4 or Mod16, the script is as follows: DirectShowSource ( "C: \ your_movie \ filename.grf", Audio = false, Fps = 23.976) ConvertToYV12 () Crop (0144, -0, -136) Spline36resize (1280,692) However, deformation of the individual recommended for 1280x694, although the compression ratio slightly, but compared to the improvement in the ratio of the screen can be ignored.
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment