Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
24th November 2015, 00:49 | #1 | Link |
Registered User
Join Date: Nov 2015
Posts: 1
|
how can you compress lossless specific area
Hi all,
I have a project where I is an important area (eg sheet of paper with the text) should compress with good quality in the HEVC video that background but with bad quality. The range varies from frame to frame, but I know location of each area. How can I tell the HEVC where it qt is set to 0, and where it is on 51. Best Regals Mark Tamaev |
24th November 2015, 01:01 | #2 | Link | ||
Registered User
Join Date: Jan 2010
Posts: 709
|
try zones
Quote:
Quote:
__________________
powered by Google Translator |
||
24th November 2015, 17:57 | #3 | Link |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,750
|
Those are per-frame settings, not to define a region in a frame.
The old VC-1 PEP/CineVision PSE had the ability to override settings per macroblock in a frame. It's not conceptually hard, but needs an API and some tweaks (potentially challenging) to the rate control algorithms). |
24th November 2015, 18:57 | #4 | Link |
ангел смерти
Join Date: Nov 2004
Location: Lost
Posts: 9,558
|
The only way to do this in x265 is to write a program to call the internal C++ API and set *quantOffsets for each frame, or to modify the command-line to read the data from a file or whatever. There's no way to do it through the standard command-line.
There may be other implementations that build in the capability, I don't know them. |
25th December 2015, 16:27 | #5 | Link |
Registered User
Join Date: May 2002
Location: Czech rep.
Posts: 390
|
If you need it - you can override it by blurring (or using another filter heavily helping to compression, etc.) of the specific area of frame. The blurred area needs logically much less bitrate.
Analogy of this, i was using at divxrip compression - main part of movie resized by lanczos, and begin/final credits by bilinear (bilinear is much more compressible than lanczos).
__________________
Czech DivX/XviD discussion club Last edited by HarryM; 25th December 2015 at 16:32. |
27th December 2015, 19:46 | #6 | Link |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,750
|
Also, if you have highly detailed but static elements that you want to preserve, try --cu-lossless. That will try using lossless encoding for blocks, and pick it if it has the best RDO. It should be helpful for things like line art and other synthetic areas with flat colors, sharp edges, and no noise.
@HarryM, I find area to be better than either for scaling credits for big ratios. With moving text, aliasing errors can wind up being different as sub-pixel alignment varies. |
30th December 2015, 05:44 | #7 | Link |
Guest
Posts: n/a
|
As FoxyShadis alluded to, in the x265 API we have a feature that supports "region of interest optimization". See x265.h, line 214.
/* An array of quantizer offsets to be applied to this image during encoding. * These are added on top of the decisions made by rateControl. * Adaptive quantization must be enabled to use this feature. These quantizer * offsets should be given for each 16x16 block. Behavior if quant * offsets differ between encoding passes is undefined. */ float *quantOffsets; We will add the capability to support this (one set of offsets for the whole encode) in the command line when we get a chance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|