Documentation
¶
Index ¶
- Constants
- func AVDeviceInit()
- func AVDumpFormat(ctx *AVFormatContext, index int, filename string, is_output bool)
- func AVFormatDeinit()
- func AVFormatInit()
- func AVLogSetCallback(level AVLogLevel, cb AVLogCallback)
- type AVCodec
- func (this *AVCodec) Capabilities() AVCodecCap
- func (this *AVCodec) Description() string
- func (this *AVCodec) Id() AVCodecId
- func (this *AVCodec) IsDecoder() bool
- func (this *AVCodec) IsEncoder() bool
- func (this *AVCodec) Name() string
- func (this *AVCodec) String() string
- func (this *AVCodec) Type() AVMediaType
- func (this *AVCodec) WrapperName() string
- type AVCodecCap
- type AVCodecContext
- type AVCodecId
- type AVCodecParameters
- func (this *AVCodecParameters) BitRate() int32
- func (this *AVCodecParameters) Free()
- func (this *AVCodecParameters) From(codecpar *AVCodecParameters) error
- func (this *AVCodecParameters) FromContext(codecctx *AVCodecContext) error
- func (this *AVCodecParameters) Height() uint
- func (this *AVCodecParameters) Id() AVCodecId
- func (this *AVCodecParameters) String() string
- func (this *AVCodecParameters) Tag() uint32
- func (this *AVCodecParameters) ToContext(codecctx *AVCodecContext) error
- func (this *AVCodecParameters) Type() AVMediaType
- func (this *AVCodecParameters) Width() uint
- type AVDictionary
- func (this *AVDictionary) Close()
- func (this *AVDictionary) Count() int
- func (this *AVDictionary) Entries() []*AVDictionaryEntry
- func (this *AVDictionary) Get(key string, prev *AVDictionaryEntry, flags AVDictionaryFlag) *AVDictionaryEntry
- func (this *AVDictionary) Keys() []string
- func (this *AVDictionary) Set(key, value string, flags AVDictionaryFlag) error
- func (this *AVDictionary) String() string
- type AVDictionaryEntry
- type AVDictionaryFlag
- type AVDisposition
- type AVError
- type AVFormatContext
- func (this *AVFormatContext) CloseInput()
- func (this *AVFormatContext) Dump(index int)
- func (this *AVFormatContext) Filename() string
- func (this *AVFormatContext) FindStreamInfo() (*AVDictionary, error)
- func (this *AVFormatContext) Free()
- func (this *AVFormatContext) InputFormat() *AVInputFormat
- func (this *AVFormatContext) Metadata() *AVDictionary
- func (this *AVFormatContext) NumStreams() uint
- func (this *AVFormatContext) OpenInput(filename string, input_format *AVInputFormat) error
- func (this *AVFormatContext) OpenOutput(filename string, input_format *AVInputFormat) error
- func (this *AVFormatContext) OutputFormat() *AVOutputFormat
- func (this *AVFormatContext) Streams() []*AVStream
- func (this *AVFormatContext) String() string
- func (this *AVFormatContext) Url() *url.URL
- func (this *AVFormatContext) WriteHeader(dict *AVDictionary) error
- type AVFormatFlag
- type AVFrame
- type AVIOContext
- type AVIOFlag
- type AVInputFormat
- type AVLogCallback
- type AVLogLevel
- type AVMediaType
- type AVOutputFormat
- type AVPacket
- type AVStream
- func (this *AVStream) AttachedPicture() *AVPacket
- func (this *AVStream) CodecPar() *AVCodecParameters
- func (this *AVStream) Disposition() AVDisposition
- func (this *AVStream) Id() int
- func (this *AVStream) Index() int
- func (this *AVStream) Metadata() *AVDictionary
- func (this *AVStream) String() string
Constants ¶
const ( AV_CODEC_ID_MIN = AV_CODEC_ID_MPEG1VIDEO AV_CODEC_ID_MAX = AV_CODEC_ID_WRAPPED_AVFRAME )
const (
BUF_SIZE = 1024
)
Variables ¶
This section is empty.
Functions ¶
func AVDumpFormat ¶
func AVDumpFormat(ctx *AVFormatContext, index int, filename string, is_output bool)
func AVFormatDeinit ¶
func AVFormatDeinit()
func AVLogSetCallback ¶
func AVLogSetCallback(level AVLogLevel, cb AVLogCallback)
AVLogSetCallback sets both the callback function and the level of output for logging. Where the callback is nil, the default ffmpeg logging is used.
Types ¶
type AVCodec ¶
type AVCodec C.struct_AVCodec
func FindDecoderById ¶
func FindDecoderByName ¶
func FindEncoderById ¶
func FindEncoderByName ¶
func (*AVCodec) Capabilities ¶
func (this *AVCodec) Capabilities() AVCodecCap
func (*AVCodec) Description ¶
func (*AVCodec) Type ¶
func (this *AVCodec) Type() AVMediaType
func (*AVCodec) WrapperName ¶
type AVCodecCap ¶
type AVCodecCap uint32
const ( AV_CODEC_CAP_DRAW_HORIZ_BAND AVCodecCap = (1 << 0) // Decoder can use draw_horiz_band callback AV_CODEC_CAP_DR1 AVCodecCap = (1 << 1) // Codec uses get_buffer() for allocating buffers and supports custom allocators AV_CODEC_CAP_TRUNCATED AVCodecCap = (1 << 3) AV_CODEC_CAP_DELAY AVCodecCap = (1 << 5) // Encoder or decoder requires flushing with NULL input at the end in order to give the complete and correct output AV_CODEC_CAP_SMALL_LAST_FRAME AVCodecCap = (1 << 6) // Codec can be fed a final frame with a smaller size AV_CODEC_CAP_SUBFRAMES AVCodecCap = (1 << 8) // Codec can output multiple frames per AVPacket Normally demuxers return one frame at a time, demuxers which do not do are connected to a parser to split what they return into proper frames AV_CODEC_CAP_EXPERIMENTAL AVCodecCap = (1 << 9) // Codec is experimental and is thus avoided in favor of non experimental encoders AV_CODEC_CAP_CHANNEL_CONF AVCodecCap = (1 << 10) // Codec should fill in channel configuration and samplerate instead of container AV_CODEC_CAP_FRAME_THREADS AVCodecCap = (1 << 12) // Codec supports frame-level multithreading AV_CODEC_CAP_SLICE_THREADS AVCodecCap = (1 << 13) // Codec supports slice-based (or partition-based) multithreading AV_CODEC_CAP_PARAM_CHANGE AVCodecCap = (1 << 14) // Codec supports changed parameters at any point AV_CODEC_CAP_AUTO_THREADS AVCodecCap = (1 << 15) // Codec supports avctx->thread_count == 0 (auto) AV_CODEC_CAP_VARIABLE_FRAME_SIZE AVCodecCap = (1 << 16) // Audio encoder supports receiving a different number of samples in each call AV_CODEC_CAP_AVOID_PROBING AVCodecCap = (1 << 17) // Decoder is not a preferred choice for probing AV_CODEC_CAP_HARDWARE AVCodecCap = (1 << 18) // Codec is backed by a hardware implementation AV_CODEC_CAP_HYBRID AVCodecCap = (1 << 19) // Codec is potentially backed by a hardware implementation, but not necessarily AV_CODEC_CAP_INTRA_ONLY AVCodecCap = 0x40000000 // Codec is intra only AV_CODEC_CAP_LOSSLESS AVCodecCap = 0x80000000 // Codec is lossless AV_CODEC_CAP_NONE AVCodecCap = 0 AV_CODEC_CAP_MIN AVCodecCap = AV_CODEC_CAP_DRAW_HORIZ_BAND AV_CODEC_CAP_MAX AVCodecCap = AV_CODEC_CAP_LOSSLESS )
func (AVCodecCap) FlagString ¶
func (v AVCodecCap) FlagString() string
func (AVCodecCap) String ¶
func (v AVCodecCap) String() string
type AVCodecContext ¶
type AVCodecContext C.struct_AVCodecContext
func NewAVCodecContext ¶
func NewAVCodecContext(codec *AVCodec) *AVCodecContext
NewAVCodecContext allocates an AVCodecContext and set its fields to default values
func (*AVCodecContext) Close ¶
func (this *AVCodecContext) Close() error
Close a given AVCodecContext and free all the data associated with it, but not the AVCodecContext itself
func (*AVCodecContext) Open ¶
func (this *AVCodecContext) Open(codec *AVCodec, options *AVDictionary) error
Open will initialize the AVCodecContext to use the given AVCodec
func (*AVCodecContext) String ¶
func (this *AVCodecContext) String() string
type AVCodecId ¶
type AVCodecId int
const ( AV_CODEC_ID_NONE AVCodecId = iota AV_CODEC_ID_MPEG1VIDEO AV_CODEC_ID_MPEG2VIDEO ///< preferred ID for MPEG-1/2 video decoding AV_CODEC_ID_H261 AV_CODEC_ID_H263 AV_CODEC_ID_RV10 AV_CODEC_ID_RV20 AV_CODEC_ID_MJPEG AV_CODEC_ID_MJPEGB AV_CODEC_ID_LJPEG AV_CODEC_ID_SP5X AV_CODEC_ID_JPEGLS AV_CODEC_ID_MPEG4 AV_CODEC_ID_RAWVIDEO AV_CODEC_ID_MSMPEG4V1 AV_CODEC_ID_MSMPEG4V2 AV_CODEC_ID_MSMPEG4V3 AV_CODEC_ID_WMV1 AV_CODEC_ID_WMV2 AV_CODEC_ID_H263P AV_CODEC_ID_H263I AV_CODEC_ID_FLV1 AV_CODEC_ID_SVQ1 AV_CODEC_ID_SVQ3 AV_CODEC_ID_DVVIDEO AV_CODEC_ID_HUFFYUV AV_CODEC_ID_CYUV AV_CODEC_ID_H264 AV_CODEC_ID_INDEO3 AV_CODEC_ID_VP3 AV_CODEC_ID_THEORA AV_CODEC_ID_ASV1 AV_CODEC_ID_ASV2 AV_CODEC_ID_FFV1 AV_CODEC_ID_4XM AV_CODEC_ID_VCR1 AV_CODEC_ID_CLJR AV_CODEC_ID_MDEC AV_CODEC_ID_ROQ AV_CODEC_ID_INTERPLAY_VIDEO AV_CODEC_ID_XAN_WC3 AV_CODEC_ID_XAN_WC4 AV_CODEC_ID_RPZA AV_CODEC_ID_CINEPAK AV_CODEC_ID_WS_VQA AV_CODEC_ID_MSRLE AV_CODEC_ID_MSVIDEO1 AV_CODEC_ID_IDCIN AV_CODEC_ID_8BPS AV_CODEC_ID_SMC AV_CODEC_ID_FLIC AV_CODEC_ID_TRUEMOTION1 AV_CODEC_ID_VMDVIDEO AV_CODEC_ID_MSZH AV_CODEC_ID_ZLIB AV_CODEC_ID_QTRLE AV_CODEC_ID_TSCC AV_CODEC_ID_ULTI AV_CODEC_ID_QDRAW AV_CODEC_ID_VIXL AV_CODEC_ID_QPEG AV_CODEC_ID_PNG AV_CODEC_ID_PPM AV_CODEC_ID_PBM AV_CODEC_ID_PGM AV_CODEC_ID_PGMYUV AV_CODEC_ID_PAM AV_CODEC_ID_FFVHUFF AV_CODEC_ID_RV30 AV_CODEC_ID_RV40 AV_CODEC_ID_VC1 AV_CODEC_ID_WMV3 AV_CODEC_ID_LOCO AV_CODEC_ID_WNV1 AV_CODEC_ID_AASC AV_CODEC_ID_INDEO2 AV_CODEC_ID_FRAPS AV_CODEC_ID_TRUEMOTION2 AV_CODEC_ID_BMP AV_CODEC_ID_CSCD AV_CODEC_ID_MMVIDEO AV_CODEC_ID_ZMBV AV_CODEC_ID_AVS AV_CODEC_ID_SMACKVIDEO AV_CODEC_ID_NUV AV_CODEC_ID_KMVC AV_CODEC_ID_FLASHSV AV_CODEC_ID_CAVS AV_CODEC_ID_JPEG2000 AV_CODEC_ID_VMNC AV_CODEC_ID_VP5 AV_CODEC_ID_VP6 AV_CODEC_ID_VP6F AV_CODEC_ID_TARGA AV_CODEC_ID_DSICINVIDEO AV_CODEC_ID_TIERTEXSEQVIDEO AV_CODEC_ID_TIFF AV_CODEC_ID_GIF AV_CODEC_ID_DXA AV_CODEC_ID_DNXHD AV_CODEC_ID_THP AV_CODEC_ID_SGI AV_CODEC_ID_C93 AV_CODEC_ID_BETHSOFTVID AV_CODEC_ID_PTX AV_CODEC_ID_TXD AV_CODEC_ID_VP6A AV_CODEC_ID_AMV AV_CODEC_ID_VB AV_CODEC_ID_PCX AV_CODEC_ID_SUNRAST AV_CODEC_ID_INDEO4 AV_CODEC_ID_INDEO5 AV_CODEC_ID_MIMIC AV_CODEC_ID_RL2 AV_CODEC_ID_ESCAPE124 AV_CODEC_ID_DIRAC AV_CODEC_ID_BFI AV_CODEC_ID_CMV AV_CODEC_ID_MOTIONPIXELS AV_CODEC_ID_TGV AV_CODEC_ID_TGQ AV_CODEC_ID_TQI AV_CODEC_ID_AURA AV_CODEC_ID_AURA2 AV_CODEC_ID_V210X AV_CODEC_ID_TMV AV_CODEC_ID_V210 AV_CODEC_ID_DPX AV_CODEC_ID_MAD AV_CODEC_ID_FRWU AV_CODEC_ID_FLASHSV2 AV_CODEC_ID_CDGRAPHICS AV_CODEC_ID_R210 AV_CODEC_ID_ANM AV_CODEC_ID_BINKVIDEO AV_CODEC_ID_IFF_ILBM AV_CODEC_ID_KGV1 AV_CODEC_ID_YOP AV_CODEC_ID_VP8 AV_CODEC_ID_PICTOR AV_CODEC_ID_ANSI AV_CODEC_ID_A64_MULTI AV_CODEC_ID_A64_MULTI5 AV_CODEC_ID_R10K AV_CODEC_ID_MXPEG AV_CODEC_ID_LAGARITH AV_CODEC_ID_PRORES AV_CODEC_ID_JV AV_CODEC_ID_DFA AV_CODEC_ID_WMV3IMAGE AV_CODEC_ID_VC1IMAGE AV_CODEC_ID_UTVIDEO AV_CODEC_ID_BMV_VIDEO AV_CODEC_ID_VBLE AV_CODEC_ID_DXTORY AV_CODEC_ID_V410 AV_CODEC_ID_XWD AV_CODEC_ID_CDXL AV_CODEC_ID_XBM AV_CODEC_ID_ZEROCODEC AV_CODEC_ID_MSS1 AV_CODEC_ID_MSA1 AV_CODEC_ID_TSCC2 AV_CODEC_ID_MTS2 AV_CODEC_ID_CLLC AV_CODEC_ID_MSS2 AV_CODEC_ID_VP9 AV_CODEC_ID_AIC AV_CODEC_ID_ESCAPE130 AV_CODEC_ID_G2M AV_CODEC_ID_WEBP AV_CODEC_ID_HNM4_VIDEO AV_CODEC_ID_HEVC AV_CODEC_ID_FIC AV_CODEC_ID_ALIAS_PIX AV_CODEC_ID_BRENDER_PIX AV_CODEC_ID_PAF_VIDEO AV_CODEC_ID_EXR AV_CODEC_ID_VP7 AV_CODEC_ID_SANM AV_CODEC_ID_SGIRLE AV_CODEC_ID_MVC1 AV_CODEC_ID_MVC2 AV_CODEC_ID_HQX AV_CODEC_ID_TDSC AV_CODEC_ID_HQ_HQA AV_CODEC_ID_HAP AV_CODEC_ID_DDS AV_CODEC_ID_DXV AV_CODEC_ID_SCREENPRESSO AV_CODEC_ID_RSCC AV_CODEC_ID_AVS2 AV_CODEC_ID_H265 = AV_CODEC_ID_HEVC AV_CODEC_ID_IFF_BYTERUN1 = AV_CODEC_ID_IFF_ILBM )
const ( AV_CODEC_ID_Y41P AVCodecId = iota + 0x8000 AV_CODEC_ID_AVRP AV_CODEC_ID_012V AV_CODEC_ID_AVUI AV_CODEC_ID_AYUV AV_CODEC_ID_TARGA_Y216 AV_CODEC_ID_V308 AV_CODEC_ID_V408 AV_CODEC_ID_YUV4 AV_CODEC_ID_AVRN AV_CODEC_ID_CPIA AV_CODEC_ID_XFACE AV_CODEC_ID_SNOW AV_CODEC_ID_SMVJPEG AV_CODEC_ID_APNG AV_CODEC_ID_DAALA AV_CODEC_ID_CFHD AV_CODEC_ID_TRUEMOTION2RT AV_CODEC_ID_M101 AV_CODEC_ID_MAGICYUV AV_CODEC_ID_SHEERVIDEO AV_CODEC_ID_YLC AV_CODEC_ID_PSD AV_CODEC_ID_PIXLET AV_CODEC_ID_SPEEDHQ AV_CODEC_ID_FMVC AV_CODEC_ID_SCPR AV_CODEC_ID_CLEARVIDEO AV_CODEC_ID_XPM AV_CODEC_ID_AV1 AV_CODEC_ID_BITPACKED AV_CODEC_ID_MSCC AV_CODEC_ID_SRGC AV_CODEC_ID_SVG AV_CODEC_ID_GDV AV_CODEC_ID_FITS AV_CODEC_ID_IMM4 AV_CODEC_ID_PROSUMER AV_CODEC_ID_MWSC AV_CODEC_ID_WCMV AV_CODEC_ID_RASC )
const ( // Audio Codecs AV_CODEC_ID_FIRST_AUDIO = AV_CODEC_ID_PCM_S16LE AV_CODEC_ID_PCM_S16LE AVCodecId = iota + 0x10000 AV_CODEC_ID_PCM_S16BE AV_CODEC_ID_PCM_U16LE AV_CODEC_ID_PCM_U16BE AV_CODEC_ID_PCM_S8 AV_CODEC_ID_PCM_U8 AV_CODEC_ID_PCM_MULAW AV_CODEC_ID_PCM_ALAW AV_CODEC_ID_PCM_S32LE AV_CODEC_ID_PCM_S32BE AV_CODEC_ID_PCM_U32LE AV_CODEC_ID_PCM_U32BE AV_CODEC_ID_PCM_S24LE AV_CODEC_ID_PCM_S24BE AV_CODEC_ID_PCM_U24LE AV_CODEC_ID_PCM_U24BE AV_CODEC_ID_PCM_S24DAUD AV_CODEC_ID_PCM_ZORK AV_CODEC_ID_PCM_S16LE_PLANAR AV_CODEC_ID_PCM_DVD AV_CODEC_ID_PCM_F32BE AV_CODEC_ID_PCM_F32LE AV_CODEC_ID_PCM_F64BE AV_CODEC_ID_PCM_F64LE AV_CODEC_ID_PCM_BLURAY AV_CODEC_ID_PCM_LXF AV_CODEC_ID_S302M AV_CODEC_ID_PCM_S8_PLANAR AV_CODEC_ID_PCM_S24LE_PLANAR AV_CODEC_ID_PCM_S32LE_PLANAR AV_CODEC_ID_PCM_S16BE_PLANAR )
const ( AV_CODEC_ID_ADPCM_IMA_QT AVCodecId = iota + 0x11000 AV_CODEC_ID_ADPCM_IMA_WAV AV_CODEC_ID_ADPCM_IMA_DK3 AV_CODEC_ID_ADPCM_IMA_DK4 AV_CODEC_ID_ADPCM_IMA_WS AV_CODEC_ID_ADPCM_IMA_SMJPEG AV_CODEC_ID_ADPCM_MS AV_CODEC_ID_ADPCM_4XM AV_CODEC_ID_ADPCM_XA AV_CODEC_ID_ADPCM_ADX AV_CODEC_ID_ADPCM_EA AV_CODEC_ID_ADPCM_G726 AV_CODEC_ID_ADPCM_CT AV_CODEC_ID_ADPCM_SWF AV_CODEC_ID_ADPCM_YAMAHA AV_CODEC_ID_ADPCM_SBPRO_4 AV_CODEC_ID_ADPCM_SBPRO_3 AV_CODEC_ID_ADPCM_SBPRO_2 AV_CODEC_ID_ADPCM_THP AV_CODEC_ID_ADPCM_IMA_AMV AV_CODEC_ID_ADPCM_EA_R1 AV_CODEC_ID_ADPCM_EA_R3 AV_CODEC_ID_ADPCM_EA_R2 AV_CODEC_ID_ADPCM_IMA_EA_SEAD AV_CODEC_ID_ADPCM_IMA_EA_EACS AV_CODEC_ID_ADPCM_EA_XAS AV_CODEC_ID_ADPCM_EA_MAXIS_XA AV_CODEC_ID_ADPCM_IMA_ISS AV_CODEC_ID_ADPCM_G722 AV_CODEC_ID_ADPCM_IMA_APC AV_CODEC_ID_ADPCM_VIMA )
const ( AV_CODEC_ID_MP2 AVCodecId = iota + 0x15000 AV_CODEC_ID_MP3 ///< preferred ID for decoding MPEG audio layer 1, 2 or 3 AV_CODEC_ID_AAC AV_CODEC_ID_AC3 AV_CODEC_ID_DTS AV_CODEC_ID_VORBIS AV_CODEC_ID_DVAUDIO AV_CODEC_ID_WMAV1 AV_CODEC_ID_WMAV2 AV_CODEC_ID_MACE3 AV_CODEC_ID_MACE6 AV_CODEC_ID_VMDAUDIO AV_CODEC_ID_FLAC AV_CODEC_ID_MP3ADU AV_CODEC_ID_MP3ON4 AV_CODEC_ID_SHORTEN AV_CODEC_ID_ALAC AV_CODEC_ID_WESTWOOD_SND1 AV_CODEC_ID_GSM ///< as in Berlin toast format AV_CODEC_ID_QDM2 AV_CODEC_ID_COOK AV_CODEC_ID_TRUESPEECH AV_CODEC_ID_TTA AV_CODEC_ID_SMACKAUDIO AV_CODEC_ID_QCELP AV_CODEC_ID_WAVPACK AV_CODEC_ID_DSICINAUDIO AV_CODEC_ID_IMC AV_CODEC_ID_MUSEPACK7 AV_CODEC_ID_MLP AV_CODEC_ID_GSM_MS /* as found in WAV */ AV_CODEC_ID_ATRAC3 AV_CODEC_ID_APE AV_CODEC_ID_NELLYMOSER AV_CODEC_ID_MUSEPACK8 AV_CODEC_ID_SPEEX AV_CODEC_ID_WMAVOICE AV_CODEC_ID_WMAPRO AV_CODEC_ID_WMALOSSLESS AV_CODEC_ID_ATRAC3P AV_CODEC_ID_EAC3 AV_CODEC_ID_SIPR AV_CODEC_ID_MP1 AV_CODEC_ID_TWINVQ AV_CODEC_ID_TRUEHD AV_CODEC_ID_MP4ALS AV_CODEC_ID_ATRAC1 AV_CODEC_ID_BINKAUDIO_RDFT AV_CODEC_ID_BINKAUDIO_DCT AV_CODEC_ID_AAC_LATM AV_CODEC_ID_QDMC AV_CODEC_ID_CELT AV_CODEC_ID_G723_1 AV_CODEC_ID_G729 AV_CODEC_ID_8SVX_EXP AV_CODEC_ID_8SVX_FIB AV_CODEC_ID_BMV_AUDIO AV_CODEC_ID_RALF AV_CODEC_ID_IAC AV_CODEC_ID_ILBC AV_CODEC_ID_OPUS AV_CODEC_ID_COMFORT_NOISE AV_CODEC_ID_TAK AV_CODEC_ID_METASOUND AV_CODEC_ID_PAF_AUDIO AV_CODEC_ID_ON2AVC AV_CODEC_ID_DSS_SP AV_CODEC_ID_CODEC2 )
const ( AV_CODEC_ID_FFWAVESYNTH AVCodecId = iota + 0x15800 AV_CODEC_ID_SONIC AV_CODEC_ID_SONIC_LS AV_CODEC_ID_EVRC AV_CODEC_ID_SMV AV_CODEC_ID_DSD_LSBF AV_CODEC_ID_DSD_MSBF AV_CODEC_ID_DSD_LSBF_PLANAR AV_CODEC_ID_DSD_MSBF_PLANAR AV_CODEC_ID_4GV AV_CODEC_ID_INTERPLAY_ACM AV_CODEC_ID_XMA1 AV_CODEC_ID_XMA2 AV_CODEC_ID_DST AV_CODEC_ID_ATRAC3AL AV_CODEC_ID_ATRAC3PAL AV_CODEC_ID_DOLBY_E AV_CODEC_ID_APTX AV_CODEC_ID_APTX_HD AV_CODEC_ID_SBC AV_CODEC_ID_ATRAC9 )
const ( AV_CODEC_ID_FIRST_SUBTITLE = AV_CODEC_ID_DVD_SUBTITLE AV_CODEC_ID_DVD_SUBTITLE AVCodecId = iota + 0x17000 AV_CODEC_ID_DVB_SUBTITLE AV_CODEC_ID_TEXT ///< raw UTF-8 text AV_CODEC_ID_XSUB AV_CODEC_ID_SSA AV_CODEC_ID_MOV_TEXT AV_CODEC_ID_HDMV_PGS_SUBTITLE AV_CODEC_ID_DVB_TELETEXT AV_CODEC_ID_SRT )
const ( AV_CODEC_ID_MICRODVD AVCodecId = iota + 0x17800 AV_CODEC_ID_EIA_608 AV_CODEC_ID_JACOSUB AV_CODEC_ID_SAMI AV_CODEC_ID_REALTEXT AV_CODEC_ID_STL AV_CODEC_ID_SUBVIEWER1 AV_CODEC_ID_SUBVIEWER AV_CODEC_ID_SUBRIP AV_CODEC_ID_WEBVTT AV_CODEC_ID_MPL2 AV_CODEC_ID_VPLAYER AV_CODEC_ID_PJS AV_CODEC_ID_ASS AV_CODEC_ID_HDMV_TEXT_SUBTITLE AV_CODEC_ID_TTML )
const ( AV_CODEC_ID_FIRST_UNKNOWN = AV_CODEC_ID_TTF AV_CODEC_ID_TTF AVCodecId = iota + 0x18000 AV_CODEC_ID_SCTE_35 ///< Contain timestamp estimated through PCR of program stream. )
const ( AV_CODEC_ID_BINTEXT AVCodecId = iota + 0x18800 AV_CODEC_ID_XBIN AV_CODEC_ID_IDF AV_CODEC_ID_OTF AV_CODEC_ID_SMPTE_KLV AV_CODEC_ID_DVD_NAV AV_CODEC_ID_TIMED_ID3 AV_CODEC_ID_BIN_DATA AV_CODEC_ID_PROBE AVCodecId = 0x19000 ///< codec_id is not known (like AV_CODEC_ID_NONE) but lavf should attempt to identify it AV_CODEC_ID_MPEG2TS AVCodecId = 0x20000 // _FAKE_ codec to indicate a raw MPEG-2 TS AV_CODEC_ID_MPEG4SYSTEMS AVCodecId = 0x20001 // _FAKE_ codec to indicate a MPEG-4 Systems AV_CODEC_ID_FFMETADATA AVCodecId = 0x21000 // Dummy codec for streams containing only metadata information. AV_CODEC_ID_WRAPPED_AVFRAME AVCodecId = 0x21001 // Passthrough codec, AVFrames wrapped in AVPacket )
type AVCodecParameters ¶
type AVCodecParameters C.struct_AVCodecParameters
func NewAVCodecParameters ¶
func NewAVCodecParameters() *AVCodecParameters
NewAVCodecParameters allocates a new AVCodecParameters and set its fields to default values (unknown/invalid/0)
func (*AVCodecParameters) BitRate ¶
func (this *AVCodecParameters) BitRate() int32
func (*AVCodecParameters) From ¶
func (this *AVCodecParameters) From(codecpar *AVCodecParameters) error
From fill the parameters based on the values from the supplied codec parameters
func (*AVCodecParameters) FromContext ¶
func (this *AVCodecParameters) FromContext(codecctx *AVCodecContext) error
FromContext fill the parameters based on the values from the supplied codec context
func (*AVCodecParameters) Height ¶
func (this *AVCodecParameters) Height() uint
func (*AVCodecParameters) Id ¶
func (this *AVCodecParameters) Id() AVCodecId
func (*AVCodecParameters) String ¶
func (this *AVCodecParameters) String() string
func (*AVCodecParameters) Tag ¶
func (this *AVCodecParameters) Tag() uint32
func (*AVCodecParameters) ToContext ¶
func (this *AVCodecParameters) ToContext(codecctx *AVCodecContext) error
ToContext fills the codec context based on the values
func (*AVCodecParameters) Type ¶
func (this *AVCodecParameters) Type() AVMediaType
func (*AVCodecParameters) Width ¶
func (this *AVCodecParameters) Width() uint
type AVDictionary ¶
type AVDictionary struct {
// contains filtered or unexported fields
}
func NewAVDictionary ¶
func NewAVDictionary() *AVDictionary
func (*AVDictionary) Close ¶
func (this *AVDictionary) Close()
func (*AVDictionary) Count ¶
func (this *AVDictionary) Count() int
func (*AVDictionary) Entries ¶
func (this *AVDictionary) Entries() []*AVDictionaryEntry
func (*AVDictionary) Get ¶
func (this *AVDictionary) Get(key string, prev *AVDictionaryEntry, flags AVDictionaryFlag) *AVDictionaryEntry
func (*AVDictionary) Keys ¶
func (this *AVDictionary) Keys() []string
func (*AVDictionary) Set ¶
func (this *AVDictionary) Set(key, value string, flags AVDictionaryFlag) error
func (*AVDictionary) String ¶
func (this *AVDictionary) String() string
type AVDictionaryEntry ¶
type AVDictionaryEntry C.struct_AVDictionaryEntry
func (*AVDictionaryEntry) Key ¶
func (this *AVDictionaryEntry) Key() string
func (*AVDictionaryEntry) String ¶
func (this *AVDictionaryEntry) String() string
func (*AVDictionaryEntry) Value ¶
func (this *AVDictionaryEntry) Value() string
type AVDictionaryFlag ¶
type AVDictionaryFlag int
const ( AV_DICT_NONE AVDictionaryFlag = 0 AV_DICT_MATCH_CASE AVDictionaryFlag = 1 AV_DICT_IGNORE_SUFFIX AVDictionaryFlag = 2 AV_DICT_DONT_STRDUP_KEY AVDictionaryFlag = 4 AV_DICT_DONT_STRDUP_VAL AVDictionaryFlag = 8 AV_DICT_DONT_OVERWRITE AVDictionaryFlag = 16 AV_DICT_APPEND AVDictionaryFlag = 32 AV_DICT_MULTIKEY AVDictionaryFlag = 64 )
type AVDisposition ¶
type AVDisposition int
const ( AV_DISPOSITION_DEFAULT AVDisposition = 0x0001 AV_DISPOSITION_DUB AVDisposition = 0x0002 AV_DISPOSITION_ORIGINAL AVDisposition = 0x0004 AV_DISPOSITION_COMMENT AVDisposition = 0x0008 AV_DISPOSITION_LYRICS AVDisposition = 0x0010 AV_DISPOSITION_KARAOKE AVDisposition = 0x0020 AV_DISPOSITION_FORCED AVDisposition = 0x0040 AV_DISPOSITION_HEARING_IMPAIRED AVDisposition = 0x0080 // Stream for hearing impaired audiences AV_DISPOSITION_VISUAL_IMPAIRED AVDisposition = 0x0100 // Stream for visual impaired audiences AV_DISPOSITION_CLEAN_EFFECTS AVDisposition = 0x0200 // Stream without voice AV_DISPOSITION_ATTACHED_PIC AVDisposition = 0x0400 AV_DISPOSITION_TIMED_THUMBNAILS AVDisposition = 0x0800 AV_DISPOSITION_CAPTIONS AVDisposition = 0x10000 AV_DISPOSITION_DESCRIPTIONS AVDisposition = 0x20000 AV_DISPOSITION_METADATA AVDisposition = 0x40000 AV_DISPOSITION_DEPENDENT AVDisposition = 0x80000 // Dependent audio stream (mix_type=0 in mpegts) AV_DISPOSITION_STILL_IMAGE AVDisposition = 0x100000 // Still images in video stream (still_picture_flag=1 in mpegts) AV_DISPOSITION_NONE AVDisposition = 0 AV_DISPOSITION_MIN = AV_DISPOSITION_DEFAULT AV_DISPOSITION_MAX = AV_DISPOSITION_STILL_IMAGE )
func (AVDisposition) FlagString ¶
func (v AVDisposition) FlagString() string
func (AVDisposition) String ¶
func (v AVDisposition) String() string
type AVFormatContext ¶
type AVFormatContext C.struct_AVFormatContext
func NewAVFormatContext ¶
func NewAVFormatContext() *AVFormatContext
NewAVFormatContext creates a new empty format context
func NewAVFormatOutputContext ¶
func NewAVFormatOutputContext(filename string, output_format *AVOutputFormat) (*AVFormatContext, error)
NewAVFormatOutputContext creates a new format context with context populated with output parameters
func (*AVFormatContext) Dump ¶
func (this *AVFormatContext) Dump(index int)
func (*AVFormatContext) FindStreamInfo ¶
func (this *AVFormatContext) FindStreamInfo() (*AVDictionary, error)
Find Stream Info
func (*AVFormatContext) InputFormat ¶
func (this *AVFormatContext) InputFormat() *AVInputFormat
Return Input Format
func (*AVFormatContext) Metadata ¶
func (this *AVFormatContext) Metadata() *AVDictionary
Return Metadata Dictionary
func (*AVFormatContext) NumStreams ¶
func (this *AVFormatContext) NumStreams() uint
Return number of streams
func (*AVFormatContext) OpenInput ¶
func (this *AVFormatContext) OpenInput(filename string, input_format *AVInputFormat) error
Open Input
func (*AVFormatContext) OpenOutput ¶
func (this *AVFormatContext) OpenOutput(filename string, input_format *AVInputFormat) error
Open Output
func (*AVFormatContext) OutputFormat ¶
func (this *AVFormatContext) OutputFormat() *AVOutputFormat
Return Output Format
func (*AVFormatContext) String ¶
func (this *AVFormatContext) String() string
func (*AVFormatContext) WriteHeader ¶
func (this *AVFormatContext) WriteHeader(dict *AVDictionary) error
Write header
type AVFormatFlag ¶
type AVFormatFlag int
const ( AVFMT_NOFILE AVFormatFlag = 0x0001 AVFMT_NEEDNUMBER AVFormatFlag = 0x0002 // Needs '%d' in filename AVFMT_SHOW_IDS AVFormatFlag = 0x0008 // Show format stream IDs numbers AVFMT_GLOBALHEADER AVFormatFlag = 0x0040 // Format wants global header AVFMT_NOTIMESTAMPS AVFormatFlag = 0x0080 // Format does not need / have any timestamps AVFMT_GENERIC_INDEX AVFormatFlag = 0x0100 // Use generic index building code AVFMT_TS_DISCONT AVFormatFlag = 0x0200 // Format allows timestamp discontinuities. Note, muxers always require valid (monotone) timestamps AVFMT_VARIABLE_FPS AVFormatFlag = 0x0400 // Format allows variable fps AVFMT_NODIMENSIONS AVFormatFlag = 0x0800 // Format does not need width/height AVFMT_NOSTREAMS AVFormatFlag = 0x1000 // Format does not require any streams AVFMT_NOBINSEARCH AVFormatFlag = 0x2000 // Format does not allow to fall back on binary search via read_timestamp AVFMT_NOGENSEARCH AVFormatFlag = 0x4000 // Format does not allow to fall back on generic search AVFMT_NO_BYTE_SEEK AVFormatFlag = 0x8000 // Format does not allow seeking by bytes AVFMT_ALLOW_FLUSH AVFormatFlag = 0x10000 // Format allows flushing. If not set, the muxer will not receive a NULL packet in the write_packet function AVFMT_TS_NONSTRICT AVFormatFlag = 0x20000 // Format does not require strictly increasing timestamps, but they must still be monotonic AVFMT_TS_NEGATIVE AVFormatFlag = 0x40000 // Format allows muxing negative timestamps. If not set the timestamp will be shifted in av_write_frame and av_interleaved_write_frame so they start from 0. The user or muxer can override this through AVFormatContext.avoid_negative_ts AVFMT_SEEK_TO_PTS AVFormatFlag = 0x4000000 // Seeking is based on PTS AVFMT_NONE AVFormatFlag = 0 AVFMT_MIN = AVFMT_NOFILE AVFMT_MAX = AVFMT_SEEK_TO_PTS )
func (AVFormatFlag) FlagString ¶
func (v AVFormatFlag) FlagString() string
func (AVFormatFlag) String ¶
func (v AVFormatFlag) String() string
type AVFrame ¶
type AVFrame C.struct_AVFrame
func NewAVFrame ¶
func NewAVFrame() *AVFrame
NewAVFrame allocates an AVFrame and set its fields to default values
type AVIOContext ¶
type AVIOContext C.struct_AVIOContext
func NewAVIOContext ¶
func NewAVIOContext(url *url.URL, flags AVIOFlag) (*AVIOContext, error)
func (*AVIOContext) Free ¶
func (this *AVIOContext) Free()
type AVIOFlag ¶
type AVIOFlag int
const ( AVIO_FLAG_NONE AVIOFlag = 0 AVIO_FLAG_READ AVIOFlag = 1 AVIO_FLAG_WRITE AVIOFlag = 2 AVIO_FLAG_READ_WRITE AVIOFlag = (AVIO_FLAG_READ | AVIO_FLAG_WRITE) )
type AVInputFormat ¶
type AVInputFormat C.struct_AVInputFormat
func AllAudioInputDevices ¶
func AllAudioInputDevices() []*AVInputFormat
func AllDemuxers ¶
func AllDemuxers() []*AVInputFormat
AllDemuxers returns all registered demultiplexers
func AllVideoInputDevices ¶
func AllVideoInputDevices() []*AVInputFormat
func (*AVInputFormat) Description ¶
func (this *AVInputFormat) Description() string
func (*AVInputFormat) Ext ¶
func (this *AVInputFormat) Ext() string
func (*AVInputFormat) Flags ¶
func (this *AVInputFormat) Flags() AVFormatFlag
func (*AVInputFormat) MimeType ¶
func (this *AVInputFormat) MimeType() string
func (*AVInputFormat) Name ¶
func (this *AVInputFormat) Name() string
func (*AVInputFormat) String ¶
func (this *AVInputFormat) String() string
type AVLogCallback ¶
type AVLogCallback func(level AVLogLevel, message string, userInfo uintptr)
type AVLogLevel ¶
type AVLogLevel int
const ( AV_LOG_QUIET AVLogLevel = -8 AV_LOG_PANIC AVLogLevel = 0 AV_LOG_FATAL AVLogLevel = 8 AV_LOG_ERROR AVLogLevel = 16 AV_LOG_WARNING AVLogLevel = 24 AV_LOG_INFO AVLogLevel = 32 AV_LOG_VERBOSE AVLogLevel = 40 AV_LOG_DEBUG AVLogLevel = 48 AV_LOG_TRACE AVLogLevel = 56 )
func AVGetLogLevel ¶
func AVGetLogLevel() AVLogLevel
func (AVLogLevel) String ¶
func (v AVLogLevel) String() string
type AVMediaType ¶
type AVMediaType int
const ( AVMEDIA_TYPE_VIDEO AVMediaType = iota AVMEDIA_TYPE_AUDIO AVMEDIA_TYPE_DATA // Opaque data information usually continuous AVMEDIA_TYPE_SUBTITLE AVMEDIA_TYPE_ATTACHMENT // Opaque data information usually sparse AVMEDIA_TYPE_NB AVMEDIA_TYPE_UNKNOWN AVMediaType = -1 // Usually treated as AVMEDIA_TYPE_DATA )
func (AVMediaType) String ¶
func (v AVMediaType) String() string
type AVOutputFormat ¶
type AVOutputFormat C.struct_AVOutputFormat
func AllAudioOutputDevices ¶
func AllAudioOutputDevices() []*AVOutputFormat
func AllVideoOutputDevices ¶
func AllVideoOutputDevices() []*AVOutputFormat
func (*AVOutputFormat) Description ¶
func (this *AVOutputFormat) Description() string
func (*AVOutputFormat) Ext ¶
func (this *AVOutputFormat) Ext() string
func (*AVOutputFormat) Flags ¶
func (this *AVOutputFormat) Flags() AVFormatFlag
func (*AVOutputFormat) MimeType ¶
func (this *AVOutputFormat) MimeType() string
func (*AVOutputFormat) Name ¶
func (this *AVOutputFormat) Name() string
func (*AVOutputFormat) String ¶
func (this *AVOutputFormat) String() string
type AVPacket ¶
type AVPacket C.struct_AVPacket
func NewAVPacket ¶
func NewAVPacket() *AVPacket
NewAVPacket allocates an AVPacket and set its fields to default values
func (*AVPacket) Free ¶
func (this *AVPacket) Free()
Free AVPacket, if the packet is reference counted, it will be unreferenced first
type AVStream ¶
type AVStream C.struct_AVStream
func NewStream ¶
func NewStream(ctx *AVFormatContext, codec *AVCodec) *AVStream
func (*AVStream) AttachedPicture ¶
func (*AVStream) CodecPar ¶
func (this *AVStream) CodecPar() *AVCodecParameters
func (*AVStream) Disposition ¶
func (this *AVStream) Disposition() AVDisposition
func (*AVStream) Metadata ¶
func (this *AVStream) Metadata() *AVDictionary