I'm trying to encode an HDR video from frames to play on TV. But I don't know why my TV does not treat the video as an HDR video, so the TV's HDR mode is not enabled.
This is my command to encode the video from frames:
This is the metadata of my encoded video:HTML Code:ffmpeg -i "frame (%d).png" -i "track.wma" -r 59.940 -pix_fmt yuv420p10le -c:v libx265 -c:a aac -strict -2 -shortest -y -x265-params "colorprim=bt2020:colormatrix=bt2020nc:master-display=G(13250,34500)B(13250,34500)R(34000,16000)WP(15635,16450)L(110000000,400):max-cll=1000,400" -f mpegts -muxrate 60.0M output.mkv
And this is an example of metadata of an HDR video I downloaded on the internet, which is treated properly by my TVHTML Code:General ID : 1 (0x1) Complete name : F:\output.mkv Format : MPEG-TS File size : 2.49 MiB Duration : 40 ms Overall bit rate mode : Constant Overall bit rate : 60.0 Mb/s FileExtension_Invalid : ts m2t m2s m4t m4s tmf ts tp trp ty Video ID : 256 (0x100) Menu ID : 1 (0x1) Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main 10@L5.1@Main Codec ID : 36 Duration : 50 s Width : 3 840 pixels Height : 2 160 pixels Display aspect ratio : 16:9 Frame rate : 59.940 (59940/1000) FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 10 bits Writing library : x265 2.5:[Linux][GCC 4.8.4][64 bit] 10bit Encoding settings : cpuid=1173503 / frame-threads=1 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=3840x2160 / interlace=0 / total-frames=0 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=3 / no-allow-non-conformance / repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=25 / keyint=250 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=20 / lookahead-slices=8 / scenecut=40 / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=2 / limit-refs=3 / no-limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=3 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / analysis-reuse-mode=0 / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=28.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=1 / 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=0 / overscan=0 / videoformat=5 / range=0 / colorprim=9 / transfer=2 / colormatrix=9 / chromaloc=0 / display-window=0 / master-display=G(13250,34500)B(13250,34500)R(34000,16000)WP(15635,16450)L(5000000,400) / max-cll=500,200 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / opt-qp-pps / opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / hdr / no-hdr-opt / no-dhdr10-opt / analysis-reuse-level=5 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=0 / no-limit-sao / ctu-info=0 Color range : Limited Color primaries : BT.2020 Matrix coefficients : BT.2020 non-constant Mastering display color primaries : R: x=0.680000 y=0.320000, G: x=0.265000 y=0.690000, B: x=0.265000 y=0.690000, White point: x=0.312700 y=0.329000 Mastering display luminance : min: 0.0400 cd/m2, max: 500.0000 cd/m2 Maximum Content Light Level : 500 cd/m2 Maximum Frame-Average Light Level : 200 cd/m2 Audio ID : 257 (0x101) Menu ID : 1 (0x1) Format : AAC Format/Info : Advanced Audio Codec Format version : Version 4 Format profile : LC Muxing mode : ADTS Codec ID : 15 Duration : 348 ms Bit rate mode : Variable Channel(s) : 2 channels Channel positions : Front: L R Sampling rate : 44.1 kHz Frame rate : 43.066 FPS (1024 SPF) Compression mode : Lossy Delay relative to video : -23 ms
What should I do to encode the HDR video properly, so that my TV will treat it as an HDR video?HTML Code:General Complete name : F:\10bitimages\HDR10Video\CymaticJazz\CymaticJazz.mp4 Format : MPEG-4 Format profile : Base Media Codec ID : isom (isom/iso2/mp41) File size : 1.11 GiB Duration : 2 min 38 s Overall bit rate mode : Variable Overall bit rate : 60.1 Mb/s Encoded date : UTC 2017-06-04 23:05:26 Tagged date : UTC 2017-06-04 23:05:26 Writing application : Lavf57.72.101 Video ID : 1 Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main 10@L5.1@High Codec ID : hev1 Codec ID/Info : High Efficiency Video Coding Duration : 2 min 38 s Bit rate : 60.0 Mb/s Width : 3 840 pixels Height : 2 160 pixels Display aspect ratio : 16:9 Frame rate mode : Variable Frame rate : 59.940 (60000/1001) FPS Minimum frame rate : 59.920 FPS Maximum frame rate : 59.960 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 10 bits Bits/(Pixel*Frame) : 0.121 Stream size : 1.11 GiB (100%) Writing library : ATEME Titan KFE 3.7.3 (4.7.3.1003) Encoded date : UTC 2017-06-04 23:05:26 Tagged date : UTC 2017-06-04 23:05:26 Color range : Limited Color primaries : BT.2020 Transfer characteristics : PQ Matrix coefficients : BT.2020 non-constant Mastering display color primaries : R: x=0.680000 y=0.320000, G: x=0.265000 y=0.690000, B: x=0.150000 y=0.060000, White point: x=0.312700 y=0.329000 Mastering display luminance : min: 0.0040 cd/m2, max: 1100.0000 cd/m2 Audio ID : 2 Format : AAC Format/Info : Advanced Audio Codec Format profile : LC Codec ID : mp4a-40-2 Duration : 2 min 38 s Bit rate mode : Variable Bit rate : 126 kb/s Maximum bit rate : 128 kb/s Channel(s) : 2 channels Channel positions : Front: L R Sampling rate : 48.0 kHz Frame rate : 46.875 FPS (1024 SPF) Compression mode : Lossy Stream size : 2.38 MiB (0%) Default : Yes Alternate group : 1 Encoded date : UTC 2017-06-04 23:05:26 Tagged date : UTC 2017-06-04 23:05:26
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 8 of 8
Thread
-
Last edited by namdvt; 13th Oct 2017 at 05:03.
-
I figured out the solution. I have to add "transfer=smpte-st-2084" to my encoding command.
-
I don't get what you mean by the TV doesn't treat it as an HDR video. Is the video not filling the entire screen up? is that what you mean?
-
I mean when playing an HDR video, TV recognizes it as an HDR video and the HDR mode is enabled (as attached picture). For my old encoded video, this mode is disabled and the "HDR" icon is not appeared. But now the problem is solved.
-
Marsia MarinerGuest
-
-
Similar Threads
-
HDR Still Editing
By budwzr in forum EditingReplies: 47Last Post: 18th Jun 2017, 13:30 -
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, 21:03 -
Sony HDR PJ 620
By Old Timer in forum Newbie / General discussionsReplies: 3Last Post: 21st Mar 2015, 08:19 -
My HDR function
By MattiasN in forum RestorationReplies: 6Last Post: 30th Aug 2013, 04:09 -
HDR Revisited
By budwzr in forum EditingReplies: 7Last Post: 26th Oct 2012, 17:02