Documentation ¶
Index ¶
- Constants
- type Movie
- func (m *Movie) Bytes() []byte
- func (m *Movie) EndAtom()
- func (m *Movie) Skip(n int)
- func (m *Movie) StartAtom(name string)
- func (m *Movie) Write(b []byte)
- func (m *Movie) WriteAudio(codec string, channels uint16, sampleRate uint32, conf []byte)
- func (m *Movie) WriteAudioMediaInfo()
- func (m *Movie) WriteAudioTrack(id uint32, codec string, timescale uint32, channels uint16, conf []byte)
- func (m *Movie) WriteBytes(b ...byte)
- func (m *Movie) WriteData(b []byte)
- func (m *Movie) WriteDataInfo()
- func (m *Movie) WriteEsdsAAC(conf []byte)
- func (m *Movie) WriteEsdsMP3()
- func (m *Movie) WriteFileType()
- func (m *Movie) WriteFloat16(f float64)
- func (m *Movie) WriteFloat32(f float64)
- func (m *Movie) WriteMatrix()
- func (m *Movie) WriteMediaHandler(s, name string)
- func (m *Movie) WriteMediaHeader(timescale uint32)
- func (m *Movie) WriteMovieFragment(seq, tid, duration, size, flags uint32, time uint64)
- func (m *Movie) WriteMovieHeader()
- func (m *Movie) WriteSampleTable(writeSampleDesc func())
- func (m *Movie) WriteString(s string)
- func (m *Movie) WriteTrackExtend(id uint32)
- func (m *Movie) WriteTrackHeader(id uint32, width, height uint16)
- func (m *Movie) WriteUint16(v uint16)
- func (m *Movie) WriteUint24(v uint32)
- func (m *Movie) WriteUint32(v uint32)
- func (m *Movie) WriteUint64(v uint64)
- func (m *Movie) WriteVideo(codec string, width, height uint16, conf []byte)
- func (m *Movie) WriteVideoMediaInfo()
- func (m *Movie) WriteVideoTrack(id uint32, codec string, timescale uint32, width, height uint16, conf []byte)
Constants ¶
View Source
const ( Ftyp = "ftyp" Moov = "moov" MoovMvhd = "mvhd" MoovTrak = "trak" MoovTrakTkhd = "tkhd" MoovTrakMdia = "mdia" MoovTrakMdiaMdhd = "mdhd" MoovTrakMdiaHdlr = "hdlr" MoovTrakMdiaMinf = "minf" MoovTrakMdiaMinfVmhd = "vmhd" MoovTrakMdiaMinfSmhd = "smhd" MoovTrakMdiaMinfDinf = "dinf" MoovTrakMdiaMinfDinfDref = "dref" MoovTrakMdiaMinfDinfDrefUrl = "url " MoovTrakMdiaMinfStbl = "stbl" MoovTrakMdiaMinfStblStsd = "stsd" MoovTrakMdiaMinfStblStts = "stts" MoovTrakMdiaMinfStblStsc = "stsc" MoovTrakMdiaMinfStblStsz = "stsz" MoovTrakMdiaMinfStblStco = "stco" MoovMvex = "mvex" MoovMvexTrex = "trex" Moof = "moof" MoofMfhd = "mfhd" MoofTraf = "traf" MoofTrafTfhd = "tfhd" MoofTrafTfdt = "tfdt" MoofTrafTrun = "trun" Mdat = "mdat" )
View Source
const ( SampleVideoIFrame = sampleDependsOn2 SampleVideoNonIFrame = sampleDependsOn1 | sampleIsNonSync SampleAudio = sampleDependsOn2 //sampleIsNonSync )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Movie ¶
type Movie struct {
// contains filtered or unexported fields
}
func (*Movie) WriteAudio ¶
func (*Movie) WriteAudioMediaInfo ¶
func (m *Movie) WriteAudioMediaInfo()
func (*Movie) WriteAudioTrack ¶
func (*Movie) WriteBytes ¶
func (*Movie) WriteDataInfo ¶
func (m *Movie) WriteDataInfo()
func (*Movie) WriteEsdsAAC ¶
func (*Movie) WriteEsdsMP3 ¶
func (m *Movie) WriteEsdsMP3()
func (*Movie) WriteFileType ¶
func (m *Movie) WriteFileType()
func (*Movie) WriteFloat16 ¶
func (*Movie) WriteFloat32 ¶
func (*Movie) WriteMatrix ¶
func (m *Movie) WriteMatrix()
func (*Movie) WriteMediaHandler ¶
func (*Movie) WriteMediaHeader ¶
func (*Movie) WriteMovieFragment ¶
func (*Movie) WriteMovieHeader ¶
func (m *Movie) WriteMovieHeader()
func (*Movie) WriteSampleTable ¶
func (m *Movie) WriteSampleTable(writeSampleDesc func())
func (*Movie) WriteString ¶
func (*Movie) WriteTrackExtend ¶
func (*Movie) WriteTrackHeader ¶
func (*Movie) WriteUint16 ¶
func (*Movie) WriteUint24 ¶
func (*Movie) WriteUint32 ¶
func (*Movie) WriteUint64 ¶
func (*Movie) WriteVideo ¶
func (*Movie) WriteVideoMediaInfo ¶
func (m *Movie) WriteVideoMediaInfo()
Click to show internal directories.
Click to hide internal directories.