[FFmpeg-trac] #5390(avcodec:new): Nvenc Based HEVC Encoding Compability Fix
FFmpeg
trac at avcodec.org
Wed Mar 30 10:48:30 CEST 2016
#5390: Nvenc Based HEVC Encoding Compability Fix
-------------------------------------+-------------------------------------
Reporter: | Type: defect
smallishzulu | Priority: important
Status: new | Version: git-
Component: avcodec | master
Keywords: nvenc, aud | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Hello,
Nvidia Nvenc bassed HEVC encoding need Access Unit Delimeters based on
HEVC specification:
Access Unit Delimiter, which is mandatory.
ITU-T H.222.0 Amendment 3 (01/2014)
14 Clause 2.17
2.17 Carriage of HEVC
2.17.1 Constraints for the transport of HEVC
Each HEVC access unit shall contain an access unit delimiter NAL unit;
Currently, nvenc HEVC coding does not enable AUD which causes LG and Sony
TVs unable to decode FFmpeg generated MPEGTS streams.
The Fix is:
libavcodec/nvenc.c Line 951:
951: case AV_CODEC_ID_H265:
952:
ctx->encode_config.encodeCodecConfig.hevcConfig.hevcVUIParameters.colourMatrix
= avctx->colorspace;
Needs to be changed to:
951: case AV_CODEC_ID_H265:
952: ctx->encode_config.encodeCodecConfig.hevcConfig.outputAUD = 1;
953:
ctx->encode_config.encodeCodecConfig.hevcConfig.hevcVUIParameters.colourMatrix
= avctx->colorspace;
So Access Unit Delimiter for HEVC Encoding is Enabled.
Problem is fixed for Sony and LG TVs in decoding.
Regards,
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5390>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list