<?xml version="1.0" encoding="UTF-8"?><GPACDRMtype="CENC AES-CTR"><!-- example for playReady - data contains the cyphered key & co --><DRMInfotype="pssh"version="0"><BSID128="9A04F07998404286AB92E65BE0885F95"/><BSdata="application/data;base64:ACE125"/><BSsourceFile="cenc_blob.bin"/></DRMInfo><!-- example for GPAC - keys are listed after the content and UL follows --><DRMInfotype="pssh"version="1"cypherOffset="9"cypherKey="0x6770616363656E6364726D746F6F6C31"cypherIV="0x00000000000000000000000000000001"><BSID128="6770616363656E6364726D746F6F6C31"/><BSvalue="2"bits="32"/><BSID128="0x279926496a7f5d25da69f2b3b2799a7f"/><BSID128="0x676cb88f302d10227992649885984045"/><BSbits="8"string="CID=Toto"/><BSID128="0xccc0f2b3b279926496a7f5d25da692f6"/><BSID128="0xccc0f2b3b279926496a7f5d25da692d6"/></DRMInfo><CrypTracktrackID="1"IsEncrypted="1"IV_size="16"first_IV="0x0a610676cb88f302d10ac8bc66e039ed"saiSavedBox="senc"><keyKID="0x279926496a7f5d25da69f2b3b2799a7f"value="0xccc0f2b3b279926496a7f5d25da692f6"/></CrypTrack></GPACDRM>
The video is encoded with the following command line:
Now, when I play the decrypted video by using VLC sample-hevc-dec.mp4 (2.1.5 Rincewind) or mp4client sample-hevc-dec.mp4 (version 0.5.2-DEV-rev322-gf6fed6c-master), the video looks "incomplete" - it seem that only the delta between frames is shown, but not the initial frame.
Do you know what I did wrong? How can I play the complete video and be sure that the video is correctly encrypted and also decrypted?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
My goal is to encrypt a video encoded in HEVC (using x265) by using MP4Box. For this I have use the following installation:
OS: Windows 7
The MP4Box version output looks like:
As Sample drm-file.xml I use (according to http://gpac.wp.mines-telecom.fr/mp4box/encryption/common-encryption/):
The video is encoded with the following command line:
And then I use to package the encoded video by using MP4Box with the command:
Now I encrypt and decrypt the video file with the following command lines:
Now, when I play the decrypted video by using VLC sample-hevc-dec.mp4 (2.1.5 Rincewind) or mp4client sample-hevc-dec.mp4 (version 0.5.2-DEV-rev322-gf6fed6c-master), the video looks "incomplete" - it seem that only the delta between frames is shown, but not the initial frame.
Do you know what I did wrong? How can I play the complete video and be sure that the video is correctly encrypted and also decrypted?
Hello,
Does your original file sample-hevc.mp4 play well with VLC or MP4Client ? If yes, could you please upload it somewhere and we will check it