Forum     

Go Back   Digit Technology Discussion Forum > Community > Tutorials
Register FAQ Calendar Mark Forums Read

Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit


Reply
 
LinkBack Thread Tools Display Modes
Old 25-11-2011, 10:44 PM   #1 (permalink)
Broken In
 
Join Date: Nov 2011
Location: Jabalpur
Posts: 113
Lightbulb Video Encoding: For Beginners


More and More people have started to use their PCs for Multimedia Playback and Content creation, it is hard to miss how much Video is being shared today by people online.

Most of us have a lot of Movie DVD's ( Originals ) with us that we want to backup, however most people tend to use lousy Software solutions for this, so keeping this in mind I have decided to post a Tutorial how to get good quality backups out of your collection.. I will not explain how to rip copyright protection as it is against forum rules, if you want to learn that find it elsewhere on the web.

This tutorial is for complete beginners who have no clue about video encoding, advance users stay away..

NOTE: This tutorial is for backups of DVDs and Video in general. Blu-ray encoding is not covered because it little more complex. That will be dealt later...

SOFTWARE USED: Handbrake, Why?
Reasons: - Open Source
- Completely Free
- Simple to use, ideal for beginners
- Bloat-free, doesn't come unnecessary crap
- You can get very high quality, with right settings
- You don't need to install anything extra for it to work
- Uses high quality x264 library.
- Available for Windows, Mac, Linux ( Fedora and Ubuntu )

Download stable builds from here: ( 32 and 64-bit )
HandBrake

However I recommend that you download the latest nightly build as they use the latest versions of x264, don't worry I have never faced a single crash myself they work very well... ( 32 and 64-bit )

Download from here: https://build.handbrake.fr/

Windows users also download .NET Package 3.5 from here ( I am not sure if it is required but the developers recommend it: Download: .NET Framework 3.5 Service pack 1 - Microsoft Download Center - Download Details

--------------------------------------------------------------------------

Install and Launch Handbrake

Note. On windows Handbrake minimizes to system tray, this can be changed
in Tools->Options->Advanced

--------------------------------------------------------------------------
--------------------------------------------------------------------------

Step 1.) Add Source File to Handbrake
- Click Source, Video File ( Ctrl+O )
** Handbrake may throw a dialog, close it **

Step 2.) In Destination, click browse and select name and destination of your file.

In Presets click High Profile ( Important )

Step 3.) In Output settings, select MKV Container.

** Container: Contains your Audio, Video, Chapters, etc, MKV is recommended since it supports the largest collection of codecs **

Step 4.) In Pictures tab
- Select Anamorphic to Loose
- Handbrake automatically crops your Video, to remove the ugly bars on top and bottom of your source ( if present ), in rare cases you may have to do it manually.
- Click on Manual button to crop.

Step 5.) Video Filters tab
- Change Detelecine and Decomb to default if they are not
- Decomb will usually get rid of interlacing in your video, if your video has excessive interlacing ( Horizontal lines ) use Deinterlace.
- Detelecine will fix NTSC DVDs framerate ( Rare in India ).

Step 6.) Video Tab
- Select Video Codec to H.264 ( Gives the best quality )
- Leave framerate at Same as source
- If you have a NTSC DVD source select Variable Framerate else select Constant Framerate.
- Select Avg Bitrate, enter bitrate of your choice ( Higher the better )
- Check Two-pass encoding and Turbo First-pass.

** For Quality Backups Select a bitrate between 1500 or 2000, this will help you get a good quality, don't go beyond 2500 for DVDs, it is just wasteful **

** Higher bitrate doesn't always mean better quality, though it is a fair indicator, your encoding settings matter the most **

Step 7.) Audio Tab
- Select Audio Codec to be AAC ( ffmpeg ) or AC3 ( ffmpeg ), for best quality use passthru versions.
- Select Audio bitrate, higher the better. ( 192-320 Recommended)
- Leave the rest as it is.
Step 8.) Subtitles Tab
- If your source contains Subtitle, you will see them here, you can chose to remove them if you want ( Recommended )

Step 9.) Chapters Tab - Really no need to get into this, skip...

Step 10.) Advanced Tab

- Reference Frames - Higher the better, don't go over 6
* Recommended Value - 6 *

- Maximum B-Frames - Higher the better, keep between 4-6
* Recommended Value - 6 *

- Check CABAC Entropy Coding, 8x8 Transform and Weighted P-frames
- Pyradimal B-Frames - Normal ( Default )

- Adaptive B-frames - Change to Optimal

- Adaptive Direct Mode - Change to Automatic

- Motion Estimation Method - Change to Uneven-Multihexagon
* Don't go beyond Unveven Mult-Hex, excruciatingly slow - no visible quality gain*

- Subpixel ME & Mode Decison - Keep between 7 & 11
* Recommended - 10 or 11 *
* Stable builds don't have 11 *

- Motion Estimation Range - Keep between 16 & 32
* Recommended - 32 *

- Adaptive Quantization Strength - Leave it as it is

- Psychovisual Rate Distortion - Leave as it is

- Psychovisual Trellis - Leave as it is or try between 0.15-0.20
* Recommended - 0.15 will do for variety of sources *
* To see the change, see the change in the text box below *
== It should read psy-rd:1.00,0.15 == ( psy-rd is experimental )

- Partition Type - Change to all

- Trellis - Change to Always

- Deblocking - If you want to
- Sharpen the video a bit: -2 , -1
- Smooth out ugly blocks: 1 , 2
- General use: Default, Default
* Don't go lower than -2 or higher than 3 *

* Keep No-DCT Decimate unchecked *

NOTES: The recommended settings are meant for maximum quality, but will come at cost of speed, so tinker around a bit.

Review your settings again.


HIT START and leave your computer alone, encoding is time and resource consuming so be patient. Quality Encodes require time.

Happy Encoding!
Ask your queries if you want..

================================================== ================================================== ======================================
================================================== ================================================== ======================================

ADVANCED SETTINGS IN DETAIL:
----------------------------------------


Video is made of frames, like 1 second of video contains 24 frames.....
When these frames, are played back at high speed it gives an illusion of movement which we call video..

Now these frames are not the same...
Modern video consists of 3 types of frames

- Intra ( I ) frames, also called keyframes
- B - Frames or Bidirectional frames
- P - Frames or Predictive frames

The way modern video is reproduced is such that frames reference each other... i.e... they look into the differences between them and are then recreated...
let me explain more clearly... suppose you have a 1 second video of an apple moving across a static background.....

Now out of the 24 frames of video, one frames let us say X1 will have entire data about the frame ( i.e apple, screen )....
The next frames will however will only contain information about the apple... when these frames are accessed then the image is recreated using this frame + from the information from X1 frame...

The frames which are referenced are called reference frames... obviously this is highly simplified here.. in reality its really more complex...
Anyways - These 3 frames differ from each other in some ways...

1.) I-Frames: The I frame stores the entire image and so are the least compressible. Video seeking requires I-frames. I-Frames are referenced the most in video..

2.) P-Frames: P-frames store the difference between itself and an I-frame or other P-frames. P-Frames can be referenced however they don't store as much as data as I-Frames because they are compressed more than I-Frames.

3.) B-Frames: B frames also store the differences between itself and other frames as well but they can't be referenced so they are the most compressible. x264 has a feature though called B-Pyramid though through which B-Frames can reference other B-Frames... more on that later....

So as we can see... in nutshell.

Reference frames: Higher you have better quality you have.. however it is pointless to go over the 8 because only finite number of frames can be referenced..
More you have lesser compressed the video will be and slower will be the compression..

B-Frames: Same as above... don't go over 6 as B-frames are the most compressed higher values will increase encoding time exponentially with no quality gains..

CABAC Entropy Coding: This is one of the last stages in encoding... After a video is encoded it can be compressed further by applying lossless compression just like zip files....
Now this can be done in two ways either by using CABAC or CAVLC.. CABAC is extremely efficient it brings down your video size by at least 15%... but it is highly resource intensive...
Think of the difference between CABAC and CAVLC as the difference between 7z and Zip format however more complex..

Pyramidal B-Frames: Turns on B-frame Pyramid option, which allows B-frames to be used as references for other B-frames. Atleast 2 B-frames are required... Normal option gives more flexibility to the encoder to use B-Frames reference wherever required therefore this is the recommended option...

Weighted B-Frames: Improves compression and fades in scenes with gradual transition.. keep this on at all times for quality....

Adaptive B-Frames: This allows x264 to determine the number of B-frames to use (within the set B-frames limit ). Setting to Optimal means x264 makes more accurate predictions... keep it atleast to On.

Adaptive Direct Mode: While x264 analyses frames it does so in either two ways.. Spatially which means it searches for differences in current frame itself or searches for differences between other frames called Temporal.. because of the way video is composed.. spatial is used in 90% cases .... it is good idea to keep it at Auto ( hardly any loss of speed ) and let x264 decide from scene to scene... The result in most cases will be like Temporal- 15%, Spatial- 85%.

Motion Estimation: This option selects the way motion is detected by x264. Motion is what compression codecs are all about, tracking differences between scenes to allocate the various frame types and bitrates. These are of currently 5 type which decide which algorithm to use

Diamond: Very fast but bad quality.. use it for quick dirty encodes..
Hexagon: Nice quality and good speed.... use this if you want to have decent quality video available.
Uneven-Multi Hex: Brilliant quality.. but it is quite slow.. use this if you want great quality encodes...
Exhaustive & Transformed Exhaustive: These are incredibly slow and will make you tear your hair out... In this case instead of Block search, pixel search is used and therefore it is very slow.. The difference between these and UMH is almost negligible and the speed cost is very high.. These two are used for testing purposes..

Subpixel Motion Estimation: A very important option that determines how x264 makes decisions about motion estimation. 1 is fastest and dirtiest and 11 is slowest and of best quality..
Don't go below 6 as below 6 it will disable some important features of x264 which preserve quality... 11 or 10 gives best quality...

How frames are encoded ( Simple ): Frames are encoded by dividing the frame into small square blocks, and then Motion estimation is done on these blocks to do prediction...
These blocks are called Macroblocks.. you might have noticed that in cases of badly encoded video what you always see are ugly square shaped artifacts cropping up in video .... these are the edges of the macroblocks when they were being encoded... this happens because algorithms for motion estimation work on separate blocks without sharing info with other block ( hope this is changed in H.265 ), so the edges sometimes get defined when bad encoding techniques are used.. Notes on this topic later...

Motion Estimation Range: This setting defines how many pixels are analyzed for motion estimation. Higher range values result in a more accurate analysis, but will also slow down the encoding speed significantly... 16 - 32 are great values.. you can go higher but it won't give more quality...

Partitions: These options determine the partition search types. Enable all to improve quality.. what this means is that x264 will divide video in smaller macroblocks for Motion Estimation.. at the expense of speed.. turn it "All" to improve quality... these are P4x4,P8x8

Trellis: This option improves the rounding of Transform coefficients... This is very resource intensive but also gives great quality... Use only in multi-pass encoding and use atleast 1.
( Transform Coefficients: This is tough to explain without maths ... All current encoders work on the basis of an algorithm called DCT ( Direct Cosine Transform ) and these coefficients are part of this process... Discussion of this just off the scope so lets leave it at that.

8x8 Transform: This option has been separated from others because it has a different command line flag. This enable 8x8 transforms... highly recommended to leave this on. Adaptive DCT should be on.. in handbrake its on by default...

Psycho-visually optimized RDO & Trellis: The human eye doesn't just want the image to look similar to the original, it wants the image to have similar complexity. Therefore, we would rather see a somewhat distorted but still detailed block than a non-distorted but completely blurred block. The result is a bias towards a detailed and/or grainy output image, a bit like xvid except that its actual detail rather than ugly blocking. The purpose of Psy RDO is to keep the complexity of an encoded block similar to the complexity of the original block. This way Psy RDO produces an image that looks much sharper and more detailed in many cases. It also helps to preserve film grain greatly! In addition to Psy RDO there also is Psy-Trellis now. This is still considered an “experimental” feature and disable by default, but it seems to help greatly for retaining textures in the video. Note that Psy Trellis is based on Trellis quantization.

Psy RDO Strength: This setting controls the strength of Psy RDO. For normal stuff use 1.0 ( Psy-RDO is now automatic, strength just limits it ), For Animation it should be lowered to 0 or 0.2.. Why? Difficult to explain here without maths...Just accept it as a tricky beast.. ( Note: When I say animation I mean 2d cartoons like Japanese Animie not Pixar movies )

Psy Trellis Strength: This setting controls the strength of Psy Trellis. The default value is 0.0 currently, so Psy Trellis will be disabled by default. For most sources 0.15 to 0.20 will do.. don't use for animation though... I really don't understand this feature properly myself ......Sorry! I can't explain more...

Adaptive Quantization Strength: This feature tells x264 how to distribute bits... default is 1.0.. .. This is a psy-feature.. Example- Suppose we have a scene where we have a character illuminated by torchlight, his face is visible greatly but his surroundings are darker.... What Adaptive Quantization does it that it decides that a viewer's focus will be on the face rather that the shadows so it assigns more bits to the face... Cool isn't it .. The strength factor decides this 0 means bits are distributed evenly... 1.0 is default and is good for almost all sources.. most video has portion with contrasting lighting....don't touch this if you don't understand it... for animie lower it to 0.2 or 0.. most animie has simple color grading, virtually no contrasting lighting if think of it....

Deblocking: Mandatory feature of H.264, always enabled in handbrake......
Its defined like this: 1,0,0 ( On, Strength, Threshold )... Just think of a filter which decides how much smoothness to apply to video.. ( Note this is not a correct description of deblocking, its complete discussion is beyond the scope of this text, Amazingly many encoders*People* make this mistake and crank up deblocking to negative values thinking it increases sharpness, ending with artifacts and longer encoding times which could have been avoided... Yeah I am talking about all your Secetmyth, HD-lite stuff.... )

In handbrake it is always turned on....no matter what.. you can't turn it of neither you should....

Strength: This setting is also called “Alpha Deblocking”. It controls how much the Deblocking filter will smooth the video, so it has an important effect on the overall sharpness of your video. The default value is 0 and is good enough for everything. Negative values will give a more sharp video, but they will also increases the danger of visible block artifacts! In contrast positive values will result in a smoother video, but they will also remove more details.

Threshold: This setting is also called “Beta Deblocking” and it's more difficult to handle than Alpha Deblocking. It controls the threshold for block detection. The default value is 0 and should be enough to detect all blocks in your video. Negative values will “save” more details, but more blocks might slip through. In contrast positive values will remove more details and catch more blocks.

In general 0,0 is always good.... for all purposes... don't touch it unnecessarily if you don't need it as it greatly affects speed and quallity...

No DCT Decimation: Just don't touch this.. keep it unchecked... In rarest of rare cases some blocks appear in sources with straight gradients and checking it avoids it but may produce artifacts elsewhere in the video .. meaning just don't touch it...........

Phew! This covers the options exposed by Handbrake... Many more incredibly important options which usually expert encoders tweak are not shown by Handbrake as this program is meant for general purpose encoding.... To tweak these use the x264 CLI directly or MeGUI.... On these way later...

Note all explanations given above, I tried to make them as simple as I could, but in reality these things highly complex and explaining them like that will fill tomes... so I have avoided them...
I Hope this helps..... Good Luck.... Please provide feedback to improve his article....

Last edited by RahulB; 26-11-2011 at 09:50 PM. Reason: Language improvement, requested additions
RahulB is offline   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 25-11-2011, 11:54 PM   #2 (permalink)
BIOS Terminator
 
nims11's Avatar
 
Join Date: Apr 2008
Location: Ranchi
Posts: 820
Default Re: Video Encoding: For Beginners

You could have explained what the settings mean. anyways, nice!
__________________
Arch Linux is kind of a bonzai tree, over years u try new things, make small tweaks, and end up with a system that is unique, elegant, and does exactly what u designed it to do.
Hostapd : The Linux Way to create Virtual Wifi Access Point
My Blog
nims11 is online now   Reply With Quote
Old 25-11-2011, 11:58 PM   #3 (permalink)
Simply a DIGITian
 
krishnandu.sarkar's Avatar
 
Join Date: Nov 2007
Location: Kolkata
Posts: 2,956
Default Re: Video Encoding: For Beginners

Nice
__________________
  • Read The Forum RULES First.
  • Before PM'ing Or Asking Any Questions To Any Mod Read The FAQ's
  • Before Starting A New Thread Read The STICKY THREADS First
  • Before Participating In Bazaar Section Read The BAZAAR RULES
krishnandu.sarkar is online now   Reply With Quote
Old 26-11-2011, 12:55 AM   #4 (permalink)
VIP
 
RazorbladeXtreme's Avatar
 
Join Date: May 2008
Location: Jaipur
Posts: 187
Default Re: Video Encoding: For Beginners

I hope this can help me convert the .dat video files from CD's MPEG-AV folder into a size justifying their quality.
__________________
Twitter: twitter.com/SharmaTushar
Facebook: facebook.com/tushar.sharma
RazorbladeXtreme is offline   Reply With Quote
Old 26-11-2011, 10:10 AM   #5 (permalink)
Apprentice
 
Join Date: Jan 2010
Location: Kolkata
Posts: 56
Default Re: Video Encoding: For Beginners

Describe the settings little bit more is much appreciated.
btw really nice,thanks...
doom2010 is offline   Reply With Quote
Old 26-11-2011, 12:10 PM   #6 (permalink)
Broken In
 
Join Date: Nov 2011
Location: Jabalpur
Posts: 113
Default Re: Video Encoding: For Beginners

If you hover, the mouse over the settings you will get very nice tooltips, the reason didn't elaborate them much was becuase I didn't want to overwhelm new users.. still will elaborate them in an upcoming edit..
__________________
Salt and Pepper!
RahulB is offline   Reply With Quote
Old 26-11-2011, 03:56 PM   #7 (permalink)
In The Zone
 
Niilesh's Avatar
 
Join Date: Apr 2011
Location: Jaipur
Posts: 395
Default Re: Video Encoding: For Beginners

Quote:
Originally Posted by RahulB View Post
If you hover, the mouse over the settings you will get very nice tooltips, the reason didn't elaborate them much was becuase I didn't want to overwhelm new users.. still will elaborate them in an upcoming edit..
ya please elaborate them. I will be looking forward to it.
BTW it's a nice Tutorial.
hey how's MeGUI for encoding?
Niilesh is online now   Reply With Quote
Old 26-11-2011, 05:14 PM   #8 (permalink)
Broken In
 
Join Date: Nov 2011
Location: Jabalpur
Posts: 113
Default Re: Video Encoding: For Beginners

MeGUI is my default application for encoding however it is quite advanced... this post is for beginners... however if you are familiar with advance concepts like like filters, frames, ME etc... then suggested tool for encoding is MeGUI
__________________
Salt and Pepper!
RahulB is offline   Reply With Quote
Old 26-11-2011, 05:29 PM   #9 (permalink)
BIOS Terminator
 
nims11's Avatar
 
Join Date: Apr 2008
Location: Ranchi
Posts: 820
Default Re: Video Encoding: For Beginners

ffmpeg if you are comfy with command line
__________________
Arch Linux is kind of a bonzai tree, over years u try new things, make small tweaks, and end up with a system that is unique, elegant, and does exactly what u designed it to do.
Hostapd : The Linux Way to create Virtual Wifi Access Point
My Blog
nims11 is online now   Reply With Quote
Old 26-11-2011, 06:00 PM   #10 (permalink)
Off for a while.
 
dashing.sujay's Avatar
 
Join Date: Nov 2009
Location: Bhopal
Posts: 2,653
Default Re: Video Encoding: For Beginners

Good job Rahul. I had heard about handbrake long ago used by axXxo and their counterparts Definitely I'll try this, sadly I've left encoding long ago Till date, I used mediacoder

PS- Adding some "simple" explanations of technical jargons would be better
__________________
Sony Vaio CB35-> i5-2430M | 6630M | 4GB | 1080p | Backlit Keyboard

Read before asking / messaging any moderator for any query: FAQ + answers for new members

Drop Box: Get 500MB free


Last edited by dashing.sujay; 26-11-2011 at 06:09 PM.
dashing.sujay is online now   Reply With Quote
Old 26-11-2011, 08:23 PM   #11 (permalink)
Broken In
 
Join Date: Nov 2011
Location: Jabalpur
Posts: 113
Default Re: Video Encoding: For Beginners

There you go people, the post has been edited to add explaining the options in as easy way I can... Please give feedback for the improvement of the post... ENJOY....
__________________
Salt and Pepper!
RahulB is offline   Reply With Quote
Old 26-11-2011, 08:57 PM   #12 (permalink)
Off for a while.
 
dashing.sujay's Avatar
 
Join Date: Nov 2009
Location: Bhopal
Posts: 2,653
Default Re: Video Encoding: For Beginners

Its perfect now
__________________
Sony Vaio CB35-> i5-2430M | 6630M | 4GB | 1080p | Backlit Keyboard

Read before asking / messaging any moderator for any query: FAQ + answers for new members

Drop Box: Get 500MB free

dashing.sujay is online now   Reply With Quote
Old 26-11-2011, 09:09 PM   #13 (permalink)
Broken In
 
Join Date: Nov 2011
Location: Jabalpur
Posts: 113
Default Re: Video Encoding: For Beginners

Thanks... will try to post more tutorials like these
__________________
Salt and Pepper!
RahulB is offline   Reply With Quote
Old 26-11-2011, 09:39 PM   #14 (permalink)
Dust in the Wind
 
Skud's Avatar
 
Join Date: Jun 2004
Location: 10 light years away
Posts: 6,701
Default Re: Video Encoding: For Beginners

Now its really something.
__________________
Gaming Rig:
Spoiler:
i7 2600K || CM N620 || ASUS P8Z68 Deluxe || 2x4GB GSkill RipjawsX 1600MHz || OCZ Vertex 3 120GB || Razer Cyclosa Bundle || Sapphire 6950 1GB || BenQ G2420HD || Corsair HX750 || Lancool K62 || Altec Lansing VS2421 || ASUS Vulcan ANC || NZXT Sentry Mesh

HTPC Rig:
Spoiler:
C2D E7400 || Gigabyte EP45-DS3R || 2x2GB DDR2 800 || 9TB || MS Wireless Desktop 2000 || Gigabyte 5770 || Samsung 32" || Seasonic SII 520W || Silverstone LC10

Samsung Galaxy R I9103


Will be off/irregular for a month...
Skud is offline   Reply With Quote
Old 26-11-2011, 10:02 PM   #15 (permalink)
Broken In
 
Join Date: Nov 2011
Location: Jabalpur
Posts: 113
Default Re: Video Encoding: For Beginners

I'll improve the language of this post a bit, the word structure is little crusty.. I posted this in a hurry.. in one sitting so... Please tell if anything needs to be added, then I can add the requested info and then edit the entire post to improve the language and formatting...
__________________
Salt and Pepper!
RahulB is offline   Reply With Quote
Old 27-11-2011, 01:04 AM   #16 (permalink)
TDF Sucks
 
Join Date: Apr 2008
Posts: 1,884
Default Re: Video Encoding: For Beginners

Is it possible to get an identical video as the DVD/BD itself while transcoding?
__________________
TDF Sucks.
Extreme Gamer is offline   Reply With Quote
Old 27-11-2011, 02:10 AM   #17 (permalink)
Off for a while.
 
dashing.sujay's Avatar
 
Join Date: Nov 2009
Location: Bhopal
Posts: 2,653
Default Re: Video Encoding: For Beginners

^^I guess using h.264/matroska, you can get real good results.
__________________
Sony Vaio CB35-> i5-2430M | 6630M | 4GB | 1080p | Backlit Keyboard

Read before asking / messaging any moderator for any query: FAQ + answers for new members

Drop Box: Get 500MB free

dashing.sujay is online now   Reply With Quote
Old 27-11-2011, 02:25 PM   #18 (permalink)
Broken In
 
Join Date: Nov 2011
Location: Jabalpur
Posts: 113
Default Re: Video Encoding: For Beginners

Its impossible to get identical video... everytime you encode you lose data ( quality loss ), however you can get great results with correct settings... the video looks almost as good as original... Example I encoded my Blu-ray disc ( main movie, original size: 30GB, bitrate 31MBps, 1080p ) of Star Trek to a MKV file of size 4.7GB ( Video bitrate, 4.6 Mbps, H.264, 720p), and the results are virtually indistinguishable, ofcouse it took my PC ( i7, 8GB Ram ) almost 18 Hours... but it is possible... these are the settings I used.... ENCODED USING x264, interface MeGUI..

ORIGINAL MOVIE ( Media Info )..

------------------------------------------------------------------------------------

Format : Matroska
Format version : Version 2
File size : 29.3 GiB
Duration : 2h 6mn
Overall bit rate mode : Variable
Overall bit rate : 33.1 Mbps
Encoded date : UTC 2011-02-21 12:18:53
Writing application : mkvmerge v4.5.0 ('Speed of Light') built on Feb 1 2011 02:10:32
Writing library : libebml v1.2.0 + libmatroska v1.1.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 2h 6mn
Bit rate mode : Variable
Bit rate : 31.8 Mbps
Maximum bit rate : 34.5 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.639
Stream size : 28.2 GiB (96%)
Title : Star Trek
Default : Yes
Forced : No
Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics : BT.709-5, BT.1361
Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : A_AC3
Duration : 2h 6mn
Bit rate mode : Constant
Bit rate : 640 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 581 MiB (2%)
Title : Star Trek
Language : English
Default : Yes
Forced : No
------------------------------------------------------------------------------------

My Encode...

------------------------------------------------------------------------------------

Format : Matroska
Format version : Version 2
File size : 4.69 GiB
Duration : 2h 6mn
Overall bit rate : 5 292 Kbps
Encoded date : UTC 2011-02-25 09:06:29
Writing application : mkvmerge v4.5.0 ('Speed of Light') built on Feb 1 2011 02:10:32
Writing library : libebml v1.2.0 + libmatroska v1.1.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 8 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 2h 6mn
Bit rate : 4 661 Kbps
Width : 1 280 pixels
Height : 528 pixels
Display aspect ratio : 2.40:1
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.288
Stream size : 4.03 GiB (86%)
Title : Star Trek by Rahul
Writing library : x264 core 114 r1913 5fd3dce
Encoding settings : cabac=1 / ref=8 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.20 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=6 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=4661 / ratetol=4.0 / qcomp=0.60 / qpmin=10 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=2:1.00
Default : Yes
Forced : No
Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics : BT.709-5, BT.1361
Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : A_AC3
Duration : 2h 6mn
Bit rate mode : Constant
Bit rate : 640 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 581 MiB (12%)
Title : Star Trek Audio Core
Language : English
Default : Yes
Forced : No

------------------------------------------------------------------------------------
Irrespective of length, a video bitrate of 4000-5000 Kbps ( for video , 720p...), 7000-8000 Kbps ( video , 1080p ) with great settings will give excellent quality which is indistinguishable from the original, my encode has not a single block....

Good settings are required... All these rips on internet you see are usually of bad quality... Expert encoders are quality freaks and they usually don't share their rips.. they trade sample clips, and discuss how quality can be improved...

Sample....
Encoder 1: Hey here is the sample...
Encoder 2: Great quality, but at frame 817 I can see some decimation
Encoder 1: Yeah, I noticed that... x264 can't seem to calculate bit ratio, for the frame.
Encoder 2: Did you try changing ip ratio.
Encoder 1: using 1.41.
Encoder 2: Doesn't it produces for fast motion artifacts...
Encoder 1: Can't go over, will cause blurring in slower seens... Trying some xxxx filters...
Encoder 2: Switch Lancroz..
Encoder 1: Using Spline64, problem solved... Encoding ( ** Encoding entire movie again, because of a artifact in a single frame ** )

This how crazy people can get....
__________________
Salt and Pepper!
RahulB is offline   Reply With Quote
Old 27-11-2011, 06:11 PM   #19 (permalink)
Off for a while.
 
dashing.sujay's Avatar
 
Join Date: Nov 2009
Location: Bhopal
Posts: 2,653
Default Re: Video Encoding: For Beginners

I guess it'll take at least 2 days for my i5+4GB

BTW 4k-5k bit rate is enough for a sub 30inch display I guess.
__________________
Sony Vaio CB35-> i5-2430M | 6630M | 4GB | 1080p | Backlit Keyboard

Read before asking / messaging any moderator for any query: FAQ + answers for new members

Drop Box: Get 500MB free

dashing.sujay is online now   Reply With Quote
Old 27-11-2011, 06:58 PM   #20 (permalink)
Broken In
 
Join Date: Nov 2011
Location: Jabalpur
Posts: 113
Default Re: Video Encoding: For Beginners

4k-5k is good enough for ant 720p video.. here we are obviously talking about advanced encoding using x264 right...Its good enough for a 55 inch..... Which software are you using for encoding videos, blu-ray, etc..
__________________
Salt and Pepper!
RahulB is offline   Reply With Quote
Old 27-11-2011, 08:31 PM   #21 (permalink)
Off for a while.
 
dashing.sujay's Avatar
 
Join Date: Nov 2009
Location: Bhopal
Posts: 2,653
Default Re: Video Encoding: For Beginners

4k-5k enough for 55inch? I'll try it on my new bought samsung 42inch this time. I normally used Super/mediacoder. I used to be a encoding freak long ago (good 700mb days), then left, now back again with my lappi I had thought to use handbrake too, but never gave it a shot, will give it soon.
__________________
Sony Vaio CB35-> i5-2430M | 6630M | 4GB | 1080p | Backlit Keyboard

Read before asking / messaging any moderator for any query: FAQ + answers for new members

Drop Box: Get 500MB free

dashing.sujay is online now   Reply With Quote
Old 27-11-2011, 10:10 PM   #22 (permalink)
TDF Sucks
 
Join Date: Apr 2008
Posts: 1,884
Default Re: Video Encoding: For Beginners

@Rahul: Any good GPU accelerated encoders that preserve quality and can use more than 1 GPU simultaneously?(Not badaboom).
__________________
TDF Sucks.

Last edited by Extreme Gamer; 27-11-2011 at 10:16 PM.
Extreme Gamer is offline   Reply With Quote
Old 27-11-2011, 10:49 PM   #23 (permalink)
Broken In
 
Join Date: Nov 2011
Location: Jabalpur
Posts: 113
Default Re: Video Encoding: For Beginners

I am not sure, Extreme Gamer I don't use GPU encoders because of their horrible quality... and note that you can achieve the same speed and better quality of any GPU encoder by using x264's ultrafast or superfast preset.... There are other encoders like Arcsoft and Cyberlink plus AMD's own Encoder ( I have a AMD Card myself ) but I was never impressed by them... I know of a fact that MediaCoder does have GPU based encoders and decoders... ( Sure that it has CUDA encoders not sure about AMD support )... Give it a whirl... It is add supported I guess.. Haven't used anything beyond x264 for a long time..
__________________
Salt and Pepper!
RahulB is offline   Reply With Quote
Old 27-11-2011, 11:04 PM   #24 (permalink)
TDF Sucks
 
Join Date: Apr 2008
Posts: 1,884
Default Re: Video Encoding: For Beginners

I would only encode in x264 or h264, and i'd love speed while maintaining quality
__________________
TDF Sucks.
Extreme Gamer is offline   Reply With Quote
Old 27-11-2011, 11:51 PM   #25 (permalink)
Off for a while.
 
dashing.sujay's Avatar
 
Join Date: Nov 2009
Location: Bhopal
Posts: 2,653
Default Re: Video Encoding: For Beginners

CPU decoders ftw EG, GPU accel^n will take time IMO.
__________________
Sony Vaio CB35-> i5-2430M | 6630M | 4GB | 1080p | Backlit Keyboard

Read before asking / messaging any moderator for any query: FAQ + answers for new members

Drop Box: Get 500MB free

dashing.sujay is online now   Reply With Quote
Old 28-11-2011, 04:12 PM   #26 (permalink)
TDF Sucks
 
Join Date: Apr 2008
Posts: 1,884
Default Re: Video Encoding: For Beginners

ok.

thanks.
__________________
TDF Sucks.
Extreme Gamer is offline   Reply With Quote
Old 28-11-2011, 05:27 PM   #27 (permalink)
Off for a while.
 
dashing.sujay's Avatar
 
Join Date: Nov 2009
Location: Bhopal
Posts: 2,653
Default Re: Video Encoding: For Beginners

Also, since encoding is heavily multi-threaded, CPU takes the full advantage of it leaving GPU far behind.
__________________
Sony Vaio CB35-> i5-2430M | 6630M | 4GB | 1080p | Backlit Keyboard

Read before asking / messaging any moderator for any query: FAQ + answers for new members

Drop Box: Get 500MB free

dashing.sujay is online now   Reply With Quote
Old 28-11-2011, 08:43 PM   #28 (permalink)
Alpha Geek
 
Join Date: Jun 2008
Posts: 500
Default Re: Video Encoding: For Beginners

I agree but pure gpu is not recommended. In most cases cpu is good quality and multi cores are good to go. . Gpu based acceleration will reduce some time. But a full movie will take hours time when compared to small clips of 10-30 min.

If you need good quality improvement over current get mediaexpresso. If decent quality within existing then xilsoft or nero video
__________________
Intel I5 2500K@4.3GHZ OC : Corsair Force 3 SSD 120gb: GSKILL 8GB 2X4GB 1600MHZ: Asus P8Z68 V: ZOTAC GTX 560TI 1GB DDR5:CORSAIR GS800 :Corsiar 400R :NZXT SENETRY2 :THERMALRIGHT SILVER ARROW: LG E2360V 23" : Logitech MX518:
macho84 is offline   Reply With Quote
Old 28-11-2011, 11:27 PM   #29 (permalink)
Broken In
 
Join Date: Nov 2011
Location: Jabalpur
Posts: 113
Default Re: Video Encoding: For Beginners

Quote:
Originally Posted by dashing.sujay View Post
Also, since encoding is heavily multi-threaded, CPU takes the full advantage of it leaving GPU far behind.
Plus a GPU is a parallel processor unlike the CPU.... Porting x264 is impractical and unnecessary to current GPU's, direct compute is still infancy, and Microsoft just announced C++/AMP, poting in CUDA or OpenCL with make x264 platform dependent, obviously authors wont do that. x264 is very fast at ultrafast ( for quick dirty encodes ) while still giving better quality than any GPU encoder out there... you'll get better results with it... No GPU encoder contains x264's like Psyco-Visual enhancements..... Use MeGUI.... Tutorial coming soon, from Basic to advanced...
__________________
Salt and Pepper!
RahulB is offline   Reply With Quote
Old 28-11-2011, 11:44 PM   #30 (permalink)
Crowman
 
Krow's Avatar
 
Join Date: Mar 2009
Location: New Delhi
Posts: 4,050
Default Re: Video Encoding: For Beginners

Really good. I was looking for a handbrake guide like this one long ago. Couldn't find it then. Anyway thanks for posting.
__________________
Thinkdigit Forum Workspace Showoff Contest

Spoiler:
Abusive, offtopic post? Use the report post button.
Read before messaging any moderator for any query: FAQ + answers for new members
Read all the sticky threads before asking any type of query. Most basic questions are answered in those.

Ignorance of FORUM RULES is no defence.
Krow is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Who
- by Krow
- by clmlbx
- by Tech&ME
- by icebags

Advertisement




All times are GMT +5.5. The time now is 08:56 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2