2-pass encoding

on Saturday, February 23rd 2013 I 0 Comment

With the increasing rates of bandwidth and computing power, the video quality is constantly evolving. Aware of this, we are improving the quality of daily videos encoded by our system.


2-pass encoding

The two pass encoding gives better results than one pass.
 
The first pass considers the
Rate-Distortion methods for video using a first set of quantization parameters (QP). Estimated rates helps to select quantization parameters for the second pass to minimize fluctuations in quality between frames.
 
Let's see how it works in detail:
 
For instance, you have a
2 minutes video. A part of it, is very dynamic, the other part is more static. So that the video can be properly read in HQ, it takes at least 750kbps for the biterate global level.

A biterate of 300kbps is enough to play the static part of the video, and 750kbps is correct for the dynamic part.

When using 1-pass encoding, the process selects 750kbps for both parts, and thus ignores their differences, which leads to a noticeable fluctuation between frames.
 
The 2-pass encoding will not make such mistakes. The use of statistics from the first pass allows the encoder to estimate the value of each frame in bits. This results in a better allocation of bits between the two parties.
 
The first
dynamic part  will get more bits while the second part will have fewer bits.

We must note that there is only one flaw with this technique: The 2-pass encoding is almost 30% slower than 1-pass encoding. So if you are in a hurry, do not use this encoding mode.

For those looking for the best possible encoding, just check the "Enable 2-pass" option, which is on your video settings page Video settings> WebTV

This feature is currently available only for the product WebTV.


Saveria Maroselli
As support manager, Saveria guides you daily while you're using your favorite CMS, but not only,... Know more about this author


New comment:
Facebook Twitter



Last tweets
WMaker Blog | Balise hreflang Vous recevez surement des messages de Google vous indiquant que la balise "rel-a… https://t.co/dk9bGdAYSD
Tuesday, November 28th - 17:58
WMaker Blog | Les ennuis d'OVH de ce matin: Comme vous le savez nous gérons notre propre infrastructure... | #cms… https://t.co/VgPmLN1AkQ
Thursday, November 9th - 16:50
WMaker Blog | Mise à jour des systèmes de paiement Atos et Paybox V2: Si vous utilisez le webservice de... | #cms… https://t.co/6Q0mX7gVaY
Wednesday, November 8th - 16:58
WMaker Blog | Incident sur le serveur de fichier: Samedi 4 novembre entre 2h et 3h du matin CET nous... | #cms… https://t.co/xQEmbuR60q
Saturday, November 4th - 05:08

Photostream

Last comments