Documentation
¶
Index ¶
- Constants
- func ContentType(codecs []*core.Codec) string
- func MimeCodecs(codecs []*core.Codec) string
- func ParseCodecs(codecs string, parseAudio bool) (medias []*core.Media)
- func ParseQuery(query map[string][]string) []*core.Media
- func PatchVideoRotate(init []byte, degrees int) bool
- func PatchVideoScale(init []byte, scaleX, scaleY int) bool
- type Consumer
- type Keyframe
- type Muxer
Constants ¶
View Source
const ( MimeH264 = "avc1.640029" MimeH265 = "hvc1.1.6.L153.B0" MimeAAC = "mp4a.40.2" MimeFlac = "flac" MimeOpus = "opus" )
Variables ¶
This section is empty.
Functions ¶
func ContentType ¶
func MimeCodecs ¶
func ParseQuery ¶
ParseQuery - like usual parse, but with mp4 param handler
func PatchVideoRotate ¶
PatchVideoRotate - update video track transformation matrix. Rotation supported by many players and browsers (except Safari). Scale has low support and better not to use it. Supported only 0, 90, 180, 270 degrees.
func PatchVideoScale ¶
PatchVideoScale - update "Pixel Aspect Ratio" atom. Supported by many players and browsers (except Firefox). Supported only positive integers.
Types ¶
type Consumer ¶
type Consumer struct { core.Connection Rotate int `json:"-"` ScaleX int `json:"-"` ScaleY int `json:"-"` // contains filtered or unexported fields }
func NewConsumer ¶
type Keyframe ¶
type Keyframe struct { core.Connection // contains filtered or unexported fields }
func NewKeyframe
deprecated
Click to show internal directories.
Click to hide internal directories.