Documentation ¶
Index ¶
- Constants
- func AddPTS(p1, p2 int64) int64
- func CalculateSteps(timestamps []int64) []int64
- func Execute(w io.Writer, o Options, inFile string, function RunableFunc) error
- func GetVersion() string
- func ParseAll(ctx context.Context, w io.Writer, f io.Reader, o Options) error
- func ParseInfo(ctx context.Context, w io.Writer, f io.Reader, o Options) error
- func SignedPTSDiff(p2, p1 int64) int64
- func ToSdtInfo(sdt *astits.SDTData) sdtInfo
- func UnsignedPTSDiff(p2, p1 int64) int64
- type AvcPS
- type ElementaryStreamInfo
- type HevcPS
- type JsonPrinter
- func (p *JsonPrinter) Error() error
- func (p *JsonPrinter) Print(data any, show bool)
- func (jp *JsonPrinter) PrintPS(pid uint16, psKind string, nr uint32, ps []byte, details any, verbose bool, ...)
- func (p *JsonPrinter) PrintSdtInfo(sdt *astits.SDTData, show bool)
- func (p *JsonPrinter) PrintStatistics(s StreamStatistics, show bool)
- type NaluData
- type NaluFrameData
- type OptionParseFunc
- type Options
- type PsInfo
- type RunableFunc
- type SeiOut
- type StreamStatistics
Constants ¶
View Source
const ( PacketSize = 188 PtsWrap = 1 << 33 PcrWrap = PtsWrap * 300 TimeScale = 90000 )
Variables ¶
This section is empty.
Functions ¶
func CalculateSteps ¶ added in v0.1.1
func GetVersion ¶
func GetVersion() string
GetVersion - get version and also commitHash and commitDate if inserted via Makefile
func SignedPTSDiff ¶ added in v0.1.1
func UnsignedPTSDiff ¶ added in v0.1.1
Types ¶
type AvcPS ¶ added in v0.2.0
type AvcPS struct { Statistics StreamStatistics // contains filtered or unexported fields }
func ParseAVCPES ¶ added in v0.2.0
func ParseAVCPES(jp *JsonPrinter, d *astits.DemuxerData, ps *AvcPS, o Options) (*AvcPS, error)
type ElementaryStreamInfo ¶ added in v0.1.1
type HevcPS ¶ added in v0.2.0
type HevcPS struct { Statistics StreamStatistics // contains filtered or unexported fields }
func ParseHEVCPES ¶ added in v0.2.0
func ParseHEVCPES(jp *JsonPrinter, d *astits.DemuxerData, ps *HevcPS, o Options) (*HevcPS, error)
type JsonPrinter ¶ added in v0.1.1
func (*JsonPrinter) Error ¶ added in v0.1.1
func (p *JsonPrinter) Error() error
func (*JsonPrinter) Print ¶ added in v0.1.1
func (p *JsonPrinter) Print(data any, show bool)
func (*JsonPrinter) PrintSdtInfo ¶ added in v0.1.1
func (p *JsonPrinter) PrintSdtInfo(sdt *astits.SDTData, show bool)
func (*JsonPrinter) PrintStatistics ¶ added in v0.1.1
func (p *JsonPrinter) PrintStatistics(s StreamStatistics, show bool)
type NaluFrameData ¶ added in v0.1.1
type OptionParseFunc ¶ added in v0.1.1
type OptionParseFunc func() Options
type Options ¶ added in v0.1.1
type Options struct { MaxNrPictures int Version bool Indent bool ShowStreamInfo bool ShowService bool ShowPS bool VerbosePSInfo bool ShowNALU bool ShowSEIDetails bool ShowStatistics bool }
func CreateFullOptions ¶ added in v0.1.1
func ParseParams ¶ added in v0.1.1
func ParseParams(function OptionParseFunc) (o Options, inFile string)
type RunableFunc ¶ added in v0.1.1
type StreamStatistics ¶ added in v0.1.1
type StreamStatistics struct { Type string `json:"streamType"` Pid uint16 `json:"pid"` FrameRate float64 `json:"frameRate"` TimeStamps []int64 `json:"-"` MaxStep int64 `json:"maxStep,omitempty"` MinStep int64 `json:"minStep,omitempty"` AvgStep int64 `json:"avgStep,omitempty"` // RAI-markers RAIPTS []int64 `json:"-"` IDRPTS []int64 `json:"-"` RAIGOPDuration int64 `json:"RAIGoPDuration,omitempty"` IDRGOPDuration int64 `json:"IDRGoPDuration,omitempty"` // Errors Errors []string `json:"errors,omitempty"` }
Click to show internal directories.
Click to hide internal directories.