Ich wollte mich nochmal zurückmelden, mit der Sache mit dem, das x264 kein HDR kann.
Ich hab jetzt eine x265 (HDR) 10-Bit zu x264 10-Bit enkodiert, ohne HDR to SDR oder Tonemapping. Wie geht das? Ich hab jetzt die exakt gleichen VUI wie in x265 in x264, nur das x264 jetzt als SDR erkannt wird.
Ich hatte es am Anfang mit NVENC x264 zum testen gemacht, in nur 8-Bit und da sah es auch genauso aus.
Media Info sagt bei beiden:
HDR format : SMPTE ST 2086, HDR10 compatible
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color pri : BT.2020
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2
ich dachte man muss HDR to SDR bzw. Tonemapping machen?
im x264 sieht es jetzt genauso aus wie im x265.
Das ist die MediaInfo vom Original
General
Unique ID : 156305292633526732160451441011532155202 (0x75974DEA3418E2F70AAAD3FBEF6AC942)
Complete name : D:\Videos\Das siebente Siegel\Das.siebente.Siegel.1957.German.DL.AC3D.2160p.UHD.BluRay.x265-GSG9\Das.siebente.Siegel.1957.German.DL.AC3D.2160p.UHD.BluRay.x265-GSG9.mkv
Format : Matroska
Format version : Version 4
File size : 31.8 GiB
Duration : 1 h 36 min
Overall bit rate mode : Variable
Overall bit rate : 47.2 Mb/s
Movie name : Das siebente Siegel (1957)
Encoded date : UTC 2021-12-26 16:38:59
Writing application : mkvmerge v56.1.0 ('My Friend') 64-bit
Writing library : libebml v1.4.2 + libmatroska v1.6.4
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : SMPTE ST 2086, HDR10 compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 1 h 36 min
Bit rate : 45.9 Mb/s
Width : 2 972 pixels
Height : 2 160 pixels
Display aspect ratio : 1.376
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Original frame rate : 24.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.298
Stream size : 30.9 GiB (97%)
Writing library : x265 3.5+19-8003e4382:[Windows][GCC 11.2.0][64 bit] 10bit
Encoding settings : cpuid=1111039 / frame-threads=6 / numa-pools=32 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=2972x2160 / interlace=0 / total-frames=138712 / level-idc=51 / high-tier=1 / uhd-bd=0 / ref=4 / no-allow-non-conformance / repeat-headers / annexb / aud / no-eob / no-eos / hrd / info / hash=0 / no-temporal-layers / no-open-gop / min-keyint=24 / keyint=250 / gop-lookahead=0 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=25 / lookahead-slices=4 / scenecut=40 / no-hist-scenecut / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=2 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / no-strong-intra-smoothing / max-merge=3 / limit-refs=3 / limit-modes / me=3 / subme=3 / merange=57 / temporal-mvp / no-frame-dup / no-hme / weightp / no-weightb / no-analyze-src-pics / deblock=-3:-3 / no-sao / no-sao-non-deblock / rd=4 / selective-sao=0 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=1.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=18.3 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / vbv-maxrate=160000 / vbv-bufsize=160000 / vbv-init=0.9 / min-vbv-fullness=50.0 / max-vbv-fullness=80.0 / crf-max=0.0 / crf-min=0.0 / ipratio=1.40 / pbratio=1.30 / aq-mode=2 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=9 / transfer=16 / colormatrix=9 / chromaloc=1 / chromaloc-top=2 / chromaloc-bottom=2 / display-window=0 / master-display=G(8500,39850)B(6550,2300)R(35400,14600)WP(15635,16450)L(10000000,01) / cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / hist-threshold=0.03 / no-opt-cu-delta-qp / no-aq-motion / hdr10 / hdr10-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=0 / analysis-save-reuse-level=0 / analysis-load-reuse-level=0 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=1 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00 / scenecut-aware-qp=0conformance-window-offsets / right=0 / bottom=0 / decoder-max-rate=0 / no-vbv-live-multi-pass
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color pri : BT.2020
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2
Audio #1
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 1 h 36 min
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 441 MiB (1%)
Language : German
Service kind : Complete Main
Default : Yes
Forced : No
Audio #2
ID : 3
Format : FLAC
Format/Info : Free Lossless Audio Codec
Codec ID : A_FLAC
Duration : 1 h 36 min
Bit rate mode : Variable
Bit rate : 686 kb/s
Channel(s) : 1 channel
Channel layout : C
Sampling rate : 48.0 kHz
Frame rate : 11.719 FPS (4096 SPF)
Bit depth : 24 bits
Compression mode : Lossless
Delay relative to video : 23 ms
Stream size : 473 MiB (1%)
Writing library : libFLAC 1.3.2 (UTC 2017-01-01)
Language : Swedish
Default : No
Forced : No
Text
ID : 4
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 3 s 294 ms
Bit rate : 46 b/s
Frame rate : 0.304 FPS
Count of elements : 1
Stream size : 19.0 Bytes (0%)
Language : German
Default : Yes
Forced : Yes
Menu
00:00:00.000 : de:00:00:00.000
00:08:33.555 : de:00:08:33.555
00:16:14.724 : de:00:16:14.724
00:25:30.696 : de:00:25:30.696
00:32:25.026 : de:00:32:25.026
00:42:01.185 : de:00:42:01.185
00:48:45.089 : de:00:48:45.089
00:58:39.224 : de:00:58:39.224
01:03:14.916 : de:01:03:14.916
01:13:11.554 : de:01:13:11.554
01:22:58.974 : de:01:22:58.974
01:28:07.407 : de:01:28:07.407
Das ist die MediaInfo nachdem ich einen 1 Minuten Clip zum testen in x264 enkodiert habe:
General
Unique ID : 221706986034647700586614229974886263711 (0xA6CB365B27616FEA0D9A3E7986E62B9F)
Complete name : D:\Videos\Hybrid\testx264normal.mkv
Format : Matroska
Format version : Version 4
File size : 183 MiB
Duration : 1 min 2 s
Overall bit rate : 24.4 Mb/s
Encoded date : UTC 2022-09-16 10:38:14
Writing application : mkvmerge v69.0.0 ('Day And Age') 64-bit
Writing library : libebml v1.4.2 + libmatroska v1.6.4
Encoding Gui : Hybrid 2022.09.01.1
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High 10@L3.2
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1 min 2 s
Bit rate : 25.0 Mb/s
Width : 992 pixels
Height : 720 pixels
Display aspect ratio : 1.378
Frame rate mode : Constant
Frame rate : 24.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 1.458
Stream size : 182 MiB (100%)
Writing library : x264 core 164 r3095 baee400
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=18 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=25000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Default : Yes
Forced : Yes
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Audio
ID : 2
Format : AAC LC SBR
Format/Info : Advanced Audio Codec Low Complexity with Spectral Band Replication
Commercial name : HE-AAC
Format settings : Explicit
Codec ID : A_AAC-2
Duration : 1 min 2 s
Bit rate : 80.0 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 23.438 FPS (2048 SPF)
Compression mode : Lossy
Delay relative to video : 4 ms
Stream size : 613 KiB (0%)
Language : German
Default : Yes
Forced : No
Menu
00:00:00.000 : en:00:00:00.000
Also kann x264 doch HDR? Das einzige, was ist jetzt bei x264 nicht mehr habe, sind halt die master display Werte. Hat der das vielleicht von der Blurray auf x265 schon getonemapped? Aber warum sollte man das machen?
Ich frage halt, weil ich verstehen will, warum das so ist.
Grüße