channel4

package
v1.52.5 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: OSL-3.0 Imports: 7 Imported by: 0

README

Channel 4

Using this video:

https://www.channel4.com/programmes/frasier/on-demand/18926-001

Download the MPD:

yt-dlp -o enc.mp4 -f video=501712 --allow-unplayable-formats `
'https://ak-jos-c4assets-com.akamaized.net/CH4_44_7_900_18926001001003_001/CH4_44_7_900_18926001001003_001_J01.ism/stream.mpd?c3.ri=13500989517136472855&mpd_segment_template=time&filter=%28type%3D%3D%22video%22%26%26%28%28DisplayHeight%3E%3D288%29%26%26%28systemBitrate%3C4800000%29%29%29%7C%7Ctype%21%3D%22video%22&ts=1650915617&e=600&st=wk9eWkEeWVJzjYlveA4ysHMimJgJXGD5oCUjpu-HGqU'

Decrypt the media:

mp4decrypt --key 00000000000000000000000004246624:1da9d79c4c6a... enc.mp4 dec.mp4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogLevel format.LogLevel

Functions

func ProgramID added in v1.52.4

func ProgramID(addr string) string

channel4.com/programmes/frasier/on-demand/18926-001

Types

type Payload

type Payload struct {
	Message string `json:"message"`
	Token   string `json:"token"`
	Video   struct {
		Type string `json:"type"`
	} `json:"video"`
}

func NewPayload

func NewPayload(token io.Reader) (*Payload, error)

func (Payload) Widevine

func (p Payload) Widevine() (*Widevine, error)

type Stream

type Stream struct {
	VideoProfiles []struct {
		Name    string
		Streams []struct {
			URI string
		}
	}
}

func NewStream added in v1.52.4

func NewStream(id string) (*Stream, error)

func (Stream) Widevine added in v1.52.4

func (s Stream) Widevine() string

type Widevine

type Widevine struct {
	License string
}

func (Widevine) Decrypt

func (w Widevine) Decrypt() (string, error)

Jump to

Keyboard shortcuts

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