laodai
05-05-2010, 02:45 AM
http://www.vietstuff.org/forums/showthread.php?t=5327
Encoding m720p from 1080p/720p encodes
Wiki article (http://hd-united.com/wiki/index.php/Encoding_m720p_from_1080p/720p_encodes)
This tutorial will guide you through some very basic steps to encode 1080p/720p movies into m-720p. There will be other articles which will discuss about advance x264 settings / tweaks, filters, etc. For those who starts encoding, it is recommended that you start doing some basic stuffs first, then do some experiments yourself. Practice makes perfect, and this is no exception.
First, visit this article: Install MeGUI and tools (http://www.vietstuff.org/forums/showthread.php?t=5327) if you haven't installed MeGUI and tools yet. This tutorial will focus on MeGUI and Windows platform.
Step 0: Preparation
1. Decide which movie you want to encode
You can encode from your Blu-ray discs, 1080p / 720p scene, or non-scene releases.
If you have Blu-ray discs, use AnyDVD or some software at your discretion to convert it to MKV file.
If you download 1080/720p encodes, please favor 1080p over 720p. However, if you have limited internet bandwidth, you can use 720p non-scene releases (with average bit-rates around 6000-8000 kbps). You'll learn how to use some filters and x264 tweaked settings to improve sharpness. But at this moment, let's just keep things simple.
Examine the source. Use mediainfo and take note the following stats: how many GB, video bit-rates, Scan-type: Progressive?, resolution / Aspect Ratio (AR), audio codec, how many channels, subtitle (Y/N)? Play the source to see if any problem occurs during playback.
The example encode used in this tutorial is: Solaris (2002) 1080p HDTV.x264-SiSL.
http://i40.tinypic.com/1z65mcn.jpg
2. Prepare your computer
You need to dedicate your computer for hours to a whole day just for encoding. If you have one computer / laptop and use it daily for work/school, i suggest you think twice about it.
Make sure you have proper cooling system as well.
Step 1: Create AVS script
Open MeGUI, choose Tools - AVS Script Creator
http://i39.tinypic.com/w7ou2d.jpg
Next, click on "..." to choose the source encode. It will open a preview screen of your source. If you make any change (crop/resize/filter), it'll show you the preview of your final screen would be.
Tick the option Clever anamorphic encoding. It will ensure your encode resolution at mod16 (both wide & height is divisible by 16). The reason is some of filters only work with mod16. Then, after resize, i usually untick it. Somehow (i'm not 100% sure), i feel that this option slows down my encode. I need others to verify it, please.
If you have black bars at top & bottom of the source encode, you need to crop them. There is a waste of bit-rates (thus size) to keep them in your encode. Tick Crop, and click Auto crop. You need to check if Auto crop did the job properly by increasing/decreasing dimension pixels.
If you use 720p, there is no need to resize the video, unless it's not mod16 compliance. If your source is 1080p, you need to resize it to 720p. Tick Resize.
You can do a simple math calculation. My source is 1920x816. The default width of 720p encode is 1280. Calculate: 1280 * 816 / 1920 = 544
Or you can tick Suggest Resolution (mod16) and skip the calculation part
http://i41.tinypic.com/2eq4e2s.jpg
Then, click on Filter tab
If your source is an animation, tick on Source is Anime. Otherwise, leave it un-ticked. Click on Analyze for MeGUI to analyze your source type. It may take up to 30min to analyze the source. Some of us usually skip this step, choose Progressive (if source is Bluray) to save time. It is not advised to do so.
Do not use Subtitle function here unless you want hard-sub your movie. You can always mux as many subtitles as you want into MKV container. We'll do that part later.
http://i44.tinypic.com/210gln7.jpg
Then, click on Script tab.
Here, you can apply your filters, i.e. sharpen. We'll discuss about filters in another article. But if you choose a good source, keep it as close to source as possible.
Type
ConvertToYV12()
at the end of the script. It will improve your encode and make everything smoother.
If you first would like to do a sample encode enter the following code at the bottom of the text box: trim(xxxx,yyyy) # xxxx is the starting frame and yyyy is the ending frame so for 500 frames you will type
trim(4736,5236)
Note: our encode has 23.976 FPS
Click on Save
http://i39.tinypic.com/2prv9rl.jpg
Step 2: Select profile to encode video
Now you've created AVS Script. MeGUI will automatically load the preview window and your AVS Script. Close the preview window. Then, click on Config at Encoder Settings.
In this tutorial, we'll keep thing as simple as possible. We'll discuss about advance x264 settings in another article. We'll leave Advance Settings un-ticked this time.
At the bottom of the window, Click on New. Name your profile at your discretion. You'll do a lot of experiments later. Thus, a conventional naming system would be useful.
Choose Automatic 2 pass. Tick Turbo. Choose High Profile as AVC Profile. AVC Level you can choose 4.1. But i'd like to leave it Autoguess.
Select number of threads you want to use to encode, i.e. the number of your physical CPU. Most of us have dual core CPU, we'll enter 2. Or just leave it 0. MeGUI will determine it for you.
Select Presets to Slow. It depends on how powerful your computer (CPU & graphic cards), you can go as slow as you can bear.
Click OK.
http://i40.tinypic.com/5bs7s4.jpg
Step 3: Select profile to encode audio
After you set up the profile to encode the video. Now, let's do the same for audio part. On the main window, choose option Aften AC3 - DVD - Good in Audio section. Then click Config.
You can choose options as the figure. Keep original channels. Unit3d standard for audio is AC3 384 kbps (approx. 300M for 2 hrs movie). You can increase / decrease it at your discretion.
http://i39.tinypic.com/e5gsv7.jpg
Encoding m720p from 1080p/720p encodes
Wiki article (http://hd-united.com/wiki/index.php/Encoding_m720p_from_1080p/720p_encodes)
This tutorial will guide you through some very basic steps to encode 1080p/720p movies into m-720p. There will be other articles which will discuss about advance x264 settings / tweaks, filters, etc. For those who starts encoding, it is recommended that you start doing some basic stuffs first, then do some experiments yourself. Practice makes perfect, and this is no exception.
First, visit this article: Install MeGUI and tools (http://www.vietstuff.org/forums/showthread.php?t=5327) if you haven't installed MeGUI and tools yet. This tutorial will focus on MeGUI and Windows platform.
Step 0: Preparation
1. Decide which movie you want to encode
You can encode from your Blu-ray discs, 1080p / 720p scene, or non-scene releases.
If you have Blu-ray discs, use AnyDVD or some software at your discretion to convert it to MKV file.
If you download 1080/720p encodes, please favor 1080p over 720p. However, if you have limited internet bandwidth, you can use 720p non-scene releases (with average bit-rates around 6000-8000 kbps). You'll learn how to use some filters and x264 tweaked settings to improve sharpness. But at this moment, let's just keep things simple.
Examine the source. Use mediainfo and take note the following stats: how many GB, video bit-rates, Scan-type: Progressive?, resolution / Aspect Ratio (AR), audio codec, how many channels, subtitle (Y/N)? Play the source to see if any problem occurs during playback.
The example encode used in this tutorial is: Solaris (2002) 1080p HDTV.x264-SiSL.
http://i40.tinypic.com/1z65mcn.jpg
2. Prepare your computer
You need to dedicate your computer for hours to a whole day just for encoding. If you have one computer / laptop and use it daily for work/school, i suggest you think twice about it.
Make sure you have proper cooling system as well.
Step 1: Create AVS script
Open MeGUI, choose Tools - AVS Script Creator
http://i39.tinypic.com/w7ou2d.jpg
Next, click on "..." to choose the source encode. It will open a preview screen of your source. If you make any change (crop/resize/filter), it'll show you the preview of your final screen would be.
Tick the option Clever anamorphic encoding. It will ensure your encode resolution at mod16 (both wide & height is divisible by 16). The reason is some of filters only work with mod16. Then, after resize, i usually untick it. Somehow (i'm not 100% sure), i feel that this option slows down my encode. I need others to verify it, please.
If you have black bars at top & bottom of the source encode, you need to crop them. There is a waste of bit-rates (thus size) to keep them in your encode. Tick Crop, and click Auto crop. You need to check if Auto crop did the job properly by increasing/decreasing dimension pixels.
If you use 720p, there is no need to resize the video, unless it's not mod16 compliance. If your source is 1080p, you need to resize it to 720p. Tick Resize.
You can do a simple math calculation. My source is 1920x816. The default width of 720p encode is 1280. Calculate: 1280 * 816 / 1920 = 544
Or you can tick Suggest Resolution (mod16) and skip the calculation part
http://i41.tinypic.com/2eq4e2s.jpg
Then, click on Filter tab
If your source is an animation, tick on Source is Anime. Otherwise, leave it un-ticked. Click on Analyze for MeGUI to analyze your source type. It may take up to 30min to analyze the source. Some of us usually skip this step, choose Progressive (if source is Bluray) to save time. It is not advised to do so.
Do not use Subtitle function here unless you want hard-sub your movie. You can always mux as many subtitles as you want into MKV container. We'll do that part later.
http://i44.tinypic.com/210gln7.jpg
Then, click on Script tab.
Here, you can apply your filters, i.e. sharpen. We'll discuss about filters in another article. But if you choose a good source, keep it as close to source as possible.
Type
ConvertToYV12()
at the end of the script. It will improve your encode and make everything smoother.
If you first would like to do a sample encode enter the following code at the bottom of the text box: trim(xxxx,yyyy) # xxxx is the starting frame and yyyy is the ending frame so for 500 frames you will type
trim(4736,5236)
Note: our encode has 23.976 FPS
Click on Save
http://i39.tinypic.com/2prv9rl.jpg
Step 2: Select profile to encode video
Now you've created AVS Script. MeGUI will automatically load the preview window and your AVS Script. Close the preview window. Then, click on Config at Encoder Settings.
In this tutorial, we'll keep thing as simple as possible. We'll discuss about advance x264 settings in another article. We'll leave Advance Settings un-ticked this time.
At the bottom of the window, Click on New. Name your profile at your discretion. You'll do a lot of experiments later. Thus, a conventional naming system would be useful.
Choose Automatic 2 pass. Tick Turbo. Choose High Profile as AVC Profile. AVC Level you can choose 4.1. But i'd like to leave it Autoguess.
Select number of threads you want to use to encode, i.e. the number of your physical CPU. Most of us have dual core CPU, we'll enter 2. Or just leave it 0. MeGUI will determine it for you.
Select Presets to Slow. It depends on how powerful your computer (CPU & graphic cards), you can go as slow as you can bear.
Click OK.
http://i40.tinypic.com/5bs7s4.jpg
Step 3: Select profile to encode audio
After you set up the profile to encode the video. Now, let's do the same for audio part. On the main window, choose option Aften AC3 - DVD - Good in Audio section. Then click Config.
You can choose options as the figure. Keep original channels. Unit3d standard for audio is AC3 384 kbps (approx. 300M for 2 hrs movie). You can increase / decrease it at your discretion.
http://i39.tinypic.com/e5gsv7.jpg