mp4

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 17 Imported by: 4

README

HEVC

Browser avc1 hvc1 hev1
Mac Chrome + - +
Mac Safari + + -
iOS 15? + + -
Mac Firefox + - -
iOS 12 + - -
Android 13 + - -
ffmpeg -i input-hev1.mp4 -c:v copy -tag:v hvc1 -c:a copy output-hvc1.mp4
Stream #0:0(eng): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, progressive), 720x404, 164 kb/s, 29.97 fps,
Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, progressive), 720x404, 164 kb/s, 29.97 fps,

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ESDS

func ESDS(conf []byte) *mp4f.FDummy

func FTYP

func FTYP() []byte

func MOOV

func MOOV() *mp4io.Movie

func TRAK

func TRAK(id int) *mp4io.Track

Types

type Consumer

type Consumer struct {
	streamer.Element

	Medias     []*streamer.Media
	UserAgent  string
	RemoteAddr string
	// contains filtered or unexported fields
}

func (*Consumer) AddTrack

func (c *Consumer) AddTrack(media *streamer.Media, track *streamer.Track) *streamer.Track

func (*Consumer) GetMedias

func (c *Consumer) GetMedias() []*streamer.Media

func (*Consumer) Init

func (c *Consumer) Init() ([]byte, error)

func (*Consumer) MarshalJSON

func (c *Consumer) MarshalJSON() ([]byte, error)

func (*Consumer) MimeType

func (c *Consumer) MimeType() string

func (*Consumer) Start

func (c *Consumer) Start()

type Muxer

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

func (*Muxer) GetInit

func (m *Muxer) GetInit(codecs []*streamer.Codec) ([]byte, error)

func (*Muxer) Marshal

func (m *Muxer) Marshal(trackID byte, packet *rtp.Packet) []byte

func (*Muxer) MimeType

func (m *Muxer) MimeType(codecs []*streamer.Codec) string

func (*Muxer) Reset

func (m *Muxer) Reset()

type Segment

type Segment struct {
	streamer.Element

	Medias     []*streamer.Media
	UserAgent  string
	RemoteAddr string

	MimeType     string
	OnlyKeyframe bool
	// contains filtered or unexported fields
}

func (*Segment) AddTrack

func (c *Segment) AddTrack(media *streamer.Media, track *streamer.Track) *streamer.Track

func (*Segment) GetMedias

func (c *Segment) GetMedias() []*streamer.Media

func (*Segment) MarshalJSON

func (c *Segment) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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