Skip to content

Commit

Permalink
AV1では、HDR10+ metadataの前に、master-displayとmax-cllの情報を置いたほうが良い模様。
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Nov 7, 2024
1 parent 141dfa9 commit 774f7a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NVEncCore/rgy_output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ RGY_ERR RGYOutputRaw::WriteNextOneFrame(RGYBitstream *pBitstream) {
std::vector<std::unique_ptr<RGYOutputInsertMetadata>> metadataList;
if (m_hdrBitstream.size() > 0) {
std::vector<uint8_t> data(m_hdrBitstream.data(), m_hdrBitstream.data() + m_hdrBitstream.size());
metadataList.push_back(std::make_unique<RGYOutputInsertMetadata>(data, true, false));
metadataList.push_back(std::make_unique<RGYOutputInsertMetadata>(data, (m_VideoOutputInfo.codec == RGY_CODEC_AV1) ? false : true, false));
}
if (m_hdr10plusMetadataCopy) {
auto [err_hdr10plus, metadata_hdr10plus] = getMetadata<RGYFrameDataHDR10plus>(RGY_FRAME_DATA_HDR10PLUS, bs_framedata, nullptr);
Expand Down
2 changes: 1 addition & 1 deletion NVEncCore/rgy_output_avcodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2804,7 +2804,7 @@ RGY_ERR RGYOutputAvcodec::WriteNextFrameInternalOneFrame(RGYBitstream *bitstream
std::vector<std::unique_ptr<RGYOutputInsertMetadata>> metadataList;
if (m_Mux.video.hdrBitstream.size() > 0) {
std::vector<uint8_t> data(m_Mux.video.hdrBitstream.data(), m_Mux.video.hdrBitstream.data() + m_Mux.video.hdrBitstream.size());
metadataList.push_back(std::make_unique<RGYOutputInsertMetadata>(data, true, false));
metadataList.push_back(std::make_unique<RGYOutputInsertMetadata>(data, (m_VideoOutputInfo.codec == RGY_CODEC_AV1) ? false : true, false));
}
if (m_Mux.video.hdr10plusMetadataCopy) {
auto [err_hdr10plus, metadata_hdr10plus] = getMetadata<RGYFrameDataHDR10plus>(RGY_FRAME_DATA_HDR10PLUS, bs_framedata, nullptr);
Expand Down

0 comments on commit 774f7a3

Please sign in to comment.