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. |
14th October 2014, 20:30 | #61 | Link | |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
|
Quote:
You probably have been using "very slow" or "placebo" Preset, which crank up the number of reference frames
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
|
15th October 2014, 13:49 | #62 | Link |
Registered User
Join Date: Aug 2008
Location: Isle of Man
Posts: 588
|
In the strict sense of the word what you say is correct, of course. However, for the purposes of that suggestion (achieving a bitrate predictable enough for level estimation) I believe two-pass encoding to be sufficient. I did use the word "roughly", BTW . Certainly, in my experience, I have not seen any bitrate swings causing problems to constrained players with correctly level-constrained two-pass encodes.
|
15th October 2014, 14:01 | #63 | Link | |
Registered User
Join Date: Aug 2008
Location: Isle of Man
Posts: 588
|
Quote:
This brings us to the more general point that --preset preselects --ref values independently of encoding level:
|
|
15th October 2014, 15:21 | #64 | Link | |
Registered User
Join Date: Aug 2009
Posts: 463
|
Yep. Here what presets, tunings and profiles change compared to defaults:
Quote:
Last edited by detmek; 15th October 2014 at 15:26. |
|
16th October 2014, 11:44 | #65 | Link |
PgcEdit daemon
Join Date: Jul 2003
Posts: 7,469
|
Someone knows if x264 supports level 5.2 ? (x264 doesn't complain if I type --level 5.2 in the command line, but I'm not sure it's an evidence that it has been really implemented.)
And if it's the case, what values should be used for the --vbv-bufsize and --vbv-maxrate arguments to force x264 to be compatible with level 5.2 ? (The table given by sneaker_ger in post #25 stops at level 5.1 and I have been unable to find the information on the internet.)
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV |
16th October 2014, 12:44 | #66 | Link |
Registered User
Join Date: Aug 2008
Location: Isle of Man
Posts: 588
|
http://www.itu.int/rec/T-REC-H.264/en (and the direct link to the latest publicly available version).
|
16th October 2014, 14:25 | #67 | Link | |
Registered User
Join Date: Aug 2009
Posts: 463
|
Quote:
You can use --vbv-maxrate 300000. --vbv-bufsize is your choice. P.S. I already gave you a link to that Wikipedia page (DPB). Did you read that page? Last edited by detmek; 16th October 2014 at 14:30. |
|
16th October 2014, 16:40 | #69 | Link |
PgcEdit daemon
Join Date: Jul 2003
Posts: 7,469
|
Thanks!
Why? The table on that page shows the maximum property values, but there are no minimum values. Yes, but it lists the max bitrate and frame size, not the max buffer size. It is somewhat difficult to compute it with the formula that uses several concepts that I don't understand well. (For example, it seems that the macroblocks are 16x16 pixels, but I'm not sure it's always the case. And searching for each bit of information in the jungle of the h264 doc is not easy, when you are a noob like me! Each concept refers to another concept, and it seems that it's an endless quest.) I'll use 300000, at least if it makes sense to use level 5.2 with 1080p@23.976fps. Can you confirm that? And can you confirm it also when the resolution is the double of 1080p (for Full-SBS or Full-T&B) ?
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV |
16th October 2014, 17:49 | #70 | Link | ||
Registered User
Join Date: Aug 2009
Posts: 463
|
Quote:
Quote:
Usually it does not make sense to use 16 reference frames with any video resolution because it take way too much time to compress and it offers almost none quality improvement but makes video incopatible with a lot of hardware players. Gain of using so much reference frames is less then 1% most of the time. My advice, do some tests with different settings at the same bitrate and use SSIM to measure difference. You will be surprised how low gain is when you use settings from placebo or veryslow preset compared to slow or slower. |
||
16th October 2014, 18:30 | #71 | Link |
PgcEdit daemon
Join Date: Jul 2003
Posts: 7,469
|
I see. That means that using level 5.2 is not recommended for 1080p@23.976fps, but theoretically not impossible, if you are crazy enough to push the limits to their maximums. Right?
BTW, what do you use for SSIM measurement?
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV |
16th October 2014, 18:47 | #72 | Link |
Registered User
Join Date: Aug 2009
Posts: 463
|
x264 itself. Just add --tune ssim --ssim into command line and you will get ssim values in x264 log after encoding is done. Then compare values from two different encodes and you will get % of changes. Formula for comparing SSIM is:
((1-old ssim)/(1-new ssim)-1)*100 Or use this Excel file. NB! Always use 2-pass and same bitrate. |
16th October 2014, 19:30 | #73 | Link |
PgcEdit daemon
Join Date: Jul 2003
Posts: 7,469
|
OK, thanks.
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV |
18th October 2014, 00:21 | #74 | Link |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
5.2 is exactly the same in terms of bitrate and frame-size as 5.1, it only exists to support full-speed 3K and 4K video (or 1080p at more than 120fps). 5.1 supports 4K @ 30, 5.2 supports 4K @ 60. Specifying 5.2 at 1080p is pointless unless you want all hardware players to reject your encodes.
|
18th October 2014, 10:45 | #75 | Link |
PgcEdit daemon
Join Date: Jul 2003
Posts: 7,469
|
I understand. Thanks. BTW, I did a placebo encode of a Full-SBS movie (3840x1080, 23.976 fps), without forcing any other option, and x264 has printed level 5.2. I suppose it's because the placebo preset uses a large number of ref frames. But that means that level 5.2 must be supported by my program, although I will not recommend to use it.
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV |
18th October 2014, 13:23 | #77 | Link |
PgcEdit daemon
Join Date: Jul 2003
Posts: 7,469
|
Why? Afaik, level 5.0 is sufficient for the image size and frame rate of Full-SBS or Full-T&B (3840x1080 or 1920x2160, at 23.976 fps). Right?
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV |
|
|