go-pssh-generator

command module
v0.0.0-...-a781cb7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2021 License: MIT Imports: 7 Imported by: 0

README

go-pssh-generator

Build Status Go Report Card codecov Go Reference

go-pssh-generator is a Protection System Specific Header ('pssh') boxes generator written in Go (Golang).

Usage

Download and install it:

$ go get github.com/JohnnyCPC/go-pssh-generator
PSSH data/box generation

An example to generate a Widevine PSSH Data/Box with content-id 'test_id' and provider 'widevinve_test'

$ go run main.go -contentid test_id -provider widevinve_test

Will get the result: (both hex and base64)

PSSH Data: 08011a0d7769646576696e655f746573742207746573745f6964
PSSH Data(base64): CAEaDXdpZGV2aW5lX3Rlc3QiB3Rlc3RfaWQ=
PSSH BOX: 0000003A7073736800000000EDEF8BA979D64ACEA3C827DCD51D21ED0000001A08011a0d7769646576696e655f746573742207746573745f6964 
PSSH BOX(base64): AAAAOnBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABoIARoNd2lkZXZpbmVfdGVzdCIHdGVzdF9pZA==+LqXnWSs6jyCfc1R0h7QAAABsIARoOd2lkZXZpbnZlX3Rlc3QiB3Rlc3RfaWQ=

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL