VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or Try ConvertXtoDVD and convert all your movies to DVD. Free trial ! :)
+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 31 to 45 of 45
Thread
  1. Member hydra3333's Avatar
    Join Date
    Oct 2009
    Location
    Australia
    Search Comp PM
    Ah. Unfortunately this seems to result in a file with dropped HDR info:
    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
    I couldn't find any examples for usage of the option "--dhdr10-info <string>"
    Quote Quote  
  2. Member
    Join Date
    Feb 2013
    Location
    Toronto, Canada
    Search Comp PM
    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.h265
    Your video card is also capable of b frames
    Last edited by gonca; 26th Aug 2019 at 05:20.
    Is he gone?
    Quote Quote  
  3. Member hydra3333's Avatar
    Join Date
    Oct 2009
    Location
    Australia
    Search Comp PM
    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
    Quote Quote  
  4. Member
    Join Date
    Feb 2013
    Location
    Toronto, Canada
    Search Comp PM
    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
    Is he gone?
    Quote Quote  
  5. Member
    Join Date
    Feb 2013
    Location
    Toronto, Canada
    Search Comp PM
    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
    Is he gone?
    Quote Quote  
  6. Member hydra3333's Avatar
    Join Date
    Oct 2009
    Location
    Australia
    Search Comp PM
    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
    Quote Quote  
  7. Member
    Join Date
    Feb 2013
    Location
    Toronto, Canada
    Search Comp PM
    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
    Is he gone?
    Quote Quote  
  8. Member hydra3333's Avatar
    Join Date
    Oct 2009
    Location
    Australia
    Search Comp PM
    That's fair.
    Thankyou gonca.
    I had wondered that circa 1 minute before I saw your (good, fair) post.
    Cheers!
    Quote Quote  
  9. Member
    Join Date
    Feb 2013
    Location
    Toronto, Canada
    Search Comp PM
    Here is a simple cheat system I use when in doubt
    Create the script with all your preprocessing
    Use a GUI like StaxRip to load your script and start the process
    Copy the command line
    Abort process and study the command line
    I know its tacky but it helps to figure things out
    Is he gone?
    Quote Quote  
  10. Member hydra3333's Avatar
    Join Date
    Oct 2009
    Location
    Australia
    Search Comp PM
    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.
    Quote Quote  
  11. Member
    Join Date
    Feb 2013
    Location
    Toronto, Canada
    Search Comp PM
    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"
    I know it works, I did over 100 UHD discs with NVEncC
    Try loading a script into StaxRip and see the command line it generates
    Is he gone?
    Quote Quote  
  12. Member hydra3333's Avatar
    Join Date
    Oct 2009
    Location
    Australia
    Search Comp PM
    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.
    Quote Quote  
  13. Member
    Join Date
    Feb 2013
    Location
    Toronto, Canada
    Search Comp PM
    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
    Is he gone?
    Quote Quote  
  14. Member hydra3333's Avatar
    Join Date
    Oct 2009
    Location
    Australia
    Search Comp PM
    I'm with you on that, especially given the current state of play.
    Quote Quote  
  15. Member hydra3333's Avatar
    Join Date
    Oct 2009
    Location
    Australia
    Search Comp PM
    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.
    Quote Quote  



Similar Threads