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 January 2017, 20:28   #4661  |  Link
x265_Project
Registered User
 
Join Date: Jul 2013
Posts: 596
Quote:
Increases the RD-level at points where the bitrate drops due to vbv. The number of CUs for which the RD is reconfigured is determined based on the strength. Strength 1 gives the best FPS, strength 4 gives the best SSIM. Strength 0 switches this feature off. Default: 0.

Effective for RD levels 4 and below.
We probably should have said "Increases the RD level at points where quality drops due to VBV rate control enforcement." I'll ask our team to improve the documentation.
x265_Project is offline   Reply With Quote
Old 28th January 2017, 00:53   #4662  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 5,836
Quote:
Effective for RD levels 4 and below.
+
Code:
if (m_param->complexAnalysis && (!bIsVbv || !p->rc.aqMode || p->rdLevel > 4))
{

    p->complexAnalysis = 0;

    x265_log(p, X265_LOG_WARNING, "Complex-analysis disabled, requires RD > 4, VBV and aq-mode enabled\n");

}
=> 'requires RD > 4' should be 'requires RD <= 4'
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 28th January 2017, 15:05   #4663  |  Link
Motenai Yoda
Registered User
 
Motenai Yoda's Avatar
 
Join Date: Jan 2010
Posts: 701
Quote:
Originally Posted by Selur View Post
+
Code:
if (m_param->complexAnalysis && (!bIsVbv || !p->rc.aqMode || p->rdLevel > 4))
{

    p->complexAnalysis = 0;

    x265_log(p, X265_LOG_WARNING, "Complex-analysis disabled, requires RD > 4, VBV and aq-mode enabled\n");

}
=> 'requires RD > 4' should be 'requires RD <= 4'
more "Effective for RD levels 4 and below." should be "Effective for RD levels 5 and over. "
__________________
powered by Google Translator
Motenai Yoda is offline   Reply With Quote
Old 28th January 2017, 15:10   #4664  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 5,836
@MontenaiYoda: the code I posted disables complexAnalysis when rdLevel > 4, so "Effective for RD levels 5 and over. " seems strange to me.

Cu Selur
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 28th January 2017, 15:12   #4665  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,875
I'd agree to Selur's opinion, it seems to match the documentation: complex analysis "Increases the RD level at points where quality drops due to VBV rate control enforcement", therefore it should be more effective when it was initially rather low. It compensates a bit of the loss in fast presets.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 28th January 2017, 15:16   #4666  |  Link
Motenai Yoda
Registered User
 
Motenai Yoda's Avatar
 
Join Date: Jan 2010
Posts: 701
Quote:
Originally Posted by Selur View Post
@MontenaiYoda: the code I posted disables complexAnalysis when rdLevel > 4, so "Effective for RD levels 5 and over. " seems strange to me.

Cu Selur
KK I misread 0 as 1
__________________
powered by Google Translator
Motenai Yoda is offline   Reply With Quote
Old 29th January 2017, 12:36   #4667  |  Link
MonoS
Registered User
 
Join Date: Aug 2012
Posts: 176
Hi, i do my encode with a command line like this
Code:
 vspipe.exe -y script.vpy - | ffmpeg.exe -i - -c:v libx265 -preset veryslow -crf 22 ...
Often my script produce a 16bit output due to scaling or denoising, is it best to dithering the input in vapoursynth, pass the clip undithered as i'm doing or use the parameter --dither of x265 in the command line?
If i should dither it on the script side, what kind of dither is it best for this kind of parameters, if i'm not mistaken ordered dither should be the best when reaching for low bitrate target in every case
Code:
rect=0:amp=0:cutree=0:early-skip=0:limit-refs=3:aq-mode=3:limit-modes=1:level-idc=4:me=2:fast-intra=1:max-merge=3:rd=4:rdoq-level=0:psy-rd=1.1:aq-strength=1.9:deblock=-1,-1
Thanks for the attention
MonoS is offline   Reply With Quote
Old 30th January 2017, 11:45   #4668  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,477
x265 2.2+30-fa52b516f5ff

Code:
complexAnalysis: clean up
http://www.mediafire.com/file/6vj4jy...a52b516f5ff.7z
Midzuki is offline   Reply With Quote
Old 30th January 2017, 11:56   #4669  |  Link
Magik Mark
Registered User
 
Join Date: Dec 2014
Posts: 538
Is there a way to convert bt2020 to bt709 color matrix?
__________________
Asus X99 Sabertooth - Xeon E5 2695 - Asus Strix GTX 960 4G - DDR4 16GB Predator - Pioneer KRP 600M (isf calibrated) - Yamaha A3030 - Windows 10 x64 - Kodi with DSplayer - Lav - MadVR - XYsubtitle
Magik Mark is offline   Reply With Quote
Old 30th January 2017, 14:33   #4670  |  Link
Barough
Registered User
 
Barough's Avatar
 
Join Date: Feb 2007
Location: Sweden
Posts: 326
x265 v2.2+30-fa52b516f5ff (MSYS/MinGW, GCC 6.3.0, 32 & 64bit 8/10/12bit multilib EXEs)
Barough is offline   Reply With Quote
Old 31st January 2017, 10:46   #4671  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,875
x265 2.2+30-fa52b516f5ff (GCC 6.2.0)

I hope XhmikosR will release updates MSYS packs...
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 31st January 2017, 13:24   #4672  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 2,889
Quote:
Originally Posted by Magik Mark View Post
Is there a way to convert bt2020 to bt709 color matrix?
Not with x265. And not well without some high-end tone mapping technologies.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 31st January 2017, 17:39   #4673  |  Link
Midzuki
Unavailable
 
Midzuki's Avatar
 
Join Date: Mar 2009
Location: offline
Posts: 1,477
Quote:
Originally Posted by LigH View Post
x265 2.2+30-fa52b516f5ff (GCC 6.2.0)

I hope XhmikosR will release updates MSYS packs...
You can safely replace GCC 6.2 with the GCC 6.3 build compiled by nevcairiel:

https://files.1f0.de/mingw/

OR go the MSYS2 way...

Quote:
Originally Posted by vBm View Post
Word about MPC-HC was in a dire need of developers was published back in '12.
At the moment only XhmikosR and kasper93 are semi active, you know ... LIFE has happened and not everyone has spare time anymore. Official statement will be drafted and published on MPC-HC's website when the time is right and when there are news to report.
So, perhaps XhmikosR will release a new MSYS1 package only when GCC 7 is out...
Midzuki is offline   Reply With Quote
Old 1st February 2017, 06:37   #4674  |  Link
youli
Registered User
 
youli's Avatar
 
Join Date: Mar 2015
Location: Ukraine
Posts: 23
Hi! Is anybody knows, how to display graphic chart of bitrate distribution for H.265 stream? I mean, just like "Bitrate Viewer" for H.264:

youli is offline   Reply With Quote
Old 1st February 2017, 07:27   #4675  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,875
Did you try whether this Bitrate Viewer fails when you have HEVC multiplexed in a supported container? It may just not support a raw video stream as long as there is no matching source filter.

An alternative may be to let x265 write a verbose CSV log (csv-log-level > 0), import it into a spreadsheet calculator, sort it to display order (that's a bit tricky e.g. in Excel alone), and let this draw a graph.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 1st February 2017, 09:28   #4676  |  Link
birdie
.
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 135
Quote:
Originally Posted by youli View Post
Hi! Is anybody knows, how to display graphic chart of bitrate distribution for H.265 stream? I mean, just like "Bitrate Viewer" for H.264:

https://github.com/zeroepoch/plotbitrate
birdie is offline   Reply With Quote
Old 1st February 2017, 14:37   #4677  |  Link
youli
Registered User
 
youli's Avatar
 
Join Date: Mar 2015
Location: Ukraine
Posts: 23
LigH, ApTeM thanks a lot for your advices, but.. it will difficult ways for me.

In the both cases for AVC and HEVC I use mkv container. With AVC in mkv "Bitrate Viewer" works perfect, but with HEVC in mkv I got error "Codec not found".

LAV Filters 0.69 was installed.
youli is offline   Reply With Quote
Old 1st February 2017, 14:47   #4678  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,875
Oh, I think I remember that this Bitrate Viewer was built upon some ffmpeg version which is quite outdated today... It will not use LAV Filters. No source available. No longer developed.

Here was the forum thread with my old complaint... The author updated only a Mac OS X version, but not a Windows version.

You will find some more tools there, but they are command line tools, not so user friendly without mouse support.
__________________

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

Last edited by LigH; 1st February 2017 at 14:52.
LigH is offline   Reply With Quote
Old 1st February 2017, 16:10   #4679  |  Link
youli
Registered User
 
youli's Avatar
 
Join Date: Mar 2015
Location: Ukraine
Posts: 23
Oh, thanks! I used CheckBitrate from https://onedrive.live.com/?authkey=%...DD4375AC8933C6 and got csv-file.
Chart it in Excel
youli is offline   Reply With Quote
Old 2nd February 2017, 04:54   #4680  |  Link
x265_Project
Registered User
 
Join Date: Jul 2013
Posts: 596
Quote:
Originally Posted by LigH View Post
Did you try whether this Bitrate Viewer fails when you have HEVC multiplexed in a supported container? It may just not support a raw video stream as long as there is no matching source filter.

An alternative may be to let x265 write a verbose CSV log (csv-log-level > 0), import it into a spreadsheet calculator, sort it to display order (that's a bit tricky e.g. in Excel alone), and let this draw a graph.
No need to sort in display order. The decoder is going to have to decode in decode order, which is the real bit rate.
x265_Project 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 18:41.


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