Documentation
¶
Overview ¶
Package libavformat provides some generic global options, which can be set on all the muxers and demuxers. In addition each muxer or demuxer may support so-called private options, which are specific for that component. Supported formats (muxers and demuxers) provided by the libavformat library
Package libavformat provides some generic global options, which can be set on all the muxers and demuxers. In addition each muxer or demuxer may support so-called private options, which are specific for that component. Supported formats (muxers and demuxers) provided by the libavformat library
Package libavformat provides some generic global options, which can be set on all the muxers and demuxers. In addition each muxer or demuxer may support so-called private options, which are specific for that component. Supported formats (muxers and demuxers) provided by the libavformat library
Index ¶
- Constants
- func AvAddIndexEntry(st *Stream, pos, t, int64, s, d, f int) int
- func AvCodecGetTag(t **AvCodecTag, id CodecID) uint
- func AvCodecGetTag2(t **AvCodecTag, id CodecID, tag *uint) int
- func AvFilenameNumberTest(filename string) int
- func AvFindBestStream(ic *Context, t MediaType, ws, rs int, c **AvCodec, f int) int
- func AvGetFrameFilename(bufSize int, path string, number int) (int, string)
- func AvHexDump(f *File, b *uint8, s int)
- func AvHexDumpLog(a, l int, b *uint8, s int)
- func AvIndexSearchTimestamp(st *Stream, t int64, f int) int
- func AvMatchExt(filename, extensions string) int
- func AvPktDump2(f *File, pkt *libavcodec.Packet, dp int, st *Stream)
- func AvPktDumpLog2(a int, l int, pkt *libavcodec.Packet, dp int, st *Stream)
- func AvProbeInputBuffer(pb *AvIOContext, f **InputFormat, fi string, l int, o, m uint) int
- func AvProbeInputBuffer2(pb *AvIOContext, f **InputFormat, fi string, l int, o, m uint) int
- func AvSdpCreate(ac **Context, nFiles int, bufSize int) (int, string)
- func AvURLSplit(protoSize, authorizationSize, hostnameSize int, pp *int, pathSize int, ...) (proto, authorization, hostname, path string)
- func AvformatAllocOutputContext2(ctx **Context, o *OutputFormat, fo, fi string) int
- func AvformatConfiguration() string
- func AvformatLicense() string
- func AvformatNetworkDeinit() int
- func AvformatNetworkInit() int
- func AvformatOpenInput(ps **Context, fi string, fmt *InputFormat, d **libavutil.Dictionary) int
- func AvformatQueryCodec(o *OutputFormat, cd CodecID, sc int) int
- func AvformatVersion() uint
- type AvChapter
- type AvCodec
- type AvCodecTag
- type AvDiscard
- type AvDurationEstimationMethod
- type AvFormatInternal
- type AvIOContext
- type AvIOInterruptCB
- type AvIndexEntry
- type AvPacketList
- type AvPacketSideData
- type AvPacketSideDataType
- type AvProbeData
- type AvProgram
- type AvStreamParseType
- type Class
- type CodecContext
- func (cctx *CodecContext) GetCodecID() CodecID
- func (cctx *CodecContext) GetCodecType() MediaType
- func (cctx *CodecContext) GetExtraData() []byte
- func (cctx *CodecContext) GetFlags() int
- func (cctx *CodecContext) GetHeight() int
- func (cctx *CodecContext) GetMaxQDiff() int
- func (cctx *CodecContext) GetMeRange() int
- func (cctx *CodecContext) GetPixelFormat() libavcodec.PixelFormat
- func (cctx *CodecContext) GetQCompress() float32
- func (cctx *CodecContext) GetQMax() int
- func (cctx *CodecContext) GetQMin() int
- func (cctx *CodecContext) GetTimeBase() libavcodec.Rational
- func (cctx *CodecContext) GetWidth() int
- func (cctx *CodecContext) Release()
- func (cctx *CodecContext) SetBitRate(br int64)
- func (cctx *CodecContext) SetCodecID(codecID CodecID)
- func (cctx *CodecContext) SetCodecType(ctype MediaType)
- func (cctx *CodecContext) SetExtraData(data []byte)
- func (cctx *CodecContext) SetFlags(flags int)
- func (cctx *CodecContext) SetHeight(h int)
- func (cctx *CodecContext) SetMaxQDiff(v int)
- func (cctx *CodecContext) SetMeRange(r int)
- func (cctx *CodecContext) SetPixelFormat(fmt libavcodec.PixelFormat)
- func (cctx *CodecContext) SetQCompress(v float32)
- func (cctx *CodecContext) SetQMax(v int)
- func (cctx *CodecContext) SetQMin(v int)
- func (cctx *CodecContext) SetTimeBase(timeBase libavcodec.Rational)
- func (cctx *CodecContext) SetWidth(w int)
- func (cctx *CodecContext) Type() MediaType
- type CodecID
- type CodecParserContext
- type Context
- func (ctxt *Context) AudioCodec() *AvCodec
- func (ctxt *Context) AudioCodecID() CodecID
- func (ctxt *Context) AudioPreload() int
- func (s *Context) AvDumpFormat(i int, url string, io int)
- func (s *Context) AvFindDefaultStreamIndex() int
- func (s *Context) AvFindProgramFromStream(l *AvProgram, su int) *AvProgram
- func (s *Context) AvFmtCtxGetDurationEstimationMethod() AvDurationEstimationMethod
- func (s *Context) AvFormatInjectGlobalSideData()
- func (s *Context) AvGetOutputTimestamp(st int, dts, wall *int) int
- func (s *Context) AvGuessFrameRate(st *Stream, fr *Frame) libavcodec.Rational
- func (s *Context) AvGuessSampleAspectRatio(st *Stream, fr *Frame) libavcodec.Rational
- func (s *Context) AvInterleavedWriteFrame(pkt *libavcodec.Packet) int
- func (s *Context) AvInterleavedWriteUncodedFrame(si int, f *Frame) int
- func (s *Context) AvNewProgram(id int) *AvProgram
- func (s *Context) AvReadFrame(pkt *libavcodec.Packet) int
- func (s *Context) AvReadPause() int
- func (s *Context) AvReadPlay() int
- func (s *Context) AvSeekFrame(st int, t int64, f int) int
- func (s *Context) AvSeekFrameTime(st int, at time.Duration, timebase libavcodec.Rational) int
- func (s *Context) AvWriteFrame(pkt *libavcodec.Packet) int
- func (s *Context) AvWriteTrailer() int
- func (s *Context) AvWriteUncodedFrame(si int, f *Frame) int
- func (s *Context) AvWriteUncodedFrameQuery(si int) int
- func (s *Context) AvformatCloseInput()
- func (s *Context) AvformatFindStreamInfo(d **libavutil.Dictionary) int
- func (s *Context) AvformatFreeContext()
- func (s *Context) AvformatMatchStreamSpecifier(st *Stream, spec string) int
- func (s *Context) AvformatNewStream(c *AvCodec) *Stream
- func (s *Context) AvformatNewStream2(c *AvCodec) *Stream
- func (s *Context) AvformatQueueAttachedPictures() int
- func (s *Context) AvformatSeekFile(si int, mit, ts, mat int64, f int) int
- func (s *Context) AvformatWriteHeader(o **libavutil.Dictionary) int
- func (ctxt *Context) AvioFlags() int
- func (ctxt *Context) AvoidNegativeTs() int
- func (ctxt *Context) BitRate() int
- func (ctxt *Context) Chapters() **AvChapter
- func (ctxt *Context) CorrectTsOverflow() int
- func (ctxt *Context) CtxFlags() int
- func (ctxt *Context) Debug() int
- func (ctxt *Context) Duration() int64
- func (ctxt *Context) DurationEstimationMethod() AvDurationEstimationMethod
- func (ctxt *Context) ErrorRecognition() int
- func (ctxt *Context) EventFlags() int
- func (ctxt *Context) Filename() string
- func (ctxt *Context) Flags() int
- func (ctxt *Context) FlushPackets() int
- func (ctxt *Context) FormatProbesize() int
- func (ctxt *Context) FpsProbeSize() int
- func (ctxt *Context) Iformat() *InputFormat
- func (ctxt *Context) Internal() *AvFormatInternal
- func (ctxt *Context) InterruptCallback() AvIOInterruptCB
- func (ctxt *Context) IoRepositioned() int
- func (ctxt *Context) Keylen() int
- func (ctxt *Context) MaxAnalyzeDuration2() int64
- func (ctxt *Context) MaxChunkDuration() int
- func (ctxt *Context) MaxChunkSize() int
- func (ctxt *Context) MaxDelay() int
- func (ctxt *Context) MaxIndexSize() uint
- func (ctxt *Context) MaxInterleaveDelta() int64
- func (ctxt *Context) MaxPictureBuffer() uint
- func (ctxt *Context) MaxTsProbe() int
- func (ctxt *Context) Metadata() *libavutil.Dictionary
- func (ctxt *Context) MetadataHeaderPadding() int
- func (ctxt *Context) NbChapters() uint
- func (ctxt *Context) NbPrograms() uint
- func (ctxt *Context) NbStreams() uint
- func (ctxt *Context) Oformat() *OutputFormat
- func (ctxt *Context) OutputTsOffset() int64
- func (ctxt *Context) PacketSize() uint
- func (ctxt *Context) Pb() *AvIOContext
- func (ctxt *Context) Pb2() **AvIOContext
- func (ctxt *Context) ProbeScore() int
- func (ctxt *Context) Probesize() uint
- func (ctxt *Context) Probesize2() int64
- func (ctxt *Context) Programs() []*AvProgram
- func (ctxt *Context) Seek2any() int
- func (ctxt *Context) SetPb(pb *AvIOContext)
- func (ctxt *Context) SkipInitialBytes() int64
- func (ctxt *Context) StartTime() int64
- func (ctxt *Context) StartTimeRealtime() int64
- func (ctxt *Context) Streams() []*Stream
- func (ctxt *Context) StrictStdCompliance() int
- func (ctxt *Context) SubtitleCodec() *AvCodec
- func (ctxt *Context) SubtitleCodecID() CodecID
- func (ctxt *Context) TsID() int
- func (ctxt *Context) UseWallclockAsTimestamps() int
- func (ctxt *Context) VideoCodec() *AvCodec
- func (ctxt *Context) VideoCodecID() CodecID
- type FFFrac
- type File
- type Frame
- type InputFormat
- type MediaType
- type OutputFormat
- type Stream
- func (avs *Stream) AttachedPic() libavcodec.Packet
- func (s *Stream) AvStreamGetEndPts() int64
- func (s *Stream) AvStreamGetParser() *CodecParserContext
- func (s *Stream) AvStreamGetSideData(t AvPacketSideDataType, z int) *uint8
- func (avs *Stream) AvgFrameRate() libavcodec.Rational
- func (avs *Stream) Codec() *CodecContext
- func (avs *Stream) CodecInfoNbFrames() int
- func (avs *Stream) CodecParameters() *libavcodec.AvCodecParameters
- func (avs *Stream) CurDts() int64
- func (avs *Stream) Discard() AvDiscard
- func (avs *Stream) Disposition() int
- func (avs *Stream) DtsMisordered() uint8
- func (avs *Stream) DtsOrdered() uint8
- func (avs *Stream) Duration() int64
- func (avs *Stream) EventFlags() int
- func (avs *Stream) FirstDts() int64
- func (avs *Stream) Free()
- func (avs *Stream) ID() int
- func (avs *Stream) Index() int
- func (avs *Stream) IndexEntries() *AvIndexEntry
- func (avs *Stream) IndexEntriesAllocatedSize() uint
- func (avs *Stream) InjectGlobalSideData() int
- func (avs *Stream) InterleaverChunkDuration() int64
- func (avs *Stream) InterleaverChunkSize() int64
- func (avs *Stream) LastDtsForOrderCheck() int64
- func (avs *Stream) LastIPDuration() int
- func (avs *Stream) LastIPPts() int64
- func (avs *Stream) LastInPacketBuffer() *AvPacketList
- func (avs *Stream) Metadata() *libavutil.Dictionary
- func (avs *Stream) MuxTsOffset() int64
- func (avs *Stream) NbDecodedFrames() int
- func (avs *Stream) NbFrames() int64
- func (avs *Stream) NbIndexEntries() int
- func (avs *Stream) NbSideData() int
- func (avs *Stream) NeedParsing() AvStreamParseType
- func (avs *Stream) Parser() *CodecParserContext
- func (avs *Stream) PrivData() unsafe.Pointer
- func (avs *Stream) ProbeData() AvProbeData
- func (avs *Stream) ProbePackets() int
- func (avs *Stream) PtsBuffer() int64
- func (avs *Stream) PtsReorderError() int64
- func (avs *Stream) PtsReorderErrorCount() uint8
- func (avs *Stream) PtsWrapBehavior() int
- func (avs *Stream) PtsWrapReference() int64
- func (avs *Stream) RFrameRate() libavcodec.Rational
- func (avs *Stream) RequestProbe() int
- func (avs *Stream) SampleAspectRatio() libavcodec.Rational
- func (avs *Stream) SetCodecParameters(pCodecPara *libavcodec.AvCodecParameters)
- func (avs *Stream) SetDiscard(discard AvDiscard)
- func (avs *Stream) SetDisposition(disposition int)
- func (avs *Stream) SetDuration(dur int64)
- func (avs *Stream) SetNbFrames(nbframes int64)
- func (avs *Stream) SetPrivData(pData unsafe.Pointer)
- func (avs *Stream) SetRFrameRate(frameRate libavcodec.Rational)
- func (avs *Stream) SetStartTime(starttime int64)
- func (avs *Stream) SetTimeBase(timeBase libavcodec.Rational)
- func (avs *Stream) SideData() *AvPacketSideData
- func (avs *Stream) SkipSamples() int
- func (avs *Stream) SkipToKeyframe() int
- func (avs *Stream) StartTime() int64
- func (avs *Stream) StreamIdentifier() int
- func (avs *Stream) TimeBase() libavcodec.Rational
- func (avs *Stream) UpdateInitialDurationsDone() int
Constants ¶
const ( AvseekFlagBackward = 1 ///< seek backward AvseekFlagByte = 2 ///< seeking based on position in bytes AvseekFlagAny = 4 ///< seek to any frame, even non-keyframes AvseekFlagFrame = 8 ///< seeking based on frame number )
AvSeekFlagxxx
const ( AvioFlagRead = int(C.AVIO_FLAG_READ) AvioFlagWrite = int(C.AVIO_FLAG_WRITE) AvioFlagReadWrite = int(C.AVIO_FLAG_READ_WRITE) )
AVIO_FLAG_XXX
const ( AvmediaTypeUnknown = C.AVMEDIA_TYPE_UNKNOWN AvmediaTypeVideo = C.AVMEDIA_TYPE_VIDEO AvmediaTypeAudio = C.AVMEDIA_TYPE_AUDIO AvmediaTypeData = C.AVMEDIA_TYPE_DATA AvmediaTypeSubtitle = C.AVMEDIA_TYPE_SUBTITLE AvmediaTypeAttachment = C.AVMEDIA_TYPE_ATTACHMENT AvmediaTypeNb = C.AVMEDIA_TYPE_NB )
AVMEDIA_TYPE_xxx
Variables ¶
This section is empty.
Functions ¶
func AvAddIndexEntry ¶
AvAddIndexEntry Add an index entry into a sorted list.
func AvCodecGetTag ¶
func AvCodecGetTag(t **AvCodecTag, id CodecID) uint
AvCodecGetTag Get the codec tag for the given codec id id.
func AvCodecGetTag2 ¶
func AvCodecGetTag2(t **AvCodecTag, id CodecID, tag *uint) int
AvCodecGetTag2 Get the codec tag for the given codec id.
func AvFilenameNumberTest ¶
AvFilenameNumberTest Check whether filename actually is a numbered sequence generator.
func AvFindBestStream ¶
AvFindBestStream Find the "best" stream in the file.
func AvGetFrameFilename ¶
AvGetFrameFilename Return in 'buf' the path with 'd' replaced by a number.
func AvHexDumpLog ¶
AvHexDumpLog Send a nice hexadecimal dump of a buffer to the log.
func AvIndexSearchTimestamp ¶
AvIndexSearchTimestamp Get the index for a specific timestamp.
func AvMatchExt ¶
AvMatchExt Return a positive value if the given filename has one of the given extensions, 0 otherwise.
func AvPktDump2 ¶
func AvPktDump2(f *File, pkt *libavcodec.Packet, dp int, st *Stream)
AvPktDump2 Send a nice dump of a packet to the specified file stream.
func AvPktDumpLog2 ¶
AvPktDumpLog2 Send a nice dump of a packet to the log.
func AvProbeInputBuffer ¶
func AvProbeInputBuffer(pb *AvIOContext, f **InputFormat, fi string, l int, o, m uint) int
AvProbeInputBuffer Like av_probe_input_buffer2() but returns 0 on success.
func AvProbeInputBuffer2 ¶
func AvProbeInputBuffer2(pb *AvIOContext, f **InputFormat, fi string, l int, o, m uint) int
AvProbeInputBuffer2 Probe a bytestream to determine the input format.
func AvSdpCreate ¶
AvSdpCreate Generate an SDP for an RTP session.
func AvURLSplit ¶
func AvURLSplit(protoSize, authorizationSize, hostnameSize int, pp *int, pathSize int, url string) (proto, authorization, hostname, path string)
AvURLSplit Split a URL string into components.
func AvformatAllocOutputContext2 ¶
func AvformatAllocOutputContext2(ctx **Context, o *OutputFormat, fo, fi string) int
AvformatAllocOutputContext2 Allocate an Context for an output format.
func AvformatConfiguration ¶
func AvformatConfiguration() string
AvformatConfiguration Return the libavformat build-time configuration.
func AvformatLicense ¶
func AvformatLicense() string
AvformatLicense Return the libavformat license.
func AvformatNetworkDeinit ¶
func AvformatNetworkDeinit() int
AvformatNetworkDeinit Undo the initialization done by avformat_network_init.
func AvformatNetworkInit ¶
func AvformatNetworkInit() int
AvformatNetworkInit Do global initialization of network components.
func AvformatOpenInput ¶
func AvformatOpenInput(ps **Context, fi string, fmt *InputFormat, d **libavutil.Dictionary) int
AvformatOpenInput Open an input stream and read the header.
func AvformatQueryCodec ¶
func AvformatQueryCodec(o *OutputFormat, cd CodecID, sc int) int
AvformatQueryCodec Test if the given container can store a codec.
func AvformatVersion ¶
func AvformatVersion() uint
AvformatVersion Return the LIBAvFORMAT_VERSION_INT constant.
Types ¶
type AvChapter ¶
type AvChapter C.struct_AVChapter
type AvCodec ¶
type AvCodec C.struct_AVCodec
type AvCodecTag ¶
type AvCodecTag C.struct_AVCodecTag
func AvformatGetMovAudioTags ¶
func AvformatGetMovAudioTags() *AvCodecTag
AvformatGetMovAudioTags Return the table mapping MOV FourCCs for audio to AVCodecID.
func AvformatGetMovVideoTags ¶
func AvformatGetMovVideoTags() *AvCodecTag
AvformatGetMovVideoTags Return the table mapping MOV FourCCs for video to libavcodec AVCodecID.
func AvformatGetRiffAudioTags ¶
func AvformatGetRiffAudioTags() *AvCodecTag
AvformatGetRiffAudioTags Return the table mapping RIFF FourCCs for audio to AVCodecID.
func AvformatGetRiffVideoTags ¶
func AvformatGetRiffVideoTags() *AvCodecTag
AvformatGetRiffVideoTags Return the table mapping RIFF FourCCs for video to libavcodec AVCodecID.
type AvDiscard ¶
type AvDiscard C.enum_AVDiscard
type AvDurationEstimationMethod ¶
type AvDurationEstimationMethod C.enum_AVDurationEstimationMethod
type AvFormatInternal ¶
type AvFormatInternal C.struct_AVFormatInternal
type AvIOContext ¶
type AvIOContext C.struct_AVIOContext
func AvIOOpen ¶
func AvIOOpen(url string, flags int) (res *AvIOContext, err error)
AvIOOpen Create and initialize a AVIOContext for accessing the resource indicated by url.
func (*AvIOContext) AvAppendPacket ¶
func (ctxt *AvIOContext) AvAppendPacket(pkt *libavcodec.Packet, s int) int
AvAppendPacket Read data and append it to the current content of the Packet.
func (*AvIOContext) AvGetPacket ¶
func (ctxt *AvIOContext) AvGetPacket(pkt *libavcodec.Packet, s int) int
AvGetPacket Allocate and read the payload of a packet and initialize its fields with default values.
type AvIOInterruptCB ¶
type AvIOInterruptCB C.struct_AVIOInterruptCB
type AvIndexEntry ¶
type AvIndexEntry C.struct_AVIndexEntry
type AvPacketList ¶
type AvPacketList C.struct_AVPacketList
type AvPacketSideData ¶
type AvPacketSideData C.struct_AVPacketSideData
type AvPacketSideDataType ¶
type AvPacketSideDataType C.enum_AVPacketSideDataType
type AvProbeData ¶
type AvProbeData C.struct_AVProbeData
type AvProgram ¶
type AvProgram C.struct_AVProgram
type AvStreamParseType ¶
type AvStreamParseType C.enum_AVStreamParseType
type Class ¶
type Class C.struct_AVClass
type CodecContext ¶
type CodecContext C.struct_AVCodecContext
func (*CodecContext) GetCodecID ¶
func (cctx *CodecContext) GetCodecID() CodecID
GetCodecID Return codec_id
func (*CodecContext) GetCodecType ¶
func (cctx *CodecContext) GetCodecType() MediaType
GetCodecType Return codec_type
func (*CodecContext) GetExtraData ¶
func (cctx *CodecContext) GetExtraData() []byte
GetExtraData Return extradata
func (*CodecContext) GetMaxQDiff ¶
func (cctx *CodecContext) GetMaxQDiff() int
GetMaxQDiff Return max_qdiff
func (*CodecContext) GetMeRange ¶
func (cctx *CodecContext) GetMeRange() int
GetMeRange Return me_range
func (*CodecContext) GetPixelFormat ¶
func (cctx *CodecContext) GetPixelFormat() libavcodec.PixelFormat
GetPixelFormat Return pix_fmt
func (*CodecContext) GetQCompress ¶
func (cctx *CodecContext) GetQCompress() float32
GetQCompress Return qcompress
func (*CodecContext) GetTimeBase ¶
func (cctx *CodecContext) GetTimeBase() libavcodec.Rational
GetTimeBase Return time_base
func (*CodecContext) SetBitRate ¶
func (cctx *CodecContext) SetBitRate(br int64)
SetBitRate Set bit_rate
func (*CodecContext) SetCodecID ¶
func (cctx *CodecContext) SetCodecID(codecID CodecID)
SetCodecID Set codec_id
func (*CodecContext) SetCodecType ¶
func (cctx *CodecContext) SetCodecType(ctype MediaType)
SetCodecType Set codec_type
func (*CodecContext) SetExtraData ¶
func (cctx *CodecContext) SetExtraData(data []byte)
SetExtraData Return data
func (*CodecContext) SetMaxQDiff ¶
func (cctx *CodecContext) SetMaxQDiff(v int)
SetMaxQDiff Set max_qdiff
func (*CodecContext) SetMeRange ¶
func (cctx *CodecContext) SetMeRange(r int)
SetMeRange Set me_range
func (*CodecContext) SetPixelFormat ¶
func (cctx *CodecContext) SetPixelFormat(fmt libavcodec.PixelFormat)
SetPixelFormat Set pix_fmt
func (*CodecContext) SetQCompress ¶
func (cctx *CodecContext) SetQCompress(v float32)
SetQCompress Set qcompress
func (*CodecContext) SetTimeBase ¶
func (cctx *CodecContext) SetTimeBase(timeBase libavcodec.Rational)
SetTimeBase Set codec_type
func (*CodecContext) Type ¶
func (cctx *CodecContext) Type() MediaType
Type Return codec_type as MediaType
type CodecID ¶
type CodecID C.enum_AVCodecID
func AvCodecGetID ¶
func AvCodecGetID(t **AvCodecTag, tag uint) CodecID
AvCodecGetID Get the CodecID for the given codec tag tag.
func AvGuessCodec ¶
func AvGuessCodec(fmt *OutputFormat, sn, f, mt string, t MediaType) CodecID
AvGuessCodec Guess the codec ID based upon muxer and filename.
type CodecParserContext ¶
type CodecParserContext C.struct_AVCodecParserContext
type Context ¶
type Context C.struct_AVFormatContext
func AvformatAllocContext ¶
func AvformatAllocContext() *Context
AvformatAllocContext Allocate an Context.
func (*Context) AudioCodec ¶
AudioCodec Return audio_codec
func (*Context) AudioCodecID ¶
AudioCodecID Return audio_codec_id
func (*Context) AudioPreload ¶
AudioPreload Return audio_preload
func (*Context) AvDumpFormat ¶
AvDumpFormat Print detailed information about the input or output format, such as duration, bitrate, streams, container, programs, metadata, side data, codec and time base.
func (*Context) AvFindDefaultStreamIndex ¶
AvFindDefaultStreamIndex ...
func (*Context) AvFindProgramFromStream ¶
AvFindProgramFromStream Find the programs which belong to a given stream.
func (*Context) AvFmtCtxGetDurationEstimationMethod ¶
func (s *Context) AvFmtCtxGetDurationEstimationMethod() AvDurationEstimationMethod
AvFmtCtxGetDurationEstimationMethod Returns the method used to set ctx->duration.
func (*Context) AvFormatInjectGlobalSideData ¶
func (s *Context) AvFormatInjectGlobalSideData()
AvFormatInjectGlobalSideData This function will cause global side data to be injected in the next packet of each stream as well as after any subsequent seek.
func (*Context) AvGetOutputTimestamp ¶
AvGetOutputTimestamp Get timing information for the data currently output.
func (*Context) AvGuessFrameRate ¶
func (s *Context) AvGuessFrameRate(st *Stream, fr *Frame) libavcodec.Rational
AvGuessFrameRate Guess the frame rate, based on both the container and codec information.
func (*Context) AvGuessSampleAspectRatio ¶
func (s *Context) AvGuessSampleAspectRatio(st *Stream, fr *Frame) libavcodec.Rational
AvGuessSampleAspectRatio Guess the sample aspect ratio of a frame, based on both the stream and the frame aspect ratio.
func (*Context) AvInterleavedWriteFrame ¶
func (s *Context) AvInterleavedWriteFrame(pkt *libavcodec.Packet) int
AvInterleavedWriteFrame Write a packet to an output media file ensuring correct interleaving.
func (*Context) AvInterleavedWriteUncodedFrame ¶
AvInterleavedWriteUncodedFrame Write a uncoded frame to an output media file.
func (*Context) AvReadFrame ¶
func (s *Context) AvReadFrame(pkt *libavcodec.Packet) int
AvReadFrame Return the next frame of a stream.
func (*Context) AvReadPause ¶
AvReadPause Pause a network-based stream (e.g.
func (*Context) AvReadPlay ¶
AvReadPlay Start playing a network-based stream (e.g.
func (*Context) AvSeekFrame ¶
AvSeekFrame Seek to the keyframe at timestamp.
func (*Context) AvSeekFrameTime ¶
AvSeekFrameTime seeks to a specified time location. |timebase| is codec specific and can be obtained by calling AvCodecGetPktTimebase2
func (*Context) AvWriteFrame ¶
func (s *Context) AvWriteFrame(pkt *libavcodec.Packet) int
AvWriteFrame Write a packet to an output media file.
func (*Context) AvWriteTrailer ¶
AvWriteTrailer Write the stream trailer to an output media file and free the file private data.
func (*Context) AvWriteUncodedFrame ¶
AvWriteUncodedFrame Write a uncoded frame to an output media file.
func (*Context) AvWriteUncodedFrameQuery ¶
AvWriteUncodedFrameQuery Test whether a muxer supports uncoded frame.
func (*Context) AvformatCloseInput ¶
func (s *Context) AvformatCloseInput()
AvformatCloseInput Close an opened input Context.
func (*Context) AvformatFindStreamInfo ¶
func (s *Context) AvformatFindStreamInfo(d **libavutil.Dictionary) int
AvformatFindStreamInfo Read packets of a media file to get stream information.
func (*Context) AvformatFreeContext ¶
func (s *Context) AvformatFreeContext()
AvformatFreeContext Free an Context and all its streams.
func (*Context) AvformatMatchStreamSpecifier ¶
AvformatMatchStreamSpecifier Check if the stream st contained in s is matched by the stream specifier spec.
func (*Context) AvformatNewStream ¶
AvformatNewStream Add a new stream to a media file.
func (*Context) AvformatNewStream2 ¶
AvformatNewStream2 Add a new stream to a media file.
func (*Context) AvformatQueueAttachedPictures ¶
AvformatQueueAttachedPictures ...
func (*Context) AvformatSeekFile ¶
AvformatSeekFile Seek to timestamp ts.
func (*Context) AvformatWriteHeader ¶
func (s *Context) AvformatWriteHeader(o **libavutil.Dictionary) int
AvformatWriteHeader Allocate the stream private data and write the stream header to an output media file.
func (*Context) AvoidNegativeTs ¶
AvoidNegativeTs Return avoid_negative_ts
func (*Context) CorrectTsOverflow ¶
CorrectTsOverflow Return correct_ts_overflow
func (*Context) DurationEstimationMethod ¶
func (ctxt *Context) DurationEstimationMethod() AvDurationEstimationMethod
DurationEstimationMethod Return duration_estimation_method
func (*Context) ErrorRecognition ¶
ErrorRecognition Return error_recognition
func (*Context) FlushPackets ¶
FlushPackets Return flush_packets
func (*Context) FormatProbesize ¶
FormatProbesize Return format_probesize
func (*Context) FpsProbeSize ¶
FpsProbeSize Return fps_probe_size
func (*Context) Internal ¶
func (ctxt *Context) Internal() *AvFormatInternal
Internal Return internal
func (*Context) InterruptCallback ¶
func (ctxt *Context) InterruptCallback() AvIOInterruptCB
InterruptCallback Return interrupt_callback
func (*Context) IoRepositioned ¶
IoRepositioned Return io_repositioned
func (*Context) MaxAnalyzeDuration2 ¶
MaxAnalyzeDuration2 Return max_analyze_duration
func (*Context) MaxChunkDuration ¶
MaxChunkDuration Return max_chunk_duration
func (*Context) MaxChunkSize ¶
MaxChunkSize Return max_chunk_size
func (*Context) MaxIndexSize ¶
MaxIndexSize Return max_index_size
func (*Context) MaxInterleaveDelta ¶
MaxInterleaveDelta Return max_interleave_delta
func (*Context) MaxPictureBuffer ¶
MaxPictureBuffer Return max_picture_buffer
func (*Context) Metadata ¶
func (ctxt *Context) Metadata() *libavutil.Dictionary
Metadata Return metadata
func (*Context) MetadataHeaderPadding ¶
MetadataHeaderPadding Return metadata_header_padding
func (*Context) OutputTsOffset ¶
OutputTsOffset Return output_ts_offset
func (*Context) SkipInitialBytes ¶
SkipInitialBytes Return skip_initial_bytes
func (*Context) StartTimeRealtime ¶
StartTimeRealtime Return start_time_realtime
func (*Context) StrictStdCompliance ¶
StrictStdCompliance Return strict_std_compliance
func (*Context) SubtitleCodec ¶
SubtitleCodec Return subtitle_codec
func (*Context) SubtitleCodecID ¶
SubtitleCodecID Return subtitle_codec_id
func (*Context) UseWallclockAsTimestamps ¶
UseWallclockAsTimestamps Return use_wallclock_as_timestamps
func (*Context) VideoCodec ¶
VideoCodec Return video_codec
func (*Context) VideoCodecID ¶
VideoCodecID Return video_codec_id
type FFFrac ¶
type FFFrac C.struct_FFFrac
type Frame ¶
type Frame C.struct_AVFrame
type InputFormat ¶
type InputFormat C.struct_AVInputFormat
func AvFindInputFormat ¶
func AvFindInputFormat(s string) *InputFormat
AvFindInputFormat Find InputFormat based on the short name of the input format.
func AvProbeInputFormat ¶
func AvProbeInputFormat(pd *AvProbeData, i int) *InputFormat
AvProbeInputFormat Guess the file format.
func AvProbeInputFormat2 ¶
func AvProbeInputFormat2(pd *AvProbeData, o int, sm *int) *InputFormat
AvProbeInputFormat2 Guess the file format.
func AvProbeInputFormat3 ¶
func AvProbeInputFormat3(pd *AvProbeData, o int, sl *int) *InputFormat
AvProbeInputFormat3 Guess the file format.
type MediaType ¶
type MediaType C.enum_AVMediaType
type OutputFormat ¶
type OutputFormat C.struct_AVOutputFormat
func AvGuessFormat ¶
func AvGuessFormat(sn, f, mt string) *OutputFormat
AvGuessFormat Return the output format in the list of registered output formats which best matches the provided parameters, or return NULL if there is no match.
type Stream ¶
type Stream C.struct_AVStream
func (*Stream) AttachedPic ¶
func (avs *Stream) AttachedPic() libavcodec.Packet
AttachedPic Return attached_pic
func (*Stream) AvStreamGetEndPts ¶
AvStreamGetEndPts Returns the pts of the last muxed packet + its duration.
func (*Stream) AvStreamGetParser ¶
func (s *Stream) AvStreamGetParser() *CodecParserContext
AvStreamGetParser Return parser
func (*Stream) AvStreamGetSideData ¶
func (s *Stream) AvStreamGetSideData(t AvPacketSideDataType, z int) *uint8
AvStreamGetSideData Get side information from stream.
func (*Stream) AvgFrameRate ¶
func (avs *Stream) AvgFrameRate() libavcodec.Rational
AvgFrameRate Return avg_frame_rate
func (*Stream) CodecInfoNbFrames ¶
CodecInfoNbFrames Return codec_info_nb_frames
func (*Stream) CodecParameters ¶
func (avs *Stream) CodecParameters() *libavcodec.AvCodecParameters
CodecParameters Return codecpar
func (*Stream) DtsMisordered ¶
DtsMisordered Return dts_misordered
func (*Stream) IndexEntries ¶
func (avs *Stream) IndexEntries() *AvIndexEntry
IndexEntries Return index_entries
func (*Stream) IndexEntriesAllocatedSize ¶
IndexEntriesAllocatedSize Return index_entries_allocated_size
func (*Stream) InjectGlobalSideData ¶
InjectGlobalSideData Return inject_global_side_data
func (*Stream) InterleaverChunkDuration ¶
InterleaverChunkDuration Return interleaver_chunk_duration
func (*Stream) InterleaverChunkSize ¶
InterleaverChunkSize Return interleaver_chunk_size
func (*Stream) LastDtsForOrderCheck ¶
LastDtsForOrderCheck Return last_dts_for_order_check
func (*Stream) LastIPDuration ¶
LastIPDuration Return last_IP_duration
func (*Stream) LastInPacketBuffer ¶
func (avs *Stream) LastInPacketBuffer() *AvPacketList
LastInPacketBuffer Return last_in_packet_buffer
func (*Stream) Metadata ¶
func (avs *Stream) Metadata() *libavutil.Dictionary
Metadata Return metadata
func (*Stream) MuxTsOffset ¶
MuxTsOffset Return mux_ts_offset
func (*Stream) NbDecodedFrames ¶
NbDecodedFrames Return nb_decoded_frames
func (*Stream) NbIndexEntries ¶
NbIndexEntries Return nb_index_entries
func (*Stream) NeedParsing ¶
func (avs *Stream) NeedParsing() AvStreamParseType
NeedParsing Return need_parsing
func (*Stream) ProbePackets ¶
ProbePackets Return probe_packets
func (*Stream) PtsReorderError ¶
PtsReorderError Return pts_reorder_error[0]
func (*Stream) PtsReorderErrorCount ¶
PtsReorderErrorCount Return pts_reorder_error_count[0]
func (*Stream) PtsWrapBehavior ¶
PtsWrapBehavior Return pts_wrap_behavior
func (*Stream) PtsWrapReference ¶
PtsWrapReference Return pts_wrap_reference
func (*Stream) RFrameRate ¶
func (avs *Stream) RFrameRate() libavcodec.Rational
RFrameRate Return r_frame_rate
func (*Stream) RequestProbe ¶
RequestProbe Return request_probe
func (*Stream) SampleAspectRatio ¶
func (avs *Stream) SampleAspectRatio() libavcodec.Rational
SampleAspectRatio Return sample_aspect_ratio
func (*Stream) SetCodecParameters ¶ added in v1.1.1
func (avs *Stream) SetCodecParameters(pCodecPara *libavcodec.AvCodecParameters)
SetCodecParameters Set codecpar
func (*Stream) SetDiscard ¶ added in v1.1.1
SetDiscard Set discard
func (*Stream) SetDisposition ¶ added in v1.1.1
SetDisposition Set disposition
func (*Stream) SetDuration ¶ added in v1.1.1
SetDuration Set duration
func (*Stream) SetNbFrames ¶ added in v1.1.1
SetNbFrames Set nb_frames
func (*Stream) SetPrivData ¶ added in v1.1.1
SetPrivData Set priv_data
func (*Stream) SetRFrameRate ¶ added in v1.1.1
func (avs *Stream) SetRFrameRate(frameRate libavcodec.Rational)
SetRFrameRate Set r_frame_rate
func (*Stream) SetStartTime ¶ added in v1.1.1
SetStartTime Set start_time
func (*Stream) SetTimeBase ¶ added in v1.1.1
func (avs *Stream) SetTimeBase(timeBase libavcodec.Rational)
SetTimeBase Set time_base
func (*Stream) SkipToKeyframe ¶
SkipToKeyframe Return skip_to_keyframe
func (*Stream) StreamIdentifier ¶
StreamIdentifier Return stream_identifier
func (*Stream) TimeBase ¶
func (avs *Stream) TimeBase() libavcodec.Rational
TimeBase Return time_base
func (*Stream) UpdateInitialDurationsDone ¶
UpdateInitialDurationsDone Return update_initial_durations_done