libavformat

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2020 License: MIT Imports: 6 Imported by: 7

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

View Source
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

View Source
const (
	AvioFlagRead      = int(C.AVIO_FLAG_READ)
	AvioFlagWrite     = int(C.AVIO_FLAG_WRITE)
	AvioFlagReadWrite = int(C.AVIO_FLAG_READ_WRITE)
)

AVIO_FLAG_XXX

View Source
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

func AvAddIndexEntry(st *Stream, pos, t, int64, s, d, f int) int

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

func AvFilenameNumberTest(filename string) int

AvFilenameNumberTest Check whether filename actually is a numbered sequence generator.

func AvFindBestStream

func AvFindBestStream(ic *Context, t MediaType, ws, rs int, c **AvCodec, f int) int

AvFindBestStream Find the "best" stream in the file.

func AvGetFrameFilename

func AvGetFrameFilename(bufSize int, path string, number int) (int, string)

AvGetFrameFilename Return in 'buf' the path with 'd' replaced by a number.

func AvHexDump

func AvHexDump(f *File, b *uint8, s int)

AvHexDump Send a nice hexadecimal dump of a buffer to the specified file stream.

func AvHexDumpLog

func AvHexDumpLog(a, l int, b *uint8, s int)

AvHexDumpLog Send a nice hexadecimal dump of a buffer to the log.

func AvIndexSearchTimestamp

func AvIndexSearchTimestamp(st *Stream, t int64, f int) int

AvIndexSearchTimestamp Get the index for a specific timestamp.

func AvMatchExt

func AvMatchExt(filename, extensions string) int

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

func AvPktDumpLog2(a int, l int, pkt *libavcodec.Packet, dp int, st *Stream)

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

func AvSdpCreate(ac **Context, nFiles int, bufSize int) (int, string)

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.

func (*AvIOContext) Close

func (ctxt *AvIOContext) Close() error

Close ...

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

func AvformatGetClass

func AvformatGetClass() *Class

AvformatGetClass Get the Class for Context.

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) GetFlags

func (cctx *CodecContext) GetFlags() int

GetFlags Return flags

func (*CodecContext) GetHeight

func (cctx *CodecContext) GetHeight() int

GetHeight Return height

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) GetQMax

func (cctx *CodecContext) GetQMax() int

GetQMax Return qmax

func (*CodecContext) GetQMin

func (cctx *CodecContext) GetQMin() int

GetQMin Return qmin

func (*CodecContext) GetTimeBase

func (cctx *CodecContext) GetTimeBase() libavcodec.Rational

GetTimeBase Return time_base

func (*CodecContext) GetWidth

func (cctx *CodecContext) GetWidth() int

GetWidth Return width

func (*CodecContext) Release

func (cctx *CodecContext) Release()

Release ...

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) SetFlags

func (cctx *CodecContext) SetFlags(flags int)

SetFlags Set flags

func (*CodecContext) SetHeight

func (cctx *CodecContext) SetHeight(h int)

SetHeight Set height

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) SetQMax

func (cctx *CodecContext) SetQMax(v int)

SetQMax Set qmax

func (*CodecContext) SetQMin

func (cctx *CodecContext) SetQMin(v int)

SetQMin Set qmin

func (*CodecContext) SetTimeBase

func (cctx *CodecContext) SetTimeBase(timeBase libavcodec.Rational)

SetTimeBase Set codec_type

func (*CodecContext) SetWidth

func (cctx *CodecContext) SetWidth(w int)

SetWidth Set width

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

func (ctxt *Context) AudioCodec() *AvCodec

AudioCodec Return audio_codec

func (*Context) AudioCodecID

func (ctxt *Context) AudioCodecID() CodecID

AudioCodecID Return audio_codec_id

func (*Context) AudioPreload

func (ctxt *Context) AudioPreload() int

AudioPreload Return audio_preload

func (*Context) AvDumpFormat

func (s *Context) AvDumpFormat(i int, url string, io int)

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

func (s *Context) AvFindDefaultStreamIndex() int

AvFindDefaultStreamIndex ...

func (*Context) AvFindProgramFromStream

func (s *Context) AvFindProgramFromStream(l *AvProgram, su int) *AvProgram

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

func (s *Context) AvGetOutputTimestamp(st int, dts, wall *int) int

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

func (s *Context) AvInterleavedWriteUncodedFrame(si int, f *Frame) int

AvInterleavedWriteUncodedFrame Write a uncoded frame to an output media file.

func (*Context) AvNewProgram

func (s *Context) AvNewProgram(id int) *AvProgram

AvNewProgram ...

func (*Context) AvReadFrame

func (s *Context) AvReadFrame(pkt *libavcodec.Packet) int

AvReadFrame Return the next frame of a stream.

func (*Context) AvReadPause

func (s *Context) AvReadPause() int

AvReadPause Pause a network-based stream (e.g.

func (*Context) AvReadPlay

func (s *Context) AvReadPlay() int

AvReadPlay Start playing a network-based stream (e.g.

func (*Context) AvSeekFrame

func (s *Context) AvSeekFrame(st int, t int64, f int) int

AvSeekFrame Seek to the keyframe at timestamp.

func (*Context) AvSeekFrameTime

func (s *Context) AvSeekFrameTime(st int, at time.Duration, timebase libavcodec.Rational) int

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

func (s *Context) AvWriteTrailer() int

AvWriteTrailer Write the stream trailer to an output media file and free the file private data.

func (*Context) AvWriteUncodedFrame

func (s *Context) AvWriteUncodedFrame(si int, f *Frame) int

AvWriteUncodedFrame Write a uncoded frame to an output media file.

func (*Context) AvWriteUncodedFrameQuery

func (s *Context) AvWriteUncodedFrameQuery(si int) int

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

func (s *Context) AvformatMatchStreamSpecifier(st *Stream, spec string) int

AvformatMatchStreamSpecifier Check if the stream st contained in s is matched by the stream specifier spec.

func (*Context) AvformatNewStream

func (s *Context) AvformatNewStream(c *AvCodec) *Stream

AvformatNewStream Add a new stream to a media file.

func (*Context) AvformatNewStream2

func (s *Context) AvformatNewStream2(c *AvCodec) *Stream

AvformatNewStream2 Add a new stream to a media file.

func (*Context) AvformatQueueAttachedPictures

func (s *Context) AvformatQueueAttachedPictures() int

AvformatQueueAttachedPictures ...

func (*Context) AvformatSeekFile

func (s *Context) AvformatSeekFile(si int, mit, ts, mat int64, f int) int

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) AvioFlags

func (ctxt *Context) AvioFlags() int

AvioFlags Return avio_flags

func (*Context) AvoidNegativeTs

func (ctxt *Context) AvoidNegativeTs() int

AvoidNegativeTs Return avoid_negative_ts

func (*Context) BitRate

func (ctxt *Context) BitRate() int

BitRate Return bit_rate

func (*Context) Chapters

func (ctxt *Context) Chapters() **AvChapter

Chapters Return chapters

func (*Context) CorrectTsOverflow

func (ctxt *Context) CorrectTsOverflow() int

CorrectTsOverflow Return correct_ts_overflow

func (*Context) CtxFlags

func (ctxt *Context) CtxFlags() int

CtxFlags Return ctx_flags

func (*Context) Debug

func (ctxt *Context) Debug() int

Debug Return debug

func (*Context) Duration

func (ctxt *Context) Duration() int64

Duration Return duration

func (*Context) DurationEstimationMethod

func (ctxt *Context) DurationEstimationMethod() AvDurationEstimationMethod

DurationEstimationMethod Return duration_estimation_method

func (*Context) ErrorRecognition

func (ctxt *Context) ErrorRecognition() int

ErrorRecognition Return error_recognition

func (*Context) EventFlags

func (ctxt *Context) EventFlags() int

EventFlags Return event_flags

func (*Context) Filename

func (ctxt *Context) Filename() string

Filename Return filename

func (*Context) Flags

func (ctxt *Context) Flags() int

Flags Return flags

func (*Context) FlushPackets

func (ctxt *Context) FlushPackets() int

FlushPackets Return flush_packets

func (*Context) FormatProbesize

func (ctxt *Context) FormatProbesize() int

FormatProbesize Return format_probesize

func (*Context) FpsProbeSize

func (ctxt *Context) FpsProbeSize() int

FpsProbeSize Return fps_probe_size

func (*Context) Iformat

func (ctxt *Context) Iformat() *InputFormat

Iformat Return iformat

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

func (ctxt *Context) IoRepositioned() int

IoRepositioned Return io_repositioned

func (*Context) Keylen

func (ctxt *Context) Keylen() int

Keylen Return keylen

func (*Context) MaxAnalyzeDuration2

func (ctxt *Context) MaxAnalyzeDuration2() int64

MaxAnalyzeDuration2 Return max_analyze_duration

func (*Context) MaxChunkDuration

func (ctxt *Context) MaxChunkDuration() int

MaxChunkDuration Return max_chunk_duration

func (*Context) MaxChunkSize

func (ctxt *Context) MaxChunkSize() int

MaxChunkSize Return max_chunk_size

func (*Context) MaxDelay

func (ctxt *Context) MaxDelay() int

MaxDelay Return max_delay

func (*Context) MaxIndexSize

func (ctxt *Context) MaxIndexSize() uint

MaxIndexSize Return max_index_size

func (*Context) MaxInterleaveDelta

func (ctxt *Context) MaxInterleaveDelta() int64

MaxInterleaveDelta Return max_interleave_delta

func (*Context) MaxPictureBuffer

func (ctxt *Context) MaxPictureBuffer() uint

MaxPictureBuffer Return max_picture_buffer

func (*Context) MaxTsProbe

func (ctxt *Context) MaxTsProbe() int

MaxTsProbe Return max_ts_probe

func (*Context) Metadata

func (ctxt *Context) Metadata() *libavutil.Dictionary

Metadata Return metadata

func (*Context) MetadataHeaderPadding

func (ctxt *Context) MetadataHeaderPadding() int

MetadataHeaderPadding Return metadata_header_padding

func (*Context) NbChapters

func (ctxt *Context) NbChapters() uint

NbChapters Return nb_chapters

func (*Context) NbPrograms

func (ctxt *Context) NbPrograms() uint

NbPrograms Return nb_programs

func (*Context) NbStreams

func (ctxt *Context) NbStreams() uint

NbStreams Return nb_streams

func (*Context) Oformat

func (ctxt *Context) Oformat() *OutputFormat

Oformat Return oformat

func (*Context) OutputTsOffset

func (ctxt *Context) OutputTsOffset() int64

OutputTsOffset Return output_ts_offset

func (*Context) PacketSize

func (ctxt *Context) PacketSize() uint

PacketSize Return packet_size

func (*Context) Pb

func (ctxt *Context) Pb() *AvIOContext

Pb Return pb

func (*Context) Pb2

func (ctxt *Context) Pb2() **AvIOContext

Pb2 Return pb

func (*Context) ProbeScore

func (ctxt *Context) ProbeScore() int

ProbeScore Return probe_score

func (*Context) Probesize

func (ctxt *Context) Probesize() uint

Probesize Return probesize

func (*Context) Probesize2

func (ctxt *Context) Probesize2() int64

Probesize2 Return probesize

func (*Context) Programs

func (ctxt *Context) Programs() []*AvProgram

Programs Return programs

func (*Context) Seek2any

func (ctxt *Context) Seek2any() int

Seek2any Return seek2any

func (*Context) SetPb

func (ctxt *Context) SetPb(pb *AvIOContext)

SetPb Set pb

func (*Context) SkipInitialBytes

func (ctxt *Context) SkipInitialBytes() int64

SkipInitialBytes Return skip_initial_bytes

func (*Context) StartTime

func (ctxt *Context) StartTime() int64

StartTime Return start_time

func (*Context) StartTimeRealtime

func (ctxt *Context) StartTimeRealtime() int64

StartTimeRealtime Return start_time_realtime

func (*Context) Streams

func (ctxt *Context) Streams() []*Stream

Streams Return streams

func (*Context) StrictStdCompliance

func (ctxt *Context) StrictStdCompliance() int

StrictStdCompliance Return strict_std_compliance

func (*Context) SubtitleCodec

func (ctxt *Context) SubtitleCodec() *AvCodec

SubtitleCodec Return subtitle_codec

func (*Context) SubtitleCodecID

func (ctxt *Context) SubtitleCodecID() CodecID

SubtitleCodecID Return subtitle_codec_id

func (*Context) TsID

func (ctxt *Context) TsID() int

TsID Return ts_id

func (*Context) UseWallclockAsTimestamps

func (ctxt *Context) UseWallclockAsTimestamps() int

UseWallclockAsTimestamps Return use_wallclock_as_timestamps

func (*Context) VideoCodec

func (ctxt *Context) VideoCodec() *AvCodec

VideoCodec Return video_codec

func (*Context) VideoCodecID

func (ctxt *Context) VideoCodecID() CodecID

VideoCodecID Return video_codec_id

type FFFrac

type FFFrac C.struct_FFFrac

type File

type File C.FILE

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

func (s *Stream) AvStreamGetEndPts() int64

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) Codec

func (avs *Stream) Codec() *CodecContext

Codec Return codec

func (*Stream) CodecInfoNbFrames

func (avs *Stream) CodecInfoNbFrames() int

CodecInfoNbFrames Return codec_info_nb_frames

func (*Stream) CodecParameters

func (avs *Stream) CodecParameters() *libavcodec.AvCodecParameters

CodecParameters Return codecpar

func (*Stream) CurDts

func (avs *Stream) CurDts() int64

CurDts Return cur_dts

func (*Stream) Discard

func (avs *Stream) Discard() AvDiscard

Discard Return discard

func (*Stream) Disposition

func (avs *Stream) Disposition() int

Disposition Return disposition

func (*Stream) DtsMisordered

func (avs *Stream) DtsMisordered() uint8

DtsMisordered Return dts_misordered

func (*Stream) DtsOrdered

func (avs *Stream) DtsOrdered() uint8

DtsOrdered Return dts_ordered

func (*Stream) Duration

func (avs *Stream) Duration() int64

Duration Return duration

func (*Stream) EventFlags

func (avs *Stream) EventFlags() int

EventFlags Return event_flags

func (*Stream) FirstDts

func (avs *Stream) FirstDts() int64

FirstDts Return first_dts

func (*Stream) Free

func (avs *Stream) Free()

Free ...

func (*Stream) ID

func (avs *Stream) ID() int

ID Return id

func (*Stream) Index

func (avs *Stream) Index() int

Index Return index

func (*Stream) IndexEntries

func (avs *Stream) IndexEntries() *AvIndexEntry

IndexEntries Return index_entries

func (*Stream) IndexEntriesAllocatedSize

func (avs *Stream) IndexEntriesAllocatedSize() uint

IndexEntriesAllocatedSize Return index_entries_allocated_size

func (*Stream) InjectGlobalSideData

func (avs *Stream) InjectGlobalSideData() int

InjectGlobalSideData Return inject_global_side_data

func (*Stream) InterleaverChunkDuration

func (avs *Stream) InterleaverChunkDuration() int64

InterleaverChunkDuration Return interleaver_chunk_duration

func (*Stream) InterleaverChunkSize

func (avs *Stream) InterleaverChunkSize() int64

InterleaverChunkSize Return interleaver_chunk_size

func (*Stream) LastDtsForOrderCheck

func (avs *Stream) LastDtsForOrderCheck() int64

LastDtsForOrderCheck Return last_dts_for_order_check

func (*Stream) LastIPDuration

func (avs *Stream) LastIPDuration() int

LastIPDuration Return last_IP_duration

func (*Stream) LastIPPts

func (avs *Stream) LastIPPts() int64

LastIPPts Return last_IP_pts

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

func (avs *Stream) MuxTsOffset() int64

MuxTsOffset Return mux_ts_offset

func (*Stream) NbDecodedFrames

func (avs *Stream) NbDecodedFrames() int

NbDecodedFrames Return nb_decoded_frames

func (*Stream) NbFrames

func (avs *Stream) NbFrames() int64

NbFrames Return nb_frames

func (*Stream) NbIndexEntries

func (avs *Stream) NbIndexEntries() int

NbIndexEntries Return nb_index_entries

func (*Stream) NbSideData

func (avs *Stream) NbSideData() int

NbSideData Return nb_side_data

func (*Stream) NeedParsing

func (avs *Stream) NeedParsing() AvStreamParseType

NeedParsing Return need_parsing

func (*Stream) Parser

func (avs *Stream) Parser() *CodecParserContext

Parser Return parser

func (*Stream) ProbeData

func (avs *Stream) ProbeData() AvProbeData

ProbeData Return probe_data

func (*Stream) ProbePackets

func (avs *Stream) ProbePackets() int

ProbePackets Return probe_packets

func (*Stream) PtsBuffer

func (avs *Stream) PtsBuffer() int64

PtsBuffer Return pts_buffer[0]

func (*Stream) PtsReorderError

func (avs *Stream) PtsReorderError() int64

PtsReorderError Return pts_reorder_error[0]

func (*Stream) PtsReorderErrorCount

func (avs *Stream) PtsReorderErrorCount() uint8

PtsReorderErrorCount Return pts_reorder_error_count[0]

func (*Stream) PtsWrapBehavior

func (avs *Stream) PtsWrapBehavior() int

PtsWrapBehavior Return pts_wrap_behavior

func (*Stream) PtsWrapReference

func (avs *Stream) PtsWrapReference() int64

PtsWrapReference Return pts_wrap_reference

func (*Stream) RFrameRate

func (avs *Stream) RFrameRate() libavcodec.Rational

RFrameRate Return r_frame_rate

func (*Stream) RequestProbe

func (avs *Stream) RequestProbe() int

RequestProbe Return request_probe

func (*Stream) SampleAspectRatio

func (avs *Stream) SampleAspectRatio() libavcodec.Rational

SampleAspectRatio Return sample_aspect_ratio

func (*Stream) SideData

func (avs *Stream) SideData() *AvPacketSideData

SideData Return side_data

func (*Stream) SkipSamples

func (avs *Stream) SkipSamples() int

SkipSamples Return skip_samples

func (*Stream) SkipToKeyframe

func (avs *Stream) SkipToKeyframe() int

SkipToKeyframe Return skip_to_keyframe

func (*Stream) StartTime

func (avs *Stream) StartTime() int64

StartTime Return start_time

func (*Stream) StreamIdentifier

func (avs *Stream) StreamIdentifier() int

StreamIdentifier Return stream_identifier

func (*Stream) TimeBase

func (avs *Stream) TimeBase() libavcodec.Rational

TimeBase Return time_base

func (*Stream) UpdateInitialDurationsDone

func (avs *Stream) UpdateInitialDurationsDone() int

UpdateInitialDurationsDone Return update_initial_durations_done

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL