webm

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package webm implements the WebM media type.

Index

Constants

View Source
const (
	Depth8  BitDepth = "08"
	Depth10          = "10"
	Depth12          = "12"
)
View Source
const (
	Profile8Bit420 Profile = "00"
	Profile8Bit            = "01"
	ProfileAny420          = "02" // 8, 10, 12 bit depth
	ProfuleAny             = "03"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Audio

type Audio string
const (
	Opus   Audio = "opus"
	Vorbis       = "vorbis"
)

func (Audio) Codec

func (x Audio) Codec() string

func (Audio) Format

func (x Audio) Format() string

func (Audio) Kind

func (x Audio) Kind() media.Kind

type BitDepth

type BitDepth string

type Level

type Level [2]byte

Level 3 is {3, 0} Level 6.1 is {6, 1}

type Profile

type Profile string

type Video

type Video struct {
	// contains filtered or unexported fields
}

A Video represents a webm video media type. The zero value is invalid.

func VP8

func VP8() Video

func VP9

func VP9() Video

func (*Video) Audio

func (x *Video) Audio(a Audio)

Audio specifies an audio codec to use for AV streams.

func (Video) Codec

func (x Video) Codec() string

func (Video) Format

func (x Video) Format() string

func (Video) Kind

func (x Video) Kind() media.Kind

func (*Video) Set

func (x *Video) Set(p Profile, l Level, d BitDepth)

Set specifies the 3 required VP parameters. A Video value is valid for use even without calling this method.

Jump to

Keyboard shortcuts

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