$ /Applications/Video/mp4box_EvalVid/MP4Box -h crypt
ISMA Encryption/Decryption Options
-crypt drm_file: crypts a specific track using ISMA AES CTR 128
-decrypt [drm_file] decrypts a specific track using ISMA AES CTR 128
* Note: drm_file can be omitted if keys are in file
-set-kms kms_uri changes KMS location for all tracks or a given one.
* to adress a track, use 'tkID=kms_uri'
DRM file syntax for GPAC ISMACryp:
File is XML and shall start with xml header
File root is an "ISMACryp" element
File is a list of "ISMACrypTrack" elements
ISMACrypTrack attributes are
TrackID: ID of track to en/decrypt
key: AES-128 key formatted (hex string '0x'+32 chars)
salt: CTR IV salt key (64 bits) (hex string '0x'+16 chars)
Encryption only attributes:
Scheme_URI: URI of scheme used
KMS_URI: URI of key management system
* Note: 'self' writes key and salt in the file
selectiveType: selective encryption type - understood values are:
"None": all samples encrypted (default)
"RAP": only encrypts random access units
"Non-RAP": only encrypts non-random access units
"Rand": random selection is performed
"X": Encrypts every first sample out of X (uint)
"RandX": Encrypts one random sample out of X (uint)
ipmpType: IPMP Signaling Type: None, IPMP, IPMPX
ipmpDescriptorID: IPMP_Descriptor ID to use if IPMP(X) is used
* If not set MP4Box will generate one for you