An open API service indexing awesome lists of open source software.

https://github.com/stuarthicks/mrd

"DRM" backwards. Inspect Widevine and PlayReady PSSH payloads.
https://github.com/stuarthicks/mrd

cli drm go golang mp4 playready pssh widevine widevine-drm

Last synced: 11 months ago
JSON representation

"DRM" backwards. Inspect Widevine and PlayReady PSSH payloads.

Awesome Lists containing this project

README

          

# MRD ![workflow](https://github.com/stuarthicks/mrd/actions/workflows/go.yml/badge.svg)

mrd ("drm" backwards), pronounced /mɛː(ɹ)d/

Decoding the primordial soup of video DRM metadata. Inspired by https://walkergriggs.com/2024/10/16/pssh_primordial_soup_of_secure-ish_headers/

## Install

Using Homebrew:

brew install stuarthicks/brews/mrd

Using Go:

go install github.com/stuarthicks/mrd@latest

## Usage

References:

- https://github.com/shaka-project/shaka-packager/blob/main/packager/media/base/widevine_pssh_data.proto
- https://learn.microsoft.com/en-us/playready/specifications/playready-header-specification

Either pipe input via STDIN, or use `-input [file]` to specify a filename. Accepts mp4 and raw pssh/pro paylods (with or without base64 encoding).

Use `-verbose` or `-debug` for debug logging.

Use `-pretty=false` to disable pretty-printing (one line per header object printed).