Documentation ¶
Overview ¶
Package mkv provides the Matroska multimedia writer.
The package implements block data writer for multi-track Matroska container.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultEBMLHeader is the default EBML header used by BlockWriter. DefaultEBMLHeader = &EBMLHeader{ EBMLVersion: 1, EBMLReadVersion: 1, EBMLMaxIDLength: 4, EBMLMaxSizeLength: 8, DocType: "matroska", DocTypeVersion: 4, DocTypeReadVersion: 2, } // DefaultSegmentInfo is the default Segment.Info used by BlockWriter. DefaultSegmentInfo = &Info{ TimecodeScale: 1000000, MuxingApp: "ebml-go.mkv.BlockWriter", WritingApp: "ebml-go.mkv.BlockWriter", } )
Functions ¶
This section is empty.
Types ¶
type EBMLHeader ¶
type EBMLHeader struct { EBMLVersion uint64 `ebml:"EBMLVersion"` EBMLReadVersion uint64 `ebml:"EBMLReadVersion"` EBMLMaxIDLength uint64 `ebml:"EBMLMaxIDLength"` EBMLMaxSizeLength uint64 `ebml:"EBMLMaxSizeLength"` DocType string `ebml:"EBMLDocType"` DocTypeVersion uint64 `ebml:"EBMLDocTypeVersion"` DocTypeReadVersion uint64 `ebml:"EBMLDocTypeReadVersion"` }
EBMLHeader represents EBML header struct.
type Info ¶
type Info struct { TimecodeScale uint64 `ebml:"TimecodeScale"` MuxingApp string `ebml:"MuxingApp,omitempty"` WritingApp string `ebml:"WritingApp,omitempty"` Duration float64 `ebml:"Duration,omitempty"` DateUTC time.Time `ebml:"DateUTC,omitempty"` }
Info represents Info element struct.
func (*Info) GetDuration ¶
func (*Info) SetDateUTC ¶
func (*Info) SetDuration ¶
Click to show internal directories.
Click to hide internal directories.