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 ¶ added in v1.7.0
func MimeCodecs ¶ added in v1.7.0
func ParseCodecs ¶ added in v1.6.0
func ParseQuery ¶ added in v1.1.0
ParseQuery - like usual parse, but with mp4 param handler
func PatchVideoRotate ¶ added in v1.6.1
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 ¶ added in v1.6.1
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 ¶ added in v1.7.0
type Keyframe ¶ added in v1.7.0
type Keyframe struct { core.Connection // contains filtered or unexported fields }
func NewKeyframe
deprecated
added in
v1.7.0
type Muxer ¶
type Muxer struct {
// contains filtered or unexported fields
}
func (*Muxer) GetPayload ¶ added in v1.7.0
Click to show internal directories.
Click to hide internal directories.