channel4

package
v1.52.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: OSL-3.0 Imports: 6 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

This section is empty.

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 {
	URI string
}

type Video

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

func NewVideo

func NewVideo(id string) (*Video, error)

func (Video) Widevine

func (v Video) Widevine() *Stream

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