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.

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 27th February 2018, 23:38   #5941  |  Link
Ma
Registered User
 
Join Date: Feb 2015
Posts: 326
Thanks for samples! They are not similar to BigBuckBunny.
Ma is offline   Reply With Quote
Old 28th February 2018, 16:18   #5942  |  Link
Gser
Registered User
 
Join Date: Apr 2008
Posts: 418
I'm encoding HDR footage so I need to set max luma but I'm getting this error message
Quote:
x265 [warning]: extra unused command arguments given <--max-luma=4000>
It defaults to 1000.
Gser is offline   Reply With Quote
Old 28th February 2018, 16:19   #5943  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,729
Try --max-luma 4000.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 28th February 2018, 16:38   #5944  |  Link
Gser
Registered User
 
Join Date: Apr 2008
Posts: 418
Quote:
Originally Posted by Boulder View Post
Try --max-luma 4000.
Thanks that worked, funny how some commands work with "=" and others don't.

Also the command seems to have no effect, it is still showing max: 1000 cd/m2.

Setting min luma to 0.0050 also doesn't work, I'm guessing because the parameter is an integer.

Last edited by Gser; 28th February 2018 at 16:54.
Gser is offline   Reply With Quote
Old 28th February 2018, 17:07   #5945  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
--max-luma is for clipping input. It is usually not needed for HDR. You probably want to use the max/min luminance of "master-display". (4000 is very high. Haven't seen such samples yet. Is this plausible for your source?)
sneaker_ger is offline   Reply With Quote
Old 28th February 2018, 17:59   #5946  |  Link
Gser
Registered User
 
Join Date: Apr 2008
Posts: 418
Quote:
Originally Posted by sneaker_ger View Post
--max-luma is for clipping input. It is usually not needed for HDR. You probably want to use the max/min luminance of "master-display". (4000 is very high. Haven't seen such samples yet. Is this plausible for your source?)
Yes indeed it was mastered on a Dolby pulsar screen and it says so in the media information. This is the standard for Netflix or at least that's what I've been told. 4000 nits is also standard for Dolby vision. It works fine now just changed L(10000000,0) to L(40000000,5000).

Last edited by Gser; 28th February 2018 at 18:02.
Gser is offline   Reply With Quote
Old 6th March 2018, 12:21   #5947  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,480
x265.exe 2.7+8-613d9f443769

remove maxCTU size restriction in scaled save/load encodes

analysis: Introduce refine-intra level 4

use MV from analysis-save encode as MVP in load mode for refine-inter levels

Add max-ausize-factor option to control the maximum AU size defined in specification

Add reorderedPts to x265_picture to signal the reordered pts value of each picture in encode order.
Also shared the reordered pts value when analysis load is done by disabling lookahead.


https://forum.videohelp.com/threads/...50#post2513850
Midzuki is offline   Reply With Quote
Old 6th March 2018, 15:43   #5948  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,780
#metoo

x265 2.7+8-613d9f443769
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 8th March 2018, 21:27   #5949  |  Link
brumsky
Registered User
 
Join Date: Jun 2016
Posts: 116
Generally speaking, what has a greater effect on fine detail retention --tu-inter-depth or subme? It's for anime and I'm currently using --tu-inter-depth 4 subme 3 and --limit-tu 3. Would I get better results by upping subme and droping limit-tu to 4? Trying to find the best size\quality.
brumsky is offline   Reply With Quote
Old 9th March 2018, 18:11   #5950  |  Link
Majorlag
Registered User
 
Join Date: Jul 2016
Posts: 19
Quote:
Originally Posted by brumsky View Post
Generally speaking, what has a greater effect on fine detail retention --tu-inter-depth or subme? It's for anime and I'm currently using --tu-inter-depth 4 subme 3 and --limit-tu 3. Would I get better results by upping subme and droping limit-tu to 4? Trying to find the best size\quality.
The first part of your question asks what has better detail retention. the higher --subme value, the higher chance of fine detail retention. --tu-inter-depth does not effect detail retention as I understand it.

--tu-inter-depth is for compression or size. It is how much compression to shoot for. higher value, try to compress more. --limit-tu value effects how long to spend on compression target of --tu-inter-depth.

Hopefully I have read the command line options correctly. Try these set of options to see if they help you, it is what I use for anime "--qcomp 0.8 --rc-lookahead 30 --rc-grain --me 2 --subme 4 --no-strong-intra-smoothing --no-sao"
Majorlag is offline   Reply With Quote
Old 9th March 2018, 18:20   #5951  |  Link
Barough
Registered User
 
Barough's Avatar
 
Join Date: Feb 2007
Location: Sweden
Posts: 483
x265 v2.7+12-98e48e8dd6ab (GCC 7.3.0, 32 & 64-bit 8/10/12bit Multilib Windows Binaries)

Code:
https://bitbucket.org/multicoreware/x265/commits/branch/default
Barough is offline   Reply With Quote
Old 10th March 2018, 06:47   #5952  |  Link
brumsky
Registered User
 
Join Date: Jun 2016
Posts: 116
Quote:
Originally Posted by Majorlag View Post
The first part of your question asks what has better detail retention. the higher --subme value, the higher chance of fine detail retention. --tu-inter-depth does not effect detail retention as I understand it.

--tu-inter-depth is for compression or size. It is how much compression to shoot for. higher value, try to compress more. --limit-tu value effects how long to spend on compression target of --tu-inter-depth.

Hopefully I have read the command line options correctly. Try these set of options to see if they help you, it is what I use for anime "--qcomp 0.8 --rc-lookahead 30 --rc-grain --me 2 --subme 4 --no-strong-intra-smoothing --no-sao"
Thanks for the info! It does help and makes sense! I'll give some of those settings a try as well. I read a different thread where BenWaggner mentioned using --tskip and --tskip-fast with good results with anime. I've read the description a few times and can't quiet figure out what exactly it is skipping... any tips on those?
brumsky is offline   Reply With Quote
Old 10th March 2018, 07:45   #5953  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,407
The residual, the difference between the predicted image and the original image, is coded after a DCT-like transformation, except with tskip this transformation can be skipped. The encoder compares the size of the coded block after the transformation to its size without a transformation and picks whichever is smaller. As a speed boost tskip fast does not compare the size after skipping the transformation at all the possible block size combinations, only a good subset of them.
__________________
madVR options explained
Asmodian is offline   Reply With Quote
Old 10th March 2018, 22:56   #5954  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,780
x265 2.7+12-98e48e8dd6ab

Code:
   --refine-intra <0..4>         Enable intra refinement for encode that uses analysis-load.
...
                                    - 4 : Re-evaluate all intra blocks, does not reuse data from save encode.

   --[no-]dynamic-refine         Dynamically changes refine-inter level for each CU. Default disabled

   --[no-]idr-recovery-sei      Emit recovery point infor SEI at each IDR frame
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 18th March 2018, 15:27   #5955  |  Link
Barough
Registered User
 
Barough's Avatar
 
Join Date: Feb 2007
Location: Sweden
Posts: 483
x265 v2.7+15-b9f5b5d7bf95 (GCC 7.3.0, 32 & 64-bit 8/10/12bit Multilib Windows Binaries)

Code:
https://bitbucket.org/multicoreware/x265/commits/branch/default
Barough is offline   Reply With Quote
Old 26th March 2018, 16:20   #5956  |  Link
enctac
Registered User
 
Join Date: May 2017
Posts: 8
Problem about x265 2.7+17 and L-SMASH r1459/r1450

L-SMASH : https://github.com/l-smash/l-smash
r1459 binary : http://www.mediafire.com/file/b7w5m1...9_20180310.zip

x265 2.7+14-d7c26df32fae:[Windows][MSVC 1913][64 bit] 8bit+10bit+12bit
x265 2.7+17-2e370d98c806:[Windows][MSVC 1913][64 bit] 8bit+10bit+12bit

Code:
sample.avs
#---
ColorBarsHD(1280,720).Trim(0,500).ConvertToYV12()
ShowFrameNumber(scroll=true,size=128)
#---

ffmpeg.exe -i sample.avs -f yuv4mpegpipe - | x265.exe --y4m - --pass 1 --bitrate 1000 -o sample.265
ffmpeg.exe -i sample.avs -f yuv4mpegpipe - | x265.exe --y4m - --pass 2 --bitrate 1000 -o sample.265

muxer.exe -i "sample.265"?fps=30000/1001 -o sample.mp4
Result
x265 2.7+14 -> No problem.
x265 2.7+17 -> muxer.exe freeze or crash.
Which is wrong ? x265 ? or L-SMASH ?

Last edited by enctac; 26th March 2018 at 17:27.
enctac is offline   Reply With Quote
Old 26th March 2018, 20:12   #5957  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,780
Let's check the last 3 commits ... which may be the most probable: 5be53f0 (Clean up SEI::write function)? Sounds like it changed the output in important values.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 26th March 2018 at 20:15.
LigH is offline   Reply With Quote
Old 27th March 2018, 19:49   #5958  |  Link
Sp00kyFox
Registered User
 
Sp00kyFox's Avatar
 
Join Date: Aug 2007
Posts: 79
edit: seems the artifacts were caused by aq-motion. qg-size 8 just counteracts that but the default qg-size 32 without aq-motion actually looks better.
https://mega.nz/#F!DMYT2ICb!4aufAuilmDJAn-Bj-Gzcpg
__________

original post:
about the qg-size discussion. a friend of mine recently asked me about some artifacts he noticed with his x265 encodings. turned out the default qg-size was the culprit.
Quote:
--qg-size <64|32|16|8>
Enable adaptive quantization for sub-CTUs. This parameter specifies the minimum CU size at which QP can be adjusted, ie. Quantization Group size. Allowed range of values are 64, 32, 16, 8 provided this falls within the inclusive range [maxCUSize, minCUSize].
from what I understand a lower qg-size allows the adaptive quantization to better adjust itself to small details. so why even use a higher value than the lowest one possible? at least for HD resolutions or lower it seems essential to simply set it to 8 to avoid artifacts that can appear otherwise. without being familiar with the parameters of the encoder people would be tempted to just increase their crf value instead.

here check out this scene. source is included if you wanna experiment yourself with it.
link removed

this is the general commandline I used. the different clips only differ at the chosen qg-size value, see the file names for that.
Quote:
--preset slow --crf 23 --profile main10 --no-sao --aq-motion
after the first scene cut focus on the two guys walking back to their truck. notice the artifact corona that surrounds them. qg-size 8 pretty much fixes it. this also slightly increased the bitrate. so I'm not saying that using --qg-size 8 improves quality at the same file size. but when using crf it might be useful to do that to avoid artifacts you otherwise would need to generally lower crf for.

I suppose the default value is set to 32 instead because the codec is designed for 4k content in mind where it's probably useful to avoid a subblock adaptation at the lowest level due to details being larger.

what's your opinion on this?

Last edited by Sp00kyFox; 3rd April 2018 at 17:24.
Sp00kyFox is offline   Reply With Quote
Old 28th March 2018, 00:01   #5959  |  Link
Motenai Yoda
Registered User
 
Motenai Yoda's Avatar
 
Join Date: Jan 2010
Posts: 709
coz all was 32x based at early development stages
__________________
powered by Google Translator
Motenai Yoda is offline   Reply With Quote
Old 28th March 2018, 00:29   #5960  |  Link
brumsky
Registered User
 
Join Date: Jun 2016
Posts: 116
UHD HDR to HD SDR

Is it possible to use a UHD HDR source to create an HD SDR encode? I ask because I'm having issues with the encode being desaturated due to the HDR source and BT2020.

How can I convert the color palette and convert to SDR?
brumsky is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump


All times are GMT +1. The time now is 00:38.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.