[FFmpeg-user] HDR specification transfert
Rollie Tyler
a_mengha at hotmail.fr
Wed Jan 10 11:40:13 EET 2018
Just few infos for those who want to make the same thing. Here is what I have
done:
I have change my command line:
time FFmpeg/3.4/bin/ffmpeg -hwaccel cuvid -y -i /storage/input_HDR.mp4 -c:v
nvenc_hevc -pix_fmt p010le -color_primaries 'bt2020' -preset slow -level 5.1
-b:v 20000000 -rc vbr_hq -crf 22 -c:a copy /storage/Out/testHDR_NVENC.mp4
I removed the x265-params part because it didn't work for me (I can write
whatever I want inside this command and nothing change).
After the transcoding I have a 4K 10bits HEVC video
-bash-4.2$ mediainfo CLI -f /storage/Out/testHDR_NVENC.mp4
General
Count : 325
Count of stream of this kind : 1
Kind of stream : General
Kind of stream : General
Stream identifier : 0
Count of video streams : 1
Count of audio streams : 1
Video_Format_List : HEVC
Video_Format_WithHint_List : HEVC
Codecs Video : HEVC
Audio_Format_List : AAC
Audio_Format_WithHint_List : AAC
Audio codecs : AAC LC
Complete name : /storage/Out/testHDR_NVENC.mp4
Folder name : /storage/Out
File name : testHDR_NVENC.mp4
File extension : mp4
Format : MPEG-4
Format : MPEG-4
Format/Extensions usually used : mov mp4 m4v m4a m4b m4p 3ga 3gpa
3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma ismt f4a f4b f4v
Commercial name : MPEG-4
Format profile : Base Media
Internet media type : video/mp4
Codec ID : isom
Codec ID : isom (isom/iso2/mp41)
Codec ID/Url :
http://www.apple.com/quicktime/download/standalone.html
CodecID_Compatible : isom/iso2/mp41
Codec : MPEG-4
Codec : MPEG-4
Codec/Extensions usually used : mov mp4 m4v m4a m4b m4p 3ga 3gpa
3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma ismt f4a f4b f4v
File size : 126928572
File size : 121 MiB
File size : 121 MiB
File size : 121 MiB
File size : 121 MiB
File size : 121.0 MiB
Duration : 54422
Duration : 54 s 422 ms
Duration : 54 s 422 ms
Duration : 54 s 422 ms
Duration : 00:00:54.422
Duration : 00:00:54:09
Duration : 00:00:54.422 (00:00:54:09)
Overall bit rate : 18658420
Overall bit rate : 18.7 Mb/s
Frame rate : 24.000
Frame rate : 24.000 FPS
Frame count : 1305
Stream size : 28831
Stream size : 28.2 KiB (0%)
Stream size : 28 KiB
Stream size : 28 KiB
Stream size : 28.2 KiB
Stream size : 28.16 KiB
Stream size : 28.2 KiB (0%)
Proportion of this stream : 0.00023
HeaderSize : 36
DataSize : 126899749
FooterSize : 28787
IsStreamable : No
File last modification date : UTC 2018-01-09 15:22:36
File last modification date (local) : 2018-01-09 16:22:36
Writing application : Lavf57.83.100
Writing application : Lavf57.83.100
Video
Count : 338
Count of stream of this kind : 1
Kind of stream : Video
Kind of stream : Video
Stream identifier : 0
StreamOrder : 0
ID : 1
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format/Url : http://www.itu.int
Commercial name : HEVC
Format profile : Main 10 at L5.1@Main
Internet media type : video/H265
Codec ID : hev1
Codec ID/Info : High Efficiency Video Coding
Codec ID/Url : http://www.itu.int/
Codec : HEVC
Codec : HEVC
Codec/CC : hev1
Codec profile : Main 10 at L5.1@Main
Duration : 54375
Duration : 54 s 375 ms
Duration : 54 s 375 ms
Duration : 54 s 375 ms
Duration : 00:00:54.375
Duration : 00:00:54:09
Duration : 00:00:54.375 (00:00:54:09)
Bit rate : 18288607
Bit rate : 18.3 Mb/s
Width : 3840
Width : 3 840 pixels
Height : 2160
Height : 2 160 pixels
Stored_Height : 2176
Sampled_Width : 3840
Sampled_Height : 2160
Pixel aspect ratio : 1.000
Display aspect ratio : 1.778
Display aspect ratio : 16:9
Rotation : 0.000
Frame rate mode : CFR
Frame rate mode : Constant
Frame rate : 24.000
Frame rate : 24.000 FPS
Frame count : 1305
Standard : Component
Resolution : 10
Resolution : 10 bits
Colorimetry : 4:2:0
Color space : YUV
Chroma subsampling : 4:2:0
Chroma subsampling : 4:2:0
Bit depth : 10
Bit depth : 10 bits
Scan type : Progressive
Scan type : Progressive
Bits/(Pixel*Frame) : 0.092
Stream size : 124305374
Stream size : 119 MiB (98%)
Stream size : 119 MiB
Stream size : 119 MiB
Stream size : 119 MiB
Stream size : 118.5 MiB
Stream size : 119 MiB (98%)
Proportion of this stream : 0.97933
Color range : Limited
colour_description_present : Yes
Color primaries : BT.2020
Audio
Count : 275
Count of stream of this kind : 1
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 0
StreamOrder : 1
ID : 2
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Commercial name : AAC
Format profile : LC
Codec ID : 40
Codec : AAC LC
Codec : AAC LC
Codec/Family : AAC
Codec/CC : 40
Duration : 54422
Duration : 54 s 422 ms
Duration : 54 s 422 ms
Duration : 54 s 422 ms
Duration : 00:00:54.422
Duration : 00:00:54:13
Duration : 00:00:54.422 (00:00:54:13)
Duration_LastFrame : 1
Duration_LastFrame : 1 ms
Duration_LastFrame : 1 ms
Duration_LastFrame : 1 ms
Duration_LastFrame : 00:00:00.001
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 384000
Bit rate : 384 kb/s
Channel(s) : 2
Channel(s) : 2 channels
Channel(s)_Original : 6
Channel(s)_Original : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Channel positions : 3/2/0.1
ChannelLayout : C L R Ls Rs LFE
Samples per frame : 1024
Sampling rate : 48000
Sampling rate : 48.0 kHz
Samples count : 2612256
Frame rate : 46.875
Frame rate : 46.875 FPS (1024 SPF)
Frame count : 2551
Compression mode : Lossy
Compression mode : Lossy
Stream size : 2594367
Stream size : 2.47 MiB (2%)
Stream size : 2 MiB
Stream size : 2.5 MiB
Stream size : 2.47 MiB
Stream size : 2.474 MiB
Stream size : 2.47 MiB (2%)
Proportion of this stream : 0.02044
Default : Yes
Default : Yes
Alternate group : 1
Alternate group : 1
For the HDR metadatas I will use this Python script to make the transfert
https://github.com/SK-Hardwired/nv_hevc_hdr_patcher
I need to make few changes in the script and normally it will be OK and I
will have a 10bits 4K video with all HDR metadatas
If you have comments or tips please let me know ;)
--
Sent from: http://www.ffmpeg-archive.org/
More information about the ffmpeg-user
mailing list