Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Frame ¶
type Frame struct { Pid int StreamID int Dts int64 Pts int64 Header []byte // 1. AAC-ADTS Header; 2. aud nal [+sps nal+pps nal]+sample nal start code Payload []byte // data without startcode // contains filtered or unexported fields }
Frame mpegts frame
type FrameWriter ¶
FrameWriter 包装 WriteMpegtsFrame 方法的接口
type MuxerAvcAac ¶
type MuxerAvcAac struct {
// contains filtered or unexported fields
}
MuxerAvcAac flv muxer from av.Frame(H264[+AAC])
func NewMuxerAvcAac ¶
func NewMuxerAvcAac(videoMeta codec.VideoMeta, audioMeta codec.AudioMeta, tsframeWriter FrameWriter, logger *xlog.Logger) (*MuxerAvcAac, error)
NewMuxerAvcAac .
func (*MuxerAvcAac) WriteFrame ¶
func (muxer *MuxerAvcAac) WriteFrame(frame *codec.Frame) error
WriteFrame .
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer flv Writer
func (*Writer) WriteMpegtsFrame ¶
WriteMpegtsFrame write mpegts frame
Click to show internal directories.
Click to hide internal directories.