Athira - 2014-01-03

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"/>
<GPACDRM type="CENC AES-CTR">
<!-- example for GPAC - keys are listed after the content and UL follows -->
<DRMInfo type="pssh" version="1" cypherOffset="9">
<BS ID128="6770616363656E6364726D746F6F6C31"/>
<BS value="2" bits="32"/>
<BS ID128="0x279926496a7f5d25da69f2b3b2799a7f"/>
<BS ID128="0x676cb88f302d10227992649885984045"/>
<BS bits="8" string="CID=Toto"/>
<BS ID128="0xccc0f2b3b279926496a7f5d25da692f6"/>
<BS ID128="0xccc0f2b3b279926496a7f5d25da692d6"/>
</DRMInfo>
<CrypTrack trackID="2" IsEncrypted="1" IV_size="16" first_IV="0x0a610676cb88f302d10ac8bc66e039ed" saiSavedBox="senc">
<key KID="0x279926496a7f5d25da69f2b3b2799a7f" value="0xccc0f2b3b279926496a7f5d25da692f6"/>
</CrypTrack>
</GPACDRM>