remux

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 9 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRemux = errors.New("lal.remux: fxxk")

Functions

func AVConfig2FLVTag

func AVConfig2FLVTag(asc, vps, sps, pps []byte) (metadata, ash, vsh *httpflv.Tag, err error)

@param asc 如果为nil,则没有音频 @param vps 如果为nil,则是H264,如果不为nil,则是H265 @return 返回的内存块为新申请的独立内存块

func AVConfig2RTMPMsg

func AVConfig2RTMPMsg(asc, vps, sps, pps []byte) (metadata, ash, vsh *base.RTMPMsg, err error)

@return 返回的内存块为新申请的独立内存块

func AVPacket2FLVTag

func AVPacket2FLVTag(pkt base.AVPacket) (tag httpflv.Tag, err error)

@return 返回的内存块为新申请的独立内存块

func AVPacket2RTMPMsg

func AVPacket2RTMPMsg(pkt base.AVPacket) (msg base.RTMPMsg, err error)

@return 返回的内存块为新申请的独立内存块

func FLVTag2RTMPMsg

func FLVTag2RTMPMsg(tag httpflv.Tag) (msg base.RTMPMsg)

@return 返回的内存块引用参数输入的内存块

func FLVTagHeader2RTMPHeader

func FLVTagHeader2RTMPHeader(in httpflv.TagHeader) (out base.RTMPHeader)

func MakeDefaultRTMPHeader

func MakeDefaultRTMPHeader(in base.RTMPHeader) (out base.RTMPHeader)

func RTMPMsg2FLVTag

func RTMPMsg2FLVTag(msg base.RTMPMsg) *httpflv.Tag

@return 返回的内存块为新申请的独立内存块

Types

This section is empty.

Jump to

Keyboard shortcuts

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