Ah. Unfortunately this seems to result in a file with dropped HDR info:
I couldn't find any examples for usage of the option "--dhdr10-info <string>"Code:"NVEncC64.exe" --avsw -i "HDR-HEVC-TEST.ts" -o "HDR-HEVC-TEST.ts.nvencc.hevc.mp4" --output-depth 10 --preset quality --vbrhq 0 --vbr-quality 0 --lookahead 32 --aq --aq-temporal --aq-strength 0 --mv-precision q-pel --profile main10 --level 6 --tier high --chapter-copy --sub-copy --data-copy --audio-copy
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 31 to 60 of 79
Thread
-
-
Sample
"C:\Program Files (Portable)\NVEncC\NVEncC64.exe" --vbrhq 38400 --codec h265 --preset quality --profile main10 --level 5.1 --output-depth 10 --ref 5 --gop-len 24 --lookahead 32 --qp-init 1 --max-bitrate 38400 --vbr-quality 25 --aq --cuda-schedule auto --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635, 16450)L(10000000,1)" --colormatrix bt2020nc --colorprim bt2020 --transfer smpte2084 --max-cll "1351,384" --aud --mv-precision q-pel --cabac -i T:\SHAZAM_temp\xxx.vpy -o T:\xxx_temp\xxx_out.h265Last edited by gonca; 26th Aug 2019 at 05:20.
-
Thank you!
I had done some small experiments last year with obtaining source settings via ffprobe and mediainfo and re-applying them on a commandline as you kindly showed.
I was interested to learn more recently that nvencc and ffmpeg, using nvidia's nvenc, also omit things apparently called SEI messages et al which I gather may contain dynamic hdr10 related metadata or something like that.
I note there is some scheme to obtain that data from the source (not certain, along something along the lines of piping ffmpeg generated raw stream to a metadata extractor and saving the result as a file) and then somehow re-apply that extracted into into the transcoded file. Issues apparently arise if re-sizing or other filtering (perhaps not when more strongly compressing?), so it's not perfect. AFAIK Neither ffmpeg nor nvencc do this automatically, and neither (AFAIK) do they pass through the HDR settings as you showed in the commandline.
A question could also be, if you can't filter or re-size then why not just copy the source file as-is or copy streams to another container if that's the reason for this (assuming the rest of the HDR metadata comes with a copy).
I'd hoped to be corrected, and maybe someone could show the sequence of commandlines for the process of dealing with the SEI stuff -
If by pass thru the HDR you mean does it show up in the final output?
The answer is yes, I usually use MKV container and when I use NVEncC the final result retains the HDR metadata and it makes my tv switch to HDR mode automatically.
Many, many moons ago I did have to use hdr patcher to implant the metadata but that was long ago in a galaxy far away -
Use the -h option (help) on NVEncC64 (32)
avs /vpy input is allowed
Use a script for preprocessing if you wish, best of both worlds
See options for cropping and resizing
When I use NVEncC I use a vpy script with all the pre processing and let NVEncC encode, no extra stuff -
Ah, I may try with mkv.
This log shows it doesn't seem to work for me
Code:"C:\SOFTWARE\NVEncC\NVEncC64.exe" --avsw -i "HDR-HEVC-Samsung 4K HDR Demo - RedBull See the Unexpected.ts" -o "HDR-HEVC-Samsung 4K HDR Demo - RedBull See the Unexpected.ts.nvencc.hevc.mp4" --output-depth 10 --preset quality --vbrhq 0 --vbr-quality 0 --lookahead 32 --aq --aq-temporal --aq-strength 0 --mv-precision q-pel --profile main10 --level 6 --tier high --videoformat pal --chapter-copy --sub-copy --data-copy --audio-copy avsw: --sub-copy is set, but no subtitle stream found. NVEncC (x64) 4.45 (r1169) by rigaya, Aug 19 2019 11:47:02 (VC 1916/Win/avx2) OS Version Windows 10 x64 (18362) CPU AMD Ryzen 9 3900X 12-Core Processor (12C/24T) GPU #0: GeForce RTX 2060 SUPER (2176 cores, 1665 MHz)[PCIe3x16][436.2] NVENC / CUDA NVENC API 9.0, CUDA 10.1, schedule mode: auto Input Buffers CUDA, 44 frames Input Info avsw: hevc(yv12(10bit))->p010 [AVX2], 3840x2160, 60000/1001 fps Vpp Filters copyHtoD Output Info H.265/HEVC main10 @ Level unknown 3840x2160p 1:1 59.940fps (60000/1001fps) avwriter: hevc, aac => mp4 Encoder Preset quality Rate Control VBRHQ Bitrate 0 kbps (Max: 230400 kbps) Target Quality auto Initial QP I:20 P:23 B:25 VBV buf size auto Lookahead on, 32 frames, Adaptive I, B Insert GOP length 600 frames B frames 3 frames [ref mode: disabled] Ref frames 3 frames, LTR: off AQ on CU max / min auto / auto Others mv:Q-pel pic-struct [1.6%] 59 frames: 29.93 fps, 39185 kb/s, remain 0:02:05, GPU 23%, VE 73% [100.0%] 11785 frames: 62.98 fps, 103368 kb/s, remain 0:00:00, GPU 25%, VE 82% encoded 11849 frames, 62.42 fps, 102810.24 kbps, 2422.76 MB encode time 0:03:09, CPU: 34.7, GPU: 26.0, VE: 91.0, GPUClock: 1948MHz, VEClock: 1798MHz frame type IDR 54 frame type I 54, avgQP 9.33, total size 48.30 MB frame type P 4486, avgQP 9.76, total size 1393.87 MB frame type B 7309, avgQP 11.73, total size 980.60 MB Source with HDR: Mon 26/08/2019 16:50:36.22 "C:\software\mediainfo\mediainfo.exe" "HDR-HEVC-Samsung 4K HDR Demo - RedBull See the Unexpected.ts" General ID : 0 (0x0) Complete name : HDR-HEVC-Samsung 4K HDR Demo - RedBull See the Unexpected.ts Format : MPEG-TS File size : 1.20 GiB Duration : 3 min 18 s Overall bit rate mode : Constant Overall bit rate : 51.8 Mb/s Video ID : 257 (0x101) Menu ID : 1 (0x1) Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main 10@L5.1@High HDR format : SMPTE ST 2086, HDR10 compatible Codec ID : 36 Duration : 3 min 17 s Width : 3 840 pixels Height : 2 160 pixels Display aspect ratio : 16:9 Frame rate : 59.940 (60000/1001) FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 10 bits Writing library : ATEME Titan File 3.7.9 (4.7.9.0) Color range : Limited Color primaries : BT.2020 Transfer characteristics : PQ Matrix coefficients : BT.2020 non-constant Mastering display color primaries : Display P3 Mastering display luminance : min: 0.0500 cd/m2, max: 1000 cd/m2 Audio ID : 258 (0x102) Menu ID : 1 (0x1) Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Format version : Version 4 Muxing mode : ADTS Codec ID : 15-2 Duration : 3 min 17 s Bit rate mode : Variable Channel(s) : 6 channels Channel layout : C L R Ls Rs LFE Sampling rate : 48.0 kHz Frame rate : 46.875 FPS (1024 SPF) Compression mode : Lossy Result without HDR Mon 26/08/2019 16:50:36.71 "C:\software\mediainfo\mediainfo.exe" "HDR-HEVC-Samsung 4K HDR Demo - RedBull See the Unexpected.ts.nvencc.hevc.mp4" General Complete name : HDR-HEVC-Samsung 4K HDR Demo - RedBull See the Unexpected.ts.nvencc.hevc.mp4 Format : MPEG-4 Format profile : Base Media / Version 2 Codec ID : mp42 (isom/iso2/mp41) File size : 2.38 GiB Duration : 3 min 17 s Overall bit rate : 103 Mb/s Writing application : NVEncC (x64) 4.45 Video ID : 1 Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main 10@L6@High Codec ID : hev1 Codec ID/Info : High Efficiency Video Coding Duration : 3 min 17 s Bit rate : 103 Mb/s Width : 3 840 pixels Height : 2 160 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 59.940 (60000/1001) FPS Standard : PAL Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 10 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.207 Stream size : 2.37 GiB (100%) Color range : Limited Codec configuration box : hvcC Audio ID : 2 Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Codec ID : mp4a-40-2 Duration : 3 min 17 s Bit rate mode : Constant Bit rate : 384 kb/s Channel(s) : 6 channels Channel layout : C L R Ls Rs LFE Sampling rate : 48.0 kHz Frame rate : 46.875 FPS (1024 SPF) Compression mode : Lossy Stream size : 8.99 MiB (0%) Default : Yes Alternate group : 1 Mon 26/08/2019 16:50:36.75 Mon 26/08/2019 16:50:36.76 -------------------------------------------------------------------------------------------- Mon 26/08/2019 16:50:36.76 -------------------------------------------------------------------------------------------- Mon 26/08/2019 16:50:36.76 Mon 26/08/2019 16:50:36.76 C:\SOFTWARE\ffmpeg\0-homebuilt-x64\ffprobe.exe -i "HDR-HEVC-Samsung 4K HDR Demo - RedBull See the Unexpected.ts.nvencc.hevc.mp4" -show_format -hide_banner -show_streams [STREAM] index=0 codec_name=hevc codec_long_name=H.265 / HEVC (High Efficiency Video Coding) profile=Main 10 codec_type=video codec_time_base=1001/60000 codec_tag_string=hev1 codec_tag=0x31766568 width=3840 height=2160 coded_width=3840 coded_height=2176 has_b_frames=1 sample_aspect_ratio=1:1 display_aspect_ratio=16:9 pix_fmt=yuv420p10le level=180 color_range=tv color_space=unknown color_transfer=unknown color_primaries=unknown chroma_location=unspecified field_order=progressive timecode=N/A refs=1 id=N/A r_frame_rate=60000/1001 avg_frame_rate=60000/1001 time_base=1/240000 start_pts=0 start_time=0.000000 duration_ts=47443396 duration=197.680817 bit_rate=102810244 max_bit_rate=N/A bits_per_raw_sample=N/A nb_frames=11849 nb_read_frames=N/A nb_read_packets=N/A DISPOSITION:default=1 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 DISPOSITION:timed_thumbnails=0 TAG:language=und TAG:handler_name=VideoHandler [/STREAM] [STREAM] index=1 codec_name=aac codec_long_name=AAC (Advanced Audio Coding) profile=LC codec_type=audio codec_time_base=1/48000 codec_tag_string=mp4a codec_tag=0x6134706d sample_fmt=fltp sample_rate=48000 channels=6 channel_layout=5.1 bits_per_sample=0 id=N/A r_frame_rate=0/0 avg_frame_rate=0/0 time_base=1/48000 start_pts=0 start_time=0.000000 duration_ts=9489408 duration=197.696000 bit_rate=381375 max_bit_rate=382500 bits_per_raw_sample=N/A nb_frames=9267 nb_read_frames=N/A nb_read_packets=N/A DISPOSITION:default=1 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 DISPOSITION:timed_thumbnails=0 TAG:language=und TAG:handler_name=SoundHandler [/STREAM] [FORMAT] filename=HDR-HEVC-Samsung 4K HDR Demo - RedBull See the Unexpected.ts.nvencc.hevc.mp4 nb_streams=2 nb_programs=0 format_name=mov,mp4,m4a,3gp,3g2,mj2 format_long_name=QuickTime / MOV start_time=0.000000 duration=197.696000 size=2550149104 bit_rate=103194767 probe_score=100 TAG:major_brand=mp42 TAG:minor_version=512 TAG:compatible_brands=isomiso2mp41 TAG:encoder=NVEncC (x64) 4.45 [/FORMAT] [aac @ 000001dc1267d280] This stream seems to incorrectly report its last channel as LFE[3], mapping to LFE[0] Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'HDR-HEVC-Samsung 4K HDR Demo - RedBull See the Unexpected.ts.nvencc.hevc.mp4': Metadata: major_brand : mp42 minor_version : 512 compatible_brands: isomiso2mp41 encoder : NVEncC (x64) 4.45 Duration: 00:03:17.70, start: 0.000000, bitrate: 103194 kb/s Stream #0:0(und): Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(tv, progressive), 3840x2160 [SAR 1:1 DAR 16:9], 102810 kb/s, 59.94 fps, 59.94 tbr, 240k tbn, 59.94 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 381 kb/s (default) Metadata: handler_name : SoundHandler
-
Nothing personal but I am going to get a little nasty (in order to help you)
In your script where is the master display info, please look at my sample
Why are you using PAL as the format (I realize you are in PAL land) >> UHD like BD has no PAL or NTSC
enter the proper BT numbers, look at my sample
Consider using a script -
That's fair.
Thankyou gonca.
I had wondered that circa 1 minute before I saw your (good, fair) post.
Cheers! -
Thanks !
I retried without the PAL bit, still no HDR info carried through into output. Oh well.
I had an old roughy script to parse outputs of ffprobe and mediainfo and use those in commandline settings, and was hoping for something "better" possibly including processing of "SEI" type stuff which I'd seen a few posts about including over on ncencc's github issues list.
OK, that's it from me. -
Did you include (corrected for your clip)
--master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15 635, 16450)L(10000000,1)" --colormatrix bt2020nc --colorprim bt2020 --transfer smpte2084 --max-cll "1351,384"
Try loading a script into StaxRip and see the command line it generates -
apologies, I had cross-wires with you, ... I was testing to see if HDR metadata "auto passthrough" was a thing, which it isn't.
manual command-line options/values are doable as you very correctly point out. -
I still prefer to generate my own scripts and using that as input, so if I have to enter HDR metadata manually, so be it.
Not the end of the world -
Ah, to summarise the settings changes from various posts:
1. just came across this: https://forum.doom9.org/showthread.php?p=1709584#post1709584
madVR Options Explained
2. Ensured 64-bit registration of the madVR .ax (for win10x64)
3. Changed these madVR options:
Chroma Scaling to Bilinear (processing done by GPU Texture Units)
Image Downscaling to DXVA2 (processing done by GPU video logic)
Image Upscaling to DXVA2
under devices, properties, set "the native display bitdepth is" to "10 bit (or higher)"
under devices, hdr, set "hdr" to "passthrough HDR to display"
under devices, hdr, ensure ticked checkbox "send HDR metadata to the display"
and the OSD changed to look like this:
4. Changed these Win10x64 options:
Display, Play HDR games and apps to On
Display, Windows HD Colour Settings, Play HDR games and apps to On
Display, Windows HD Colour Settings, Stream HDR Video to On
And the resulting on-screen display changed to look like in this post:
https://forum.videohelp.com/threads/394116-New-PC-pls-recommend-me-a-media-player-etc-...ck#post2558325
bye. -
Hi,please help.I couldn't find,where can I change setting,
the native display bitdepth is" to "10 bit (or higher)
hdr" to "passthrough HDR to display"
send HDR metadata to the display"
Philips OLED 804,PC with AMD Ryzen 5 3400G.
Thanks.
Edit:I have itLast edited by tramin; 19th Dec 2019 at 08:54.
-
@hydra3333
You may also want to try how the lean mpv player performs in your scenario.
https://www.videohelp.com/software/mpv-media-player -
HDR works, but the picture is terribly dark, so pale,without colors.Some solution?Probably I'll watch without HDR...
-
Ah.
How does this appear to you (watch all 2 mins) https://4kmedia.org/lg-chess-hdr-demo/
(control J in MPC-HC to see stats including HDR and 10-bit)
Or even this in Chrome browser https://www.youtube.com/watch?v=2RIDhA9c8qw
(right click in the video area and choose stats for nerds)
Both appear BEAUTIFUL on my rig, so perhaps consider double-checking your madvr and Win10 options ?
( hint https://forum.videohelp.com/threads/394116-New-PC-pls-recommend-me-a-media-player-etc-...ck#post2558325 and https://forum.doom9.org/showthread.php?p=1709584#post1709584 ) -
Here is the screen. Is there something wrong?Do you see how gray and pale the picture is?
http://screenshot.cz/WPE3G/ -
Can you please try the .mp4 from https://4kmedia.org/lg-chess-hdr-demo/ ?
It is a known-good source. Particularly, the opening scene with the princess, does it get very colourful ?
A screenshot would be great. -
Hmmm, clicking on the "download file" button and then the "download anyway" button works every time here.
Pls try again, so we know what a known good source looks like on your rig.
Also, your madVR and Windows settings also reflect those in the attachment ? -
[Attachment 51273 - Click to enlarge]
[Attachment 51274 - Click to enlarge]Now the picture is much better,1.screen is without HDR on in Windows,2.with.What bothers me is that the picture is not good with my movies.
e.g. Joker (2019)
BDAV
Formát/ : Blu-ray Video
Velikost souboru : 51,4 GiB
Duration/String : 2 h 1 min
Celkový BitRate : 60,4 Mb/s
OverallBitRate_Maximum/String : 109 Mb/s
Video #1
ID : 4113 (0x1011)
MenuID/String : 1 (0x1)
Formát : HEVC
Formát/ : High Efficiency Video Coding
Format_Profile : Main 10@L5.1@High
HDR_Format/String : SMPTE ST 2086, HDR10 compatible
CodecID : 36
Duration/String : 2 h 1 min
Šířka : 3 840pixely
Výška : 2 160pixely
Poměr stran : 16:9
Frame rate : 23,976 (24000/1001) FPS
ColorSpace : YUV
ChromaSubsampling/String : 4:2:0 (Type 2)
BitDepth/String : 10 bits
colour_range : Limited
colour_primaries : BT.2020
transfer_characteristics : PQ
matrix_coefficients : BT.2020 non-constant
MasteringDisplay_ColorPrimaries : Display P3
MasteringDisplay_Luminance : min: 0.0050 cd/m2, max: 4000 cd/m2
MaxCLL : 992 cd/m2
MaxFALL : 120 cd/m2
Video #2
ID : 4117 (0x1015)
MenuID/String : 1 (0x1)
Formát : HEVC
Formát/ : High Efficiency Video Coding
Format_Profile : Main 10@L5.1@High
HDR_Format/String : SMPTE ST 2086, HDR10 compatible
CodecID : 36
Duration/String : 2 h 1 min
Šířka : 1 920pixely
Výška : 1 080pixely
Poměr stran : 16:9
Frame rate : 23,976 (24000/1001) FPS
ColorSpace : YUV
ChromaSubsampling/String : 4:2:0 (Type 2)
BitDepth/String : 10 bits
colour_range : Limited
colour_primaries : BT.2020
transfer_characteristics : PQ
matrix_coefficients : BT.2020 non-constant
MasteringDisplay_ColorPrimaries : Display P3
MasteringDisplay_Luminance : min: 0.0050 cd/m2, max: 4000 cd/m2 -
Can't explain that, it works with a known good source.
Try some other known good sources downloadable at that website, just to check.
Given that known good sources work OK, suspect perhaps your movies may be flagged as encoded 10-bit however during the "capture" process (whatever it was) the colours may have undergone an "unfortunate" conversion resulting in what you see when playing those movies. Can only really tell by playing some more known good sources so as to prove it is related to the source rather than the software. -
Sorry to hijack this thread, but I am trying to get HDR content to play with MadVR and whenever I try to play HDR content, it will only play in windowed mode (fullscreen turns the screen black) I can get the video to show in full screen if I right click to bring up the right click menu in MPC-BE but closing the menu makes the screen go dark again.
Screen is 49" Samsung CRG90 it automatically switches to HDR mode when a HDR video file is opened and MadVR renderer is selected. If I set Windows HDR to on first then the picture is gray/washed out.. it looks better if MadVR auto switches the screen displayport to HDR mode so I leave the Windows setting alone.
I did this:
1. Ensured 64-bit registration of the madVR .ax (for win10x64)
2. Changed these madVR options:
Chroma Scaling to Bilinear (processing done by GPU Texture Units)
Image Downscaling to DXVA2 (processing done by GPU video logic)
Image Upscaling to DXVA2
under devices, properties, set "the native display bitdepth is" to "10 bit (or higher)" (I tried 8-bit too which is what my screen switches to)
under devices, hdr, set "hdr" to "passthrough HDR to display"
under devices, hdr, ensure ticked checkbox "send HDR metadata to the display"
[Attachment 51375 - Click to enlarge]
[Attachment 51376 - Click to enlarge]
Appreciate any help here!
Similar Threads
-
Can you recommend a product to me -- digital media player WITH BLUETOOTH
By True Colors in forum Newbie / General discussionsReplies: 6Last Post: 14th Dec 2018, 23:13 -
DVDFab Media Player supports to playback of unprotected Ultra HD Blu-ray
By DVDFab Staff in forum Software PlayingReplies: 1Last Post: 25th May 2017, 01:13 -
If do not watch 4k hdr content, is it still worth buying a 4k hdr display o
By Stealth3si in forum Media Center PC / MediaCentersReplies: 5Last Post: 19th Sep 2016, 20:03 -
Youtube Player Too Dark Please Recommend Streaming Player With Controls
By NewTwoVideo in forum Video Streaming DownloadingReplies: 2Last Post: 1st Aug 2016, 18:06 -
H.265 Encoded MKV File & Playback on Stand-alone Media Player
By gonwk in forum Newbie / General discussionsReplies: 3Last Post: 19th Nov 2014, 21:09