I encrypted a mp4 file with 1 HEVC track and 1 aac track.
Then i ran the command:
#MP4Box -info hevc_enc.mp4
I got the following warning:
Non-compliant HEVC track: No hvcC or shcC found in sample description
Whereas the file clearly contains the hvcC record
Also, when i extract the raw encrypted HEVC stream from the file, I could not find any NAL start codes. As per the CENC standard, the NAL start codes are to be kept unencrypted.
The xml file I used as input to encryption command is:
<?xml version="1.0" encoding="UTF-8"/>
<GPACDRMtype="CENC AES-CTR"><!-- example for GPAC - keys are listed after the content and UL follows --><DRMInfotype="pssh"version="1"cypherOffset="9"><BSID128="6770616363656E6364726D746F6F6C31"/><BSvalue="2"bits="32"/><BSID128="0x279926496a7f5d25da69f2b3b2799a7f"/><BSID128="0x676cb88f302d10227992649885984045"/><BSbits="8"string="CID=Toto"/><BSID128="0xccc0f2b3b279926496a7f5d25da692f6"/><BSID128="0xccc0f2b3b279926496a7f5d25da692d6"/></DRMInfo><CrypTracktrackID="2"IsEncrypted="1"IV_size="16"first_IV="0x0a610676cb88f302d10ac8bc66e039ed"saiSavedBox="senc"><keyKID="0x279926496a7f5d25da69f2b3b2799a7f"value="0xccc0f2b3b279926496a7f5d25da692f6"/></CrypTrack></GPACDRM>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I encrypted a mp4 file with 1 HEVC track and 1 aac track.
Then i ran the command:
#MP4Box -info hevc_enc.mp4
I got the following warning:
Non-compliant HEVC track: No hvcC or shcC found in sample description
Whereas the file clearly contains the hvcC record
Also, when i extract the raw encrypted HEVC stream from the file, I could not find any NAL start codes. As per the CENC standard, the NAL start codes are to be kept unencrypted.
The xml file I used as input to encryption command is: