[FFmpeg-user] HDR10-opt Error
Veronica & Stephen McGuckin
VSMcGuckin at outlook.com
Sat Sep 18 16:25:59 EEST 2021
Hello,
I wish to burn PSG subtitles onto a 4k video. Before doing that I would like to ensure I have the correct ffmpeg instruction to ensure no loss of quality. I am using the command copied below. However I get the following error message.
x265 [error]: Recommended Settings for HDR10-opt: colour primaries should be BT.2020,
transfer characteristics should be SMPTE ST.2084,
matrix coeffs should be BT.2020,
the input video should be 10 bit 4:2:0
Disabling hdr10-opt.
I wonder if anyone could advise what is wrong with my command.
Thank you for your help.
Stephen
ffmpeg -i c:\video\Parasiteshort-002.mkv -map 0:v:0 -c:v libx265 -crf 15 -preset veryfast -pix_fmt yuv420p10le -x265-params keyint=60:bframes=3:vbv-bufsize=75000:vbv-maxrate=75000:hdr-opt=1:repeat-headers=1:colorprim=bt2020:transfer=smpte-st-2084:colormatrix=bt2020nc:master-display="G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,500)" -map 0:a:0 -c:a copy c:\video\parasiteshortv5.mkv
ffmpeg version 2021-08-25-git-e41bd075dd-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.3.0 (Rev5, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 57. 4.101 / 57. 4.101
libavcodec 59. 6.100 / 59. 6.100
libavformat 59. 4.102 / 59. 4.102
libavdevice 59. 0.101 / 59. 0.101
libavfilter 8. 3.100 / 8. 3.100
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
Input #0, matroska,webm, from 'c:\video\Parasiteshort-002.mkv':
Metadata:
title : Parasite
encoder : libebml v1.4.2 + libmatroska v1.6.4
creation_time : 2021-09-17T11:29:02.000000Z
Duration: 00:04:59.29, start: 0.000000, bitrate: 80761 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 183.016375
Metadata:
title : Chapter 00
Chapter #0:1: start 183.016375, end 299.254000
Metadata:
title : Chapter 01
Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn
Metadata:
BPS-eng : 80109802
DURATION-eng : 00:04:59.258000000
NUMBER_OF_FRAMES-eng: 7175
NUMBER_OF_BYTES-eng: 2996687409
SOURCE_ID-eng : 001011
_STATISTICS_WRITING_APP-eng: mkvmerge v55.0.0 ('Waiting For Space') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-09-17 11:29:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:1(kor): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
title : Surround 5.1
BPS-eng : 640000
DURATION-eng : 00:04:59.264000000
NUMBER_OF_FRAMES-eng: 9352
NUMBER_OF_BYTES-eng: 23941120
SOURCE_ID-eng : 001102
_STATISTICS_WRITING_APP-eng: mkvmerge v55.0.0 ('Waiting For Space') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-09-17 11:29:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080
Metadata:
BPS-eng : 44841
DURATION-eng : 00:04:58.590000000
NUMBER_OF_FRAMES-eng: 156
NUMBER_OF_BYTES-eng: 1673644
SOURCE_ID-eng : 0012A0
_STATISTICS_WRITING_APP-eng: mkvmerge v55.0.0 ('Waiting For Space') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-09-17 11:29:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
File 'c:\video\parasiteshortv5.mkv' already exists. Overwrite? [y/N] y
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> hevc (libx265))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[libx265 @ 00000180886ebac0] Invalid value for transfer: smpte-st-2084.
x265 [info]: HEVC encoder version 3.5+12-0983cffc5
x265 [info]: build info [Windows][GCC 10.3.0][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [error]: Recommended Settings for HDR10-opt: colour primaries should be BT.2020,
transfer characteristics should be SMPTE ST.2084,
matrix coeffs should be BT.2020,
the input video should be 10 bit 4:2:0
Disabling hdr10-opt.
x265 [info]: Main 10 profile, Level-5 (High tier)
x265 [info]: Thread pool created using 4 threads
x265 [info]: Slices : 1
x265 [info]: frame threads / pool features : 2 / wpp(34 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge : hex / 57 / 1 / 2
x265 [info]: Keyframe min / max / scenecut / bias : 6 / 60 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt : 15 / 3 / 0
x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0
x265 [info]: References / ref-limit cu / depth : 2 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress : CRF-15.0 / 0.60
x265 [info]: VBV/HRD buffer / max-rate / init : 75000 / 75000 / 0.900
x265 [info]: tools: rd=2 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
x265 [info]: tools: fast-intra strong-intra-smoothing lslices=8 deblock sao
Output #0, matroska, to 'c:\video\parasiteshortv5.mkv':
Metadata:
title : Parasite
encoder : Lavf59.4.102
Chapters:
Chapter #0:0: start 0.000000, end 183.016375
Metadata:
title : Chapter 00
Chapter #0:1: start 183.016375, end 299.254000
Metadata:
title : Chapter 01
Stream #0:0(eng): Video: hevc, yuv420p10le(tv, bt2020nc/bt2020/smpte2084, progressive), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 1k tbn
Metadata:
BPS-eng : 80109802
DURATION-eng : 00:04:59.258000000
NUMBER_OF_FRAMES-eng: 7175
NUMBER_OF_BYTES-eng: 2996687409
SOURCE_ID-eng : 001011
_STATISTICS_WRITING_APP-eng: mkvmerge v55.0.0 ('Waiting For Space') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-09-17 11:29:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
encoder : Lavc59.6.100 libx265
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
Stream #0:1(kor): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
title : Surround 5.1
BPS-eng : 640000
DURATION-eng : 00:04:59.264000000
NUMBER_OF_FRAMES-eng: 9352
NUMBER_OF_BYTES-eng: 23941120
SOURCE_ID-eng : 001102
_STATISTICS_WRITING_APP-eng: mkvmerge v55.0.0 ('Waiting For Space') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-09-17 11:29:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
frame= 190 fps=0.8 q=18.2 Lsize= 76016kB time=00:00:08.31 bitrate=74936.8kbits/s speed=0.0345x
video:75361kB audio:648kB subtitle:0kB other streams:0kB global headers:3kB muxing overhead: 0.010547%
x265 [info]: frame I: 4, Avg QP:15.24 kb/s: 191092.12
x265 [info]: frame P: 45, Avg QP:16.70 kb/s: 131727.99
x265 [info]: frame B: 141, Avg QP:20.30 kb/s: 57498.79
x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x265 [info]: consecutive B-frames: 4.1% 0.0% 0.0% 95.9%
encoded 190 frames in 239.23s (0.79 fps), 77891.88 kb/s, Avg QP:19.34
More information about the ffmpeg-user
mailing list