View Single Post
Old 11th February 2018, 10:44   #5  |  Link
hydra3333
Registered User
 
Join Date: Oct 2009
Location: crow-land
Posts: 540
OK, ffprobe seems to show the most info.
From the ffprobe output below, these seem to be the most relevant items which can be "extracted" from an ffprobe output.
Although, I'm not sure where the 2 values for "max-cll=0,0" come from.

Further advice welcomed.

Code:
pix_fmt=yuv420p10le
color_range=tv
color_space=bt2020nc
color_transfer=smpte2084 (does this need to be transformed into "smpte-st-2084" ?)
color_primaries=bt2020
red_x=34000/50000  (discard eveything on and after the "/")
red_y=16000/50000  (discard eveything on and after the "/")
green_x=13248/50000 (discard eveything on and after the "/")
green_y=34500/50000 (discard eveything on and after the "/")
blue_x=7500/50000 (discard eveything on and after the "/")
blue_y=3000/50000 (discard eveything on and after the "/")
white_point_x=15634/50000 (discard eveything on and after the "/")
white_point_y=16450/50000 (discard eveything on and after the "/")
min_luminance=50/10000 (discard eveything on and after the "/")
max_luminance=10000000/10000 (discard eveything on and after the "/")
And then maybe plugged into ffmpeg's x265 "-x265-params" like this (not yet attempted)?
Code:
ffmpeg.exe 
-input-depth 10 
-pix_fmt %pix_fmt% 
-i "G:\HDTV\0nvencc\vp9_2_HDR10_UHD_4K_Demo.webm"
-i input.vp9.2.webm -an 
-c:v libx265 -preset slow -crf 15 
-x265-params "colorprim=%color_primaries%
:transfer=%color_transfer%
:colormatrix=%color_space%
:master-display=G(%green_x%,%green_y%)B(%blue_x%,%blue_y%)R(%red_x%,%red_y%)WP(%white_point_x%,%white_point_y%)L(%max_luminance%,%min_luminance%)
:max-cll=0,0:hdr" 
-profile:v main10 -level:v 5.1 
-crf 18
-output-depth=10 
-movflags faststart
-f mp4 -y output.mp4
Here's the ffprobe output to see if someone can point out where the "max-cll=0,0" values come from.
Code:
"C:\SOFTWARE\ffmpeg\0-homebuilt-x64\ffprobe.exe" -prefix -unit -pretty -show_streams -i "G:\HDTV\0nvencc\vp9_2_HDR10_UHD_4K_Demo.webm" 
[STREAM]
index=0
codec_name=vp9
codec_long_name=Google VP9
profile=Profile 2
codec_type=video
codec_time_base=317/19001
codec_tag_string=[0][0][0][0]
codec_tag=0x0000
width=3840
height=2160
coded_width=3840
coded_height=2160
has_b_frames=0
sample_aspect_ratio=1:1
display_aspect_ratio=16:9
pix_fmt=yuv420p10le
level=-99
color_range=tv
color_space=bt2020nc
color_transfer=smpte2084
color_primaries=bt2020
chroma_location=unspecified
field_order=unknown
timecode=N/A
refs=1
id=N/A
r_frame_rate=19001/317
avg_frame_rate=19001/317
time_base=1/1000
start_pts=0
start_time=0:00:00.000000
duration_ts=N/A
duration=N/A
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
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=eng
[SIDE_DATA]
side_data_type=Mastering display metadata
red_x=34000/50000
red_y=16000/50000
green_x=13248/50000
green_y=34500/50000
blue_x=7500/50000
blue_y=3000/50000
white_point_x=15634/50000
white_point_y=16450/50000
min_luminance=50/10000
max_luminance=10000000/10000
[/SIDE_DATA]
[/STREAM]
ffprobe version N-89991-gdd5208aaf5 Copyright (c) 2007-2018 the FFmpeg developers
  built with gcc 7.3.0 (GCC)
  configuration: --arch=x86_64 --target-os=mingw32 
--cross-prefix=/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-master/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32- 
--pkg-config=pkg-config 
--pkg-config-flags=--static --enable-gray --enable-version3 --disable-debug --disable-doc --disable-htmlpages 
--disable-manpages --disable-podpages --disable-txtpages --disable-w32threads 
--enable-nvenc --enable-cuda --enable-cuvid --enable-d3d11va --enable-libsoxr 
--enable-fontconfig --enable-libass --enable-libbluray 
--enable-iconv --enable-libtwolame --enable-libzvbi --enable-libcaca --enable-libmodplug 
--extra-libs=-lstdc++ --extra-libs=-lpng --extra-libs=-loleaut32 --enable-libmp3lame --enable-version3 
--enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex 
--enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype 
--enable-libopus --enable-bzlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libvpx --enable-libilbc 
--enable-libwavpack --enable-libwebp --enable-libgme --enable-dxva2 --enable-gray --enable-libopenh264 --enable-libmysofa --enable-libflite 
--enable-lzma --enable-libsnappy --enable-libzimg --enable-libbs2b --enable-gmp 
--enable-libfribidi --enable-cross-compile --enable-pic --extra-libs=-lpsapi 
--extra-libs=-lspeexdsp --disable-schannel --extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC 
--enable-gpl --enable-avisynth --enable-frei0r --enable-filter=frei0r --enable-librubberband 
--enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid 
--enable-amf --enable-avresample --enable-libcdio --extra-cflags='-mtune=generic' --extra-cflags=-O3 
--enable-static --disable-shared 
--prefix=/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-master/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32 
--enable-nonfree --enable-decklink --enable-libfdk-aac --enable-opencl --enable-runtime-cpudetect 
--extra-libs=-lcrypt32 --extra-libs=-lshlwapi --extra-libs=-lstdc++ --extra-libs=-lass 
--extra-libs=-lfontconfig --extra-libs=-lexpat --extra-libs=-lfribidi --extra-libs=-lfreetype --extra-libs=-lharfbuzz --extra-libs=-lbz2 --extra-libs=-llzma 
--extra-libs=-liconv --extra-libs=-lcdio --extra-libs=-lcdio_paranoia --extra-libs=-lz 
--extra-libs=-lpsapi --extra-libs=-lspeexdsp --extra-libs=-lgdi32 --extra-libs=-lwinmm
  libavutil      56.  7.100 / 56.  7.100
  libavcodec     58. 10.100 / 58. 10.100
  libavformat    58.  9.100 / 58.  9.100
  libavdevice    58.  1.100 / 58.  1.100
  libavfilter     7. 11.101 /  7. 11.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  0.101 /  5.  0.101
  libswresample   3.  0.101 /  3.  0.101
  libpostproc    55.  0.100 / 55.  0.100
Input #0, matroska,webm, from 'G:\HDTV\0nvencc\vp9_2_HDR10_UHD_4K_Demo.webm':
  Metadata:
    encoder         : google/video-file
  Duration: 00:03:17.61, start: 0.000000, bitrate: 16593 kb/s
    Stream #0:0(eng): Video: vp9 (Profile 2), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160, SAR 1:1 DAR 16:9, 59.94 fps, 59.94 tbr, 1k tbn, 1k tbc (default)
    Side data:
      Mastering Display Metadata, has_primaries:1 has_luminance:1 r(0.6800,0.3200) g(0.2650,0.6900) b(0.1500 0.0600) wp(0.3127, 0.3290) min_luminance=0.005000, max_luminance=1000.000000
edit: also wondering if the profile level needs to be 5.2 given it's 4k 60fps main10 HDR, athough it looks as if 5.1 would suffice ?

Last edited by hydra3333; 11th February 2018 at 10:51. Reason: also asked about profile level
hydra3333 is offline   Reply With Quote