def check_cpl_id_rfc4122(self, playlist): """ CPL UUID RFC4122 compliance. References: SMPTE ST 429-7:2006 6.1 """ cpl = playlist['Info']['CompositionPlaylist'] uuid = cpl['Id'] if not check_uuid(uuid, RFC4122_RE): self.error("CPL ID invalid (RFC 4122) : {}".format(uuid))
def check_assets_cpl_uuid(self, playlist, asset): """ CPL assets UUID RFC4122 compliance. References: SMPTE ST 429-7:2006 8.1.1 """ _, asset = asset uuid = asset['Id'] if not check_uuid(uuid, RFC4122_RE): self.error("Asset ID invalid (RFC 4122) : {}".format(uuid))
def check_cpl_id_rfc4122(self, playlist): """ CPL UUID RFC4122 compliance. Reference : SMPTE 429-7-2006 6.1 """ cpl = playlist['Info']['CompositionPlaylist'] uuid = cpl['Id'] if not check_uuid(uuid, RFC4122_RE): raise CheckException("CPL ID invalid (RFC 4122) : {}".format(uuid))
def check_assets_cpl_uuid(self, playlist, asset): """ CPL assets UUID RFC4122 compliance. Reference : SMPTE 429-7-2006 8.1.1 """ _, asset = asset uuid = asset['Id'] if not check_uuid(uuid, RFC4122_RE): raise CheckException( "Asset ID invalid (RFC 4122) : {}".format(uuid))
def check_assets_am_uuid(self, am, asset): """ AssetMap UUIDs validation. References: mpeg_ii_am_spec.doc (v3.4) 4.1.1 https://interop-docs.cinepedia.com/Document_Release_2.0/mpeg_ii_am_spec.pdf SMPTE ST 429-9:2014 5.1 ST 429-9 references the final version of RFC 4122 (July 2005) whereas mpeg_ii_am_spec.doc references Draft 03 (January 2004). Diff here: https://tools.ietf.org/rfcdiff?url1=draft-mealling-uuid-urn-03.txt&url2=rfc4122.txt """ uuid, _, _ = asset if not check_uuid(uuid): self.error("Invalid uuid found : {}".format(uuid))
def check_assets_am_uuid(self, am, asset): """ AssetMap UUIDs validation. """ uuid, _, _ = asset if not check_uuid(uuid): raise CheckException( "Invalid uuid found : {}".format(uuid))