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 20th July 2016, 02:55   #4001  |  Link
Barough
Registered User
 
Barough's Avatar
 
Join Date: Feb 2007
Location: Sweden
Posts: 328
Quote:
Originally Posted by nakTT View Post
Hi,

Is this the same as the one that can be found in the webpage below?

https://builds.x265.eu
No. It's 'my' compiles made through media-autobuild suite.

Sent from my Samsung Galaxy S7 edge via Tapatalk
Barough is offline   Reply With Quote
Old 20th July 2016, 10:16   #4002  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,456
Quote:
Originally Posted by littlepox View Post
OK here is a good demo about x265's max-tu-size 16 bug:
Is this a regression of 2.0? It reminds me of the problems with tune grain. Wondering if they are related.

http://forum.doom9.org/showthread.ph...53#post1762253
sneaker_ger is offline   Reply With Quote
Old 20th July 2016, 15:52   #4003  |  Link
brumsky
Registered User
 
Join Date: Jun 2016
Posts: 112
Quote:
Originally Posted by Leo 69 View Post
@brumsky

Can you provide a problematic sample? I'd be glad to play with it.
Hey Leo 69, thanks for the offer it turns out to be faulty hardware. It started doing the same thing in everything.
brumsky is offline   Reply With Quote
Old 21st July 2016, 06:12   #4004  |  Link
bin.n2f
Registered User
 
Join Date: May 2015
Posts: 12
Quote:
Originally Posted by littlepox View Post
--tune film Update:

--crf 18 --ctu 32 --pbratio 1.2 --cbqpoffs -3 --crqpoffs -3 --no-sao --subme 3 --b-intra --no-amp --weightb --aq-mode 3 --aq-strength 0.9 --rd 4 --psy-rd 2.5 --psy-rdoq 4.0 --rdoq-level 2 --rc-lookahead 80 --qcomp 0.65 --no-strong-intra-smoothing --limit-modes

Reintroduce --ctu 32 since further tests suggest the buggy term is --max-tu-size 16, while --ctu 32 is innocent.
Increase psy 2.0:3.0 to 2.5:4.0 which should further reduce blurriness, enhancing visual quality. (bit-rate should increase as well, but worthy)
Add --limit-modes in case someone enables --rect at preset medium (which I strongly DISRECOMMEND; --rect should only be used at preset slower or above)

At the same time, here we go for a --tune animation:

--crf 18 --ctu 32 --ref 4 --bframes 6 --pbratio 1.2 --cbqpoffs -3 --crqpoffs -3 --no-sao --subme 3 --b-intra --no-amp --weightb --aq-mode 3 --aq-strength 0.8 --rd 4 --psy-rd 1.8 --psy-rdoq 1.5 --rdoq-level 2 --rc-lookahead 80 --qcomp 0.65 --no-strong-intra-smoothing --limit-modes
hi,sir
thanx for your recommendations
what would you suggest for less than HD 720p resolution?
greetings for all doom9rs, x265 developers & Staxrip
bin.n2f is offline   Reply With Quote
Old 21st July 2016, 08:43   #4005  |  Link
gamebox
Registered User
 
Join Date: Nov 2011
Posts: 66
@divxmaster: Thanks for sharing your experience with pre-sharpening. I've browsed the complete list of AviSynth sharpening plugins/scripts, and will test some to see the results on both sharpening and resulting bitrate (whether image complexity increases as well). For now, "adaptive" sharpening seems to me as the most appropriate direction to go. I've started using Lanczos4resize which improves sharpness (though it introduces halo as well, unlike Lanczos3). Also, decreased deblock from -1 to -2, and am currently testing -3 as image quality improved after I discarded qg size 16 parameter and artifacts stopped "accumulating" in smaller image blocks containing sharp, pronounced details where they were overly visible.

I compress using modified "slower" profile - me star, subme 7, rd 6, ref 6, bframes 9, aq-mode 2/strength 2, psy rd 2, psy rdoq 1, no rskip, rect, no sao, no strong intra smoothing. Speedup options are limit modes, limit refs 3, no weightb, no amp, max merge 2.
gamebox is offline   Reply With Quote
Old 21st July 2016, 17:58   #4006  |  Link
littlepox
Registered User
 
Join Date: Nov 2012
Posts: 218
Quote:
Originally Posted by bin.n2f View Post
hi,sir
thanx for your recommendations
what would you suggest for less than HD 720p resolution?
greetings for all doom9rs, x265 developers & Staxrip
No idea, never tested that case.
littlepox is offline   Reply With Quote
Old 21st July 2016, 20:49   #4007  |  Link
youli
Registered User
 
youli's Avatar
 
Join Date: Mar 2015
Location: Ukraine
Posts: 23
Source (BD3D) info:
Code:
DISC INFO:

Disc Title:     AVATAR (Ext-3D-2D)
Disc Size:      51*965*373*624 bytes
Protection:     AACS
BD-Java:        No
Extras:         Blu-ray 3D
BDInfo:         0.5.8

PLAYLIST REPORT:

Name:                   00000.MPLS
Length:                 2:57:57.083 (h:m:s.ms)
Size:                   51*965*054*976 bytes
Total Bitrate:          38,94 Mbps

VIDEO:

Codec                   Bitrate             Description     
-----                   -------             -----------     
MPEG-4 AVC Video        21857 kbps          1080p / 23,976 fps / 16:9 / High Profile 4.1
MPEG-4 MVC Video        10966 kbps                          

AUDIO:

Codec                           Language        Bitrate         Description     
-----                           --------        -------         -----------     
DTS-HD Master Audio             Russian         4096 kbps       5.1 / 48 kHz / 4096 kbps / 24-bit (DTS Core: 5.1 / 48 kHz / 1509 kbps / 24-bit)

SUBTITLES:

Codec                           Language        Bitrate         Description     
-----                           --------        -------         -----------     
Presentation Graphics           Russian         0,847 kbps
BDRip OverUnder HEVC/H.265 mediainfo:
Code:
General
Unique ID                                : 253356374572038614152649260802854783875 (0xBE9AA9AFD08939C68C293ACFBDDE8B83)
Complete name                            : E:\temp\Avatar (2009) 1080p HEVC 3D-ab.mkv
Format                                   : Matroska
Format version                           : Version 3 / Version 2
File size                                : 22.1 GiB
Duration                                 : 2 h 57 min
Overall bit rate                         : 17.8 Mb/s
Movie name                               : Avatar (2009) 3D Full-T&B (x265)
Encoded date                             : UTC 2016-07-21 19:26:29
Writing application                      : mkvmerge v9.2.0 ('Photograph') 64bit
Writing library                          : libebml v1.3.3 + libmatroska v1.4.4

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5@High
MultiView_Count                          : 2
MultiView_Layout                         : Top-Bottom (left eye first)
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 2 h 57 min
Bit rate                                 : 15.9 Mb/s
Width                                    : 1 920 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 0.889
Original display aspect ratio            : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.160
Stream size                              : 19.8 GiB (90%)
Title                                    : 3D Full-T&B (x265)
Writing library                          : x265 2.0+2-70581d6cd065:[Windows][GCC 5.3.0][64 bit] 10bit
Encoding settings                        : wpp / ctu=64 / min-cu-size=16 / max-tu-size=32 / tu-intra-depth=1 / tu-inter-depth=1 / me=2 / subme=7 / merange=25 / no-rect / no-amp / max-merge=2 / temporal-mvp / early-skip / rskip / rdpenalty=0 / no-tskip / no-tskip-fast / strong-intra-smoothing / no-lossless / no-cu-lossless / no-constrained-intra / fast-intra / open-gop / no-temporal-layers / interlace=0 / keyint=250 / min-keyint=23 / scenecut=40 / rc-lookahead=24 / lookahead-slices=6 / bframes=6 / bframe-bias=0 / b-adapt=2 / ref=1 / limit-refs=0 / no-limit-modes / no-weightp / no-weightb / aq-mode=3 / qg-size=32 / aq-strength=0.60 / cbqpoffs=0 / crqpoffs=0 / rd=3 / psy-rd=0.90 / rdoq-level=1 / psy-rdoq=2.50 / no-rd-refine / no-signhide / no-deblock / no-sao / no-sao-non-deblock / b-pyramid / cutree / no-intra-refresh / rc=crf / crf=23.0 / qcomp=0.80 / qpmin=0 / qpmax=51 / qpstep=4 / vbv-maxrate=100000 / vbv-bufsize=100000 / crf-max=0.0 / ipratio=1.10 / pbratio=1.00
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.709

Audio
ID                                       : 2
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Mode                                     : 16
Format settings, Endianness              : Big
Codec ID                                 : A_DTS
Duration                                 : 2 h 57 min
Bit rate mode                            : Constant
Bit rate                                 : 1 509 kb/s
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 93.750 FPS (512 spf)
Bit depth                                : 24 bits
Compression mode                         : Lossy
Delay relative to video                  : 21 ms
Stream size                              : 1.88 GiB (8%)
Title                                    : Russian (DTS 5.1 48KHz)
Language                                 : Russian
Default                                  : Yes
Forced                                   : No
x265 encode log:
Code:
Encoding movie in 3D
Movie: Avatar (2009)
Encoding started 20.07.2016 15:45:02,70

E:\temp\Avatar (2009)\00000>"D:\Install\MKV\BD3D\BD3D2MK3D v0.92\toolset\avs2yuv
.exe"   "__ENCODE_3D_MOVIE.avs" -frames 255994 -o -     | "D:\Install\MKV\BD3D\B
D3D2MK3D v0.92\toolset\x265_10bit_x64.exe"   --crf 23 --preset ultrafast   --lev
el-idc 5 --high-tier --me umh --subme 7 --scenecut 40 --aq-mode 3 --aq-strength
0.6 --no-sao --no-deblock --rd 3 --psy-rd 0.9 --b-adapt 2 --ctu 64 --min-cu-size
 16 --rc-lookahead 24 --bframes 6 --merange 25 --ipratio 1.1 --pbratio 1.0 --qco
mp 0.8 --rdoq-level 1 --psy-rdoq 2.5 --lookahead-slices 6   --sar 2:1 --range li
mited --colorprim bt709 --qpfile chapters_3D.qpfile --frames 255994 --fps 24000/
1001   --output "00000_3D.265" --y4m -
__ENCODE_3D_MOVIE.avs: 1920x2160, 24000/1001 fps, 255994 frames
y4m  [info]: 1920x2160 fps 24000/1001 i420p8 sar 2:1 unknown frame count
raw  [info]: output file: 00000_3D.265
x265 [info]: HEVC encoder version 2.0+2-70581d6cd065
x265 [info]: build info [Windows][GCC 5.3.0][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x265 [warning]: Specifying a decoder level with constant rate factor rate-contro
l requires
x265 [warning]: enabling VBV with vbv-bufsize=100000kb vbv-maxrate=100000kbps. V
BV outputs are non-deterministic!
x265 [info]: Main 10 profile, Level-5 (High tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: frame threads / pool features       : 3 / wpp(34 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 16
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : umh / 25 / 7 / 2
x265 [info]: Keyframe min / max / scenecut       : 23 / 250 / 40
x265 [info]: Lookahead / bframes / badapt        : 24 / 6 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 0 / 0
x265 [info]: References / ref-limit  cu / depth  : 1 / off / off
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 3 / 0.6 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-23.0 / 0.80
x265 [info]: VBV/HRD buffer / max-rate / init    : 100000 / 100000 / 0.900
x265 [info]: tools: rd=3 psy-rd=0.90 rdoq=1 psy-rdoq=2.50 early-skip rskip tmvp
x265 [info]: tools: fast-intra strong-intra-smoothing lslices=6

x265 [info]: frame I:   2774, Avg QP:21.94  kb/s: 44087.67
x265 [info]: frame P:  65676, Avg QP:22.51  kb/s: 29397.44
x265 [info]: frame B: 187544, Avg QP:23.86  kb/s: 11273.49
x265 [info]: consecutive B-frames: 10.2% 5.7% 14.1% 50.6% 9.4% 9.4% 0.7%

encoded 255994 frames in 101320.68s (2.53 fps), 16278.82 kb/s, Avg QP:23.50
Encoding finished 21.07.2016 19:53:44,00
Screenshots comparisions BD3D and BDRip:

















P.S. Playable on UHD TV LG 55UF85xx-Zx

Last edited by youli; 21st July 2016 at 20:52.
youli is offline   Reply With Quote
Old 21st July 2016, 23:21   #4008  |  Link
brumsky
Registered User
 
Join Date: Jun 2016
Posts: 112
Quote:
Originally Posted by littlepox View Post
--tune film Update:

--crf 18 --ctu 32 --pbratio 1.2 --cbqpoffs -3 --crqpoffs -3 --no-sao --subme 3 --b-intra --no-amp --weightb --aq-mode 3 --aq-strength 0.9 --rd 4 --psy-rd 2.5 --psy-rdoq 4.0 --rdoq-level 2 --rc-lookahead 80 --qcomp 0.65 --no-strong-intra-smoothing --limit-modes

Reintroduce --ctu 32 since further tests suggest the buggy term is --max-tu-size 16, while --ctu 32 is innocent.
Increase psy 2.0:3.0 to 2.5:4.0 which should further reduce blurriness, enhancing visual quality. (bit-rate should increase as well, but worthy)
Add --limit-modes in case someone enables --rect at preset medium (which I strongly DISRECOMMEND; --rect should only be used at preset slower or above)

At the same time, here we go for a --tune animation:

--crf 18 --ctu 32 --ref 4 --bframes 6 --pbratio 1.2 --cbqpoffs -3 --crqpoffs -3 --no-sao --subme 3 --b-intra --no-amp --weightb --aq-mode 3 --aq-strength 0.8 --rd 4 --psy-rd 1.8 --psy-rdoq 1.5 --rdoq-level 2 --rc-lookahead 80 --qcomp 0.65 --no-strong-intra-smoothing --limit-modes
littlepox, What are the affects of the different aq-modes on speed?

While I haven't done many encodes using aq-mode 2 or 3 - it seems to be 25-35% slower.

thanks,
brumsky is offline   Reply With Quote
Old 22nd July 2016, 00:44   #4009  |  Link
Magik Mark
Registered User
 
Join Date: Dec 2014
Posts: 539
Im looking for a software that would display what encoding parameters were used. Can someone recommend one? Sometimes mediainfo doesn't show what parameters were used. Or this was intentionally deleted by the encoder?
__________________
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 online now   Reply With Quote
Old 22nd July 2016, 01:43   #4010  |  Link
birdie
.
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 135
Quote:
Originally Posted by Magik Mark View Post
Im looking for a software that would display what encoding parameters were used. Can someone recommend one? Sometimes mediainfo doesn't show what parameters were used. Or this was intentionally deleted by the encoder?
Any hex editor will do.
birdie is offline   Reply With Quote
Old 22nd July 2016, 05:30   #4011  |  Link
littlepox
Registered User
 
Join Date: Nov 2012
Posts: 218
Quote:
Originally Posted by brumsky View Post
littlepox, What are the affects of the different aq-modes on speed?

While I haven't done many encodes using aq-mode 2 or 3 - it seems to be 25-35% slower.

thanks,
It should not be that large, during the test we did not even notice anything about their speed.

Furthermore, it is important to point out that larger bitrate itself means slower encode, when you have more bits for CABAC entropy encoding.
littlepox is offline   Reply With Quote
Old 22nd July 2016, 07:13   #4012  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,905
^ littlepox: And decoding higher bitrates can be slower too (compared with otherwise similar complexity).
_

@ Magic Mark: Not all encoders of the same target format may support storing encoding parameters as auxiliary data; there are more HEVC encoders than just x265. Also you can disable x265 writing them into the video stream (--no-info).

Some parameters could be analyzed from headers or GOP attributes. But others would be hard to discover from the video stream only.
__________________

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

Last edited by LigH; 22nd July 2016 at 07:18.
LigH is offline   Reply With Quote
Old 22nd July 2016, 08:39   #4013  |  Link
aymanalz
Registered User
 
Join Date: May 2015
Posts: 48
Quote:
Originally Posted by Barough View Post
No. It's 'my' compiles made through media-autobuild suite.

Sent from my Samsung Galaxy S7 edge via Tapatalk
I think there is some error in your compile, for the last binary you uploaded (2.0 - 8). Using it, I kept getting an error towards the end of the 2nd pass. (Error writing trailer of pipe.) Googling it suggests that it somehow relates to ffmpeg. But I don't get that error with the binary from x265.eu. (I've only tried 2.0 - 5.) Same settings and same media file, of course.
aymanalz is offline   Reply With Quote
Old 22nd July 2016, 08:46   #4014  |  Link
aymanalz
Registered User
 
Join Date: May 2015
Posts: 48
I notice that I am getting vastly improved encoding speeds with version 2.0, than I was with 1.9. Is this true for everybody?
aymanalz is offline   Reply With Quote
Old 22nd July 2016, 10:53   #4015  |  Link
Barough
Registered User
 
Barough's Avatar
 
Join Date: Feb 2007
Location: Sweden
Posts: 328
Quote:
Originally Posted by aymanalz View Post
I think there is some error in your compile, for the last binary you uploaded (2.0 - 8). Using it, I kept getting an error towards the end of the 2nd pass. (Error writing trailer of pipe.) Googling it suggests that it somehow relates to ffmpeg. But I don't get that error with the binary from x265.eu. (I've only tried 2.0 - 5.) Same settings and same media file, of course.
Haven't got any errors myself with it. Works fine with CRF though. Will check if there is an updated version of the media-autobuild suite available.

Last edited by Barough; 22nd July 2016 at 12:27.
Barough is offline   Reply With Quote
Old 22nd July 2016, 12:43   #4016  |  Link
Barough
Registered User
 
Barough's Avatar
 
Join Date: Feb 2007
Location: Sweden
Posts: 328
x265-v2.0++9-2737c6ff5f80 (MSYS/MinGW, GCC 6.1.0, 32 & 64bit 8/10/12bit multilib EXEs)
Barough is offline   Reply With Quote
Old 22nd July 2016, 14:25   #4017  |  Link
Ma
Registered User
 
Join Date: Feb 2015
Posts: 324
Quote:
Originally Posted by Barough View Post
x265-v2.0++9-2737c6ff5f80 (MSYS/MinGW, GCC 6.1.0, 32 & 64bit 8/10/12bit multilib EXEs)
The 32-bit version hangs. It was reported some time ago https://bitbucket.org/multicoreware/...-x265-hangs-at

Solution for 32-bit GCC 6.1:
export CXXFLAGS="-march=pentium4 -mtune=generic"
*** build 32-bit x265 ***
export CXXFLAGS=
Ma is offline   Reply With Quote
Old 22nd July 2016, 14:38   #4018  |  Link
Barough
Registered User
 
Barough's Avatar
 
Join Date: Feb 2007
Location: Sweden
Posts: 328
Thnx for the info Ma, but it looks like that issue was set to 'Resolved' a couple of days after it was reported.

EDIT
Ahh..... It's a GCC 'issue'. Don't have a clue on how 2 fix that in the media-autobuild_suite.

Last edited by Barough; 22nd July 2016 at 14:48.
Barough is offline   Reply With Quote
Old 22nd July 2016, 14:50   #4019  |  Link
easyfab
Registered User
 
Join Date: Jan 2002
Posts: 327
@Barough

see last message here : https://github.com/jb-alvarado/media...ite/issues/358

It give you an example how to do this
easyfab is offline   Reply With Quote
Old 22nd July 2016, 15:20   #4020  |  Link
Barough
Registered User
 
Barough's Avatar
 
Join Date: Feb 2007
Location: Sweden
Posts: 328
@ easyfab

Thnx for the info/reply.

I had a look @ it but i've never done any modifying like that. I have basically no knowledge when it comes to that kinda stuff. That's why i went for the media-autobuild_suite.

Last edited by Barough; 22nd July 2016 at 18:42.
Barough 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 13:49.


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