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. |
17th June 2014, 23:26 | #961 | Link | |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
CRF and 2-pass ABR will differ significantly without lookahead, but disabling lookahead disables so many useful features that there's a good reason only the zero-latency profile does. Technically 2-pass always gets the benefit of a near-infinite lookahead, and therefore some choices will differ, but realistically the benefit of larger lookahead falls off pretty quickly.
Quote:
Code:
CHECK(param->rc.rfConstant < -6 * (param->internalBitDepth - 8) || param->rc.rfConstant > 51, "Valid quality based range: -qpBDOffsetY to 51"); Last edited by foxyshadis; 18th June 2014 at 00:48. |
|
17th June 2014, 23:52 | #962 | Link | |||
Testeur de codecs
Join Date: May 2003
Location: France
Posts: 2,484
|
Quote:
crf and 2 pass produce exactly the same visual quality for x264 (not bit to bit ... but almost). And xxxxx never talk about ABR 1 pass for the encoding but just 900 kbps encoding. Sorry. Quote:
really false. You can get "constant quality" with simple constant quantizer mode. Moreover there are predictibility in crf mode with lookahead (for I,P,B,b decision for exemple). 1 pass quality mode (like crf or quant mode) mean simply impossible final bitrate prediction and anything else. Sorry. Quote:
false ... 3 Not really. And I know very, very, very well how VBV work. VBV is little more complexe. It's the only exemple where multipass can be really usefull but you must have really complex Rate Control. Multipass can help to have really optimal Buffer management and obtain more constant quality. Sorry. I'am french and it's world cup. and 1 ... and 2 ... and 3 ... 0 for me.
__________________
Le Sagittaire ... ;-) 1- Ateme AVC or x264 2- VP7 or RV10 only for anime 3- XviD, DivX or WMV9 Last edited by Sagittaire; 18th June 2014 at 00:18. |
|||
18th June 2014, 05:28 | #963 | Link | |
Registered User
Join Date: Dec 2012
Posts: 197
|
Quote:
I'm talking about something slightly more elegant than the GOP-parallelism x265 used to do, as after the 1st encoding pass, the encoder should have enough information to cleanly split up the stream at nice cutpoints. Something like this old program... but actively developed. Scene-parallelism seems like a nice answer HEVC's inherently poorer granularity compared to AVC. It also helps encoding scale pass NUMA barriers and helps prepare for the future of increasingly less-hamstrung Atom designs as well as rising core counts for workstations. A consequence here would be much greater RAM usage, but as long as the feature is opt-in or heuristically activated, it's not as much of a sin as idle resources. Anyway, this is just something I've been pondering in the face of x265 not using all cores when the source needs few b-frames or has low vertical resolution (stupid 2.35 aspect ratio). On a 2P server, I've played around with scripting something that decodes the entire stream in ffmpeg with '-vf select='gt(scene\,0.4)', greps the log output for scenecut frame nums, launches encodes with the frame ranges, and uses taskset to change the pids's socket affinity. However, it's still inelegant to have to decode the source more times than necessary. |
|
18th June 2014, 07:26 | #964 | Link | |
Registered User
Join Date: Jan 2014
Posts: 45
|
Quote:
The CRF patch removed an-almost-bug that was adding bit-depth offsets to the QP twice. As mentioned in the commit message, Ratecontrol does not worry about bitdepth-offsets, that's added in TComTrQuant. |
|
18th June 2014, 07:46 | #965 | Link | |
Registered User
Join Date: Jun 2014
Posts: 8
|
Quote:
I did some test with cfr25 and the result bitrate was between 600-2400 Kbps so my point was i'm waiting for the 2pass encoding. |
|
18th June 2014, 07:49 | #966 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,782
|
Just to confirm the already obvious: By "1-pass bitrate based encodes" I meant ABR, not CRF.
IMHO, there are only few reasons to choose ABR mode (e.g. limited bandwidth). In general, the more freedom the encoder has to vary the bitrate according to the complexity of the scene, the better the quality can be preserved equally. Therefore, quality tests should not use ABR mode, because the quality will vary a lot from scene to scene, and trolling affine people will select the worst scenes to complain. |
18th June 2014, 13:44 | #967 | Link | |
Registered User
Join Date: Jan 2010
Posts: 709
|
Quote:
__________________
powered by Google Translator |
|
18th June 2014, 13:52 | #968 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,782
|
The difference between encoding with and without VBV rate control is unrestricted VBR (CRF) vs. restricted VBR (CRF with limits based on the estimated decoder buffer utilization).
|
18th June 2014, 19:58 | #972 | Link | |
Registered User
Join Date: Jan 2010
Posts: 709
|
Quote:
Assuming 2pass w/o vbv is costant quality (that isn't 'cause qcomp rarely will be set to 1), with vbv will be no more constant, but less.
__________________
powered by Google Translator Last edited by Motenai Yoda; 18th June 2014 at 20:10. |
|
18th June 2014, 21:47 | #973 | Link |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
|
Some thoughts on today's "how to test and compare" discussions:
Obviously different scenarios have different needs for encoding type. But certainly an ABR + VBV encode is a very common case for many applications, and is supported by essentially all encoders. It works well for apples-to-apples comparison, and does a nice job of highlighting how different sorts of scenes encode within the same file. Note that if rc-lookahead is longer than the maximum number of frames that could be in a VBV, 1-pass and 2-pass should offer essentially identical results. This is probably the easiest way to get clear comparisons between x264 and x265 today. Of course, other parameters don't map linearly, like --psy-rd, psychovisual tuning modes like --tune film, --rdpenalty, and --preset. So a real comparison of where the codecs stand today would have to figure out what the optimal perceptual quality settings are for each are. Given how fast x265 is moving, we could have a defined x264 encode as a reference, and then watch how x265 matches that as builds progress. |
19th June 2014, 03:41 | #974 | Link |
zj262144
Join Date: Sep 2010
Posts: 105
|
sorry to insert another topic about x265 question, but I want to confirm...
Does now x265 8bpp using high-bit internal-precision(e.g. 12bit internal-precision) for encoding? x264 10bpp takes advantage over than x264 8bpp mostly because its 10bit internal-precision though 8bit original input/10bit output I noticed HEVC has IBDI(Internal bit depth increase) in 2012, but haven't seem in nowadays...
__________________
MPC-HC 1.7.8 / LAV Filters 0.64+ (tMod) / XySubFilter 3.1.0.705 / madVR 0.87.14 Direct264 Mod (src & win32 builds): code.google.com/p/direct264umod (maybe outdated) |
19th June 2014, 03:59 | #975 | Link | ||
Guest
Posts: n/a
|
Quote:
Quote:
|
||
19th June 2014, 11:18 | #976 | Link | |
Registered User
Join Date: Jan 2014
Posts: 45
|
Quote:
x265 works like x264 in this regard. You could build x265 with HIGH_BIT_DEPTH on, and use this for encoding 8-bit input video. This build (x265-16bpp) will use higher bit depth precision in the encoder internals. |
|
19th June 2014, 12:39 | #979 | Link |
Testeur de codecs
Join Date: May 2003
Location: France
Posts: 2,484
|
Pehaps the code itself is less complex (just SSE low level implementation for exemple)
__________________
Le Sagittaire ... ;-) 1- Ateme AVC or x264 2- VP7 or RV10 only for anime 3- XviD, DivX or WMV9 |
19th June 2014, 12:39 | #980 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,782
|
Yes. I compile the same sources with MinGW GCC 4.8.2 with different options, and after stripping, e.g. the following executable sizes in byte are reported:
x265.exe for Win32: 2270208 B (-DWINXP_SUPPORT=1) 2107392 B (-DWINXP_SUPPORT=1 -DHIGH_BIT_DEPTH=1) x265.exe for Win64: 2816512 B (-DCMAKE_TOOLCHAIN_FILE=toolchain-x86_64-w64-mingw32.cmake) 2748928 B (-DCMAKE_TOOLCHAIN_FILE=toolchain-x86_64-w64-mingw32.cmake -DHIGH_BIT_DEPTH=1) There is probably some more elaborate code in some routines for low bit depths only. Last edited by LigH; 19th June 2014 at 12:41. |
|
|