[Bug 765275] matroska: Add encrypted content support in matroskademux

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Dec 7 19:08:36 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=765275

y.bandou <bandou.yacine at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #361953|needs-work                  |none
             status|                            |
 Attachment #361953|0                           |1
        is obsolete|                            |
 Attachment #361954|needs-work                  |none
             status|                            |
 Attachment #361954|0                           |1
        is obsolete|                            |

--- Comment #41 from y.bandou <bandou.yacine at gmail.com> ---
Created attachment 365211
  --> https://bugzilla.gnome.org/attachment.cgi?id=365211&action=edit
matroska: Add the WebM encrypted content support in matroskademux.

Here is the reworked patch.

This patch :

1. Reads the WebM and Matroska ContentEncryption subelements.

2. Creates a GST_PROTECTION event for each ContentEncryption, which
   will be sent before pushing the first source buffer.
   The DRM system id field in this event is set to "UNDEFINED" because
   it isn't specified neither by Matroska nor by the WebM spec.

3. Reads the protection information of encrypted Block/SimpleBlock and
   extracts the IV and the partitioning format (subsamples).

4. Creates the metadata protection for each encrypted Block/SimpleBlock,
   with those informations: KeyID (extracted from ContentEncryption element),
   IV and partitioning format.

5. Adds a new caps for WebM encrypted content named "application/x-webm-enc",
   with the following new fields:

   "encryption-algorithm": The encryption algorithm used.
                           values: "None", "DES", "3DES", "Twofish", 
                                   "Blowfish", "AES".

   "encoding-scope": The field that describes which Elements have been 
                     modified.
                     Values: "frame", "codec-data", "next-content".

   "cipher-mode": The cipher mode used in the encryption.
                  Values: "None", "CTR".

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list