astiav

package module
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 12 Imported by: 22

README

GoReportCard GoDoc Test Coveralls

astiav is a Golang library providing C bindings for ffmpeg

It's only compatible with ffmpeg n7.0.

Its main goals are to:

  • provide a better GO idiomatic API
    • standard error pattern
    • typed constants and flags
    • struct-based functions
    • ...
  • provide the GO version of ffmpeg examples
  • be fully tested

Examples

Examples are located in the examples directory and mirror as much as possible the ffmpeg examples.

name astiav ffmpeg
BitStream Filtering see X
Custom IO Demuxing see see
Custom IO Muxing see X
Demuxing/Decoding see see
Filtering see see
Frame data manipulation see X
Hardware Decoding/Filtering see see
Hardware Encoding see see
Remuxing see see
Resampling audio see see
Scaling video see see
Transcoding see see

Tip: you can use the video sample located in the testdata directory for your tests

Patterns

NB: errors are not checked below for readibility purposes, however you should!

First off, all use cases are different and it's impossible to provide patterns that work in every situation. That's why ffmpeg's doc or source code should be your ultimate source of truth regarding how to use this library. That's why all methods of this library have been documented with a link referencing the documentation of the C function they use.

However it's possible to give rules of thumb and patterns that fit most use cases and can kickstart most people. Here's a few of them:

When to call Alloc(), .Unref() and .Free()

Let's take the FormatContext.ReadFrame() pattern as an example. The pattern is similar with frames.

// You can allocate the packet once and reuse the same object in the for loop below
pkt := astiav.AllocPacket()

// However, once you're done using the packet, you need to make sure to free it
defer pkt.Free()

// Loop
for {
    // We'll use a closure to ease unreferencing the packet
    func() {
        // Read frame using the same packet every time
        formatContext.ReadFrame(pkt)

        // However make sure to unreference the packet once you're done with what 
        // have been "injected" by the .ReadFrame() method
        defer pkt.Unref()

        // Here you can do whatever you feel like with your packet
    }()
}

Breaking changes

You can see the list of breaking changes here.

Install ffmpeg from source

If you don't know how to install ffmpeg, you can use the following to install it from source:

$ make install-ffmpeg

ffmpeg will be built from source in a directory named tmp and located in you working directory

For your GO code to pick up ffmpeg dependency automatically, you'll need to add the following environment variables:

(don't forget to replace {{ path to your working directory }} with the absolute path to your working directory)

export CGO_LDFLAGS="-L{{ path to your working directory }}/tmp/n7.0/lib/",
export CGO_CFLAGS="-I{{ path to your working directory }}/tmp/n7.0/include/",
export PKG_CONFIG_PATH="{{ path to your working directory }}/tmp/n7.0/lib/pkgconfig",

Building on Windows

Building on Windows requires msys2 / mingw64 gcc toolchain. Read the Quickstart guide to install Msys2.

Once complete run the Mingw64 shell from the installation folder, run the below commands:

# Update Packages
pacman -Syu
# Install Requirements to Build
pacman -S --noconfirm --needed git diffutils mingw-w64-x86_64-toolchain pkg-config make yasm
# Clone the repository using git
git clone https://github.com/asticode/go-astiav
cd go-astiav

Then once you clone this repository, follow along the build instructions above.

Notes: For pkg-config use pkgconfiglite from choco. Remember to set CGO and PKG_CONFIG env vars properly to point to the folder where ffmpeg was built.

Why astiav?

After maintaining for several years the most starred fork of goav, I've decided to write from scratch my own C bindings to fix most of the problems I still encountered using goav.

Documentation

Overview

Code generated by astiav. DO NOT EDIT.

Index

Constants

View Source
const (
	BuffersinkFlagPeek      = BuffersinkFlag(C.AV_BUFFERSINK_FLAG_PEEK)
	BuffersinkFlagNoRequest = BuffersinkFlag(C.AV_BUFFERSINK_FLAG_NO_REQUEST)
)
View Source
const (
	BuffersrcFlagNoCheckFormat = BuffersrcFlag(C.AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT)
	BuffersrcFlagPush          = BuffersrcFlag(C.AV_BUFFERSRC_FLAG_PUSH)
	BuffersrcFlagKeepRef       = BuffersrcFlag(C.AV_BUFFERSRC_FLAG_KEEP_REF)
)
View Source
const (
	ChromaLocationUnspecified = ChromaLocation(C.AVCHROMA_LOC_UNSPECIFIED)
	ChromaLocationLeft        = ChromaLocation(C.AVCHROMA_LOC_LEFT)
	ChromaLocationCenter      = ChromaLocation(C.AVCHROMA_LOC_CENTER)
	ChromaLocationTopleft     = ChromaLocation(C.AVCHROMA_LOC_TOPLEFT)
	ChromaLocationTop         = ChromaLocation(C.AVCHROMA_LOC_TOP)
	ChromaLocationBottomleft  = ChromaLocation(C.AVCHROMA_LOC_BOTTOMLEFT)
	ChromaLocationBottom      = ChromaLocation(C.AVCHROMA_LOC_BOTTOM)
	ChromaLocationNb          = ChromaLocation(C.AVCHROMA_LOC_NB)
)
View Source
const (
	ClassCategoryBitstreamFilter   = ClassCategory(C.AV_CLASS_CATEGORY_BITSTREAM_FILTER)
	ClassCategoryDecoder           = ClassCategory(C.AV_CLASS_CATEGORY_DECODER)
	ClassCategoryDemuxer           = ClassCategory(C.AV_CLASS_CATEGORY_DEMUXER)
	ClassCategoryDeviceAudioInput  = ClassCategory(C.AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT)
	ClassCategoryDeviceAudioOutput = ClassCategory(C.AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT)
	ClassCategoryDeviceInput       = ClassCategory(C.AV_CLASS_CATEGORY_DEVICE_INPUT)
	ClassCategoryDeviceOutput      = ClassCategory(C.AV_CLASS_CATEGORY_DEVICE_OUTPUT)
	ClassCategoryDeviceVideoInput  = ClassCategory(C.AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT)
	ClassCategoryDeviceVideoOutput = ClassCategory(C.AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT)
	ClassCategoryEncoder           = ClassCategory(C.AV_CLASS_CATEGORY_ENCODER)
	ClassCategoryFilter            = ClassCategory(C.AV_CLASS_CATEGORY_FILTER)
	ClassCategoryInput             = ClassCategory(C.AV_CLASS_CATEGORY_INPUT)
	ClassCategoryMuxer             = ClassCategory(C.AV_CLASS_CATEGORY_MUXER)
	ClassCategoryNa                = ClassCategory(C.AV_CLASS_CATEGORY_NA)
	ClassCategoryNb                = ClassCategory(C.AV_CLASS_CATEGORY_NB)
	ClassCategoryOutput            = ClassCategory(C.AV_CLASS_CATEGORY_OUTPUT)
	ClassCategorySwresampler       = ClassCategory(C.AV_CLASS_CATEGORY_SWRESAMPLER)
	ClassCategorySwscaler          = ClassCategory(C.AV_CLASS_CATEGORY_SWSCALER)
)
View Source
const (
	CodecContextFlagUnaligned     = CodecContextFlag(C.AV_CODEC_FLAG_UNALIGNED)
	CodecContextFlagQscale        = CodecContextFlag(C.AV_CODEC_FLAG_QSCALE)
	CodecContextFlag4Mv           = CodecContextFlag(C.AV_CODEC_FLAG_4MV)
	CodecContextFlagOutputCorrupt = CodecContextFlag(C.AV_CODEC_FLAG_OUTPUT_CORRUPT)
	CodecContextFlagQpel          = CodecContextFlag(C.AV_CODEC_FLAG_QPEL)
	CodecContextFlagPass1         = CodecContextFlag(C.AV_CODEC_FLAG_PASS1)
	CodecContextFlagPass2         = CodecContextFlag(C.AV_CODEC_FLAG_PASS2)
	CodecContextFlagLoopFilter    = CodecContextFlag(C.AV_CODEC_FLAG_LOOP_FILTER)
	CodecContextFlagGray          = CodecContextFlag(C.AV_CODEC_FLAG_GRAY)
	CodecContextFlagPsnr          = CodecContextFlag(C.AV_CODEC_FLAG_PSNR)
	CodecContextFlagInterlacedDct = CodecContextFlag(C.AV_CODEC_FLAG_INTERLACED_DCT)
	CodecContextFlagLowDelay      = CodecContextFlag(C.AV_CODEC_FLAG_LOW_DELAY)
	CodecContextFlagGlobalHeader  = CodecContextFlag(C.AV_CODEC_FLAG_GLOBAL_HEADER)
	CodecContextFlagBitexact      = CodecContextFlag(C.AV_CODEC_FLAG_BITEXACT)
	CodecContextFlagAcPred        = CodecContextFlag(C.AV_CODEC_FLAG_AC_PRED)
	CodecContextFlagInterlacedMe  = CodecContextFlag(C.AV_CODEC_FLAG_INTERLACED_ME)
	CodecContextFlagClosedGop     = CodecContextFlag(C.AV_CODEC_FLAG_CLOSED_GOP)
)

https://ffmpeg.org/doxygen/7.0/group__lavc__core.html#ga1a6a486e686ab6c581ffffcb88cb31b3

View Source
const (
	CodecHardwareConfigMethodFlagAdHoc       = CodecHardwareConfigMethodFlag(C.AV_CODEC_HW_CONFIG_METHOD_AD_HOC)
	CodecHardwareConfigMethodFlagHwDeviceCtx = CodecHardwareConfigMethodFlag(C.AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX)
	CodecHardwareConfigMethodFlagHwFramesCtx = CodecHardwareConfigMethodFlag(C.AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX)
	CodecHardwareConfigMethodFlagInternal    = CodecHardwareConfigMethodFlag(C.AV_CODEC_HW_CONFIG_METHOD_INTERNAL)
)
View Source
const (
	CodecID012V                     = CodecID(C.AV_CODEC_ID_012V)
	CodecID4Xm                      = CodecID(C.AV_CODEC_ID_4XM)
	CodecID8Bps                     = CodecID(C.AV_CODEC_ID_8BPS)
	CodecID8SvxExp                  = CodecID(C.AV_CODEC_ID_8SVX_EXP)
	CodecID8SvxFib                  = CodecID(C.AV_CODEC_ID_8SVX_FIB)
	CodecIDA64Multi                 = CodecID(C.AV_CODEC_ID_A64_MULTI)
	CodecIDA64Multi5                = CodecID(C.AV_CODEC_ID_A64_MULTI5)
	CodecIDAac                      = CodecID(C.AV_CODEC_ID_AAC)
	CodecIDAacLatm                  = CodecID(C.AV_CODEC_ID_AAC_LATM)
	CodecIDAasc                     = CodecID(C.AV_CODEC_ID_AASC)
	CodecIDAc3                      = CodecID(C.AV_CODEC_ID_AC3)
	CodecIDAdpcm4Xm                 = CodecID(C.AV_CODEC_ID_ADPCM_4XM)
	CodecIDAdpcmAdx                 = CodecID(C.AV_CODEC_ID_ADPCM_ADX)
	CodecIDAdpcmAfc                 = CodecID(C.AV_CODEC_ID_ADPCM_AFC)
	CodecIDAdpcmCt                  = CodecID(C.AV_CODEC_ID_ADPCM_CT)
	CodecIDAdpcmDtk                 = CodecID(C.AV_CODEC_ID_ADPCM_DTK)
	CodecIDAdpcmEa                  = CodecID(C.AV_CODEC_ID_ADPCM_EA)
	CodecIDAdpcmEaMaxisXa           = CodecID(C.AV_CODEC_ID_ADPCM_EA_MAXIS_XA)
	CodecIDAdpcmEaR1                = CodecID(C.AV_CODEC_ID_ADPCM_EA_R1)
	CodecIDAdpcmEaR2                = CodecID(C.AV_CODEC_ID_ADPCM_EA_R2)
	CodecIDAdpcmEaR3                = CodecID(C.AV_CODEC_ID_ADPCM_EA_R3)
	CodecIDAdpcmEaXas               = CodecID(C.AV_CODEC_ID_ADPCM_EA_XAS)
	CodecIDAdpcmG722                = CodecID(C.AV_CODEC_ID_ADPCM_G722)
	CodecIDAdpcmG726                = CodecID(C.AV_CODEC_ID_ADPCM_G726)
	CodecIDAdpcmG726Le              = CodecID(C.AV_CODEC_ID_ADPCM_G726LE)
	CodecIDAdpcmImaAmv              = CodecID(C.AV_CODEC_ID_ADPCM_IMA_AMV)
	CodecIDAdpcmImaApc              = CodecID(C.AV_CODEC_ID_ADPCM_IMA_APC)
	CodecIDAdpcmImaDk3              = CodecID(C.AV_CODEC_ID_ADPCM_IMA_DK3)
	CodecIDAdpcmImaDk4              = CodecID(C.AV_CODEC_ID_ADPCM_IMA_DK4)
	CodecIDAdpcmImaEaEacs           = CodecID(C.AV_CODEC_ID_ADPCM_IMA_EA_EACS)
	CodecIDAdpcmImaEaSead           = CodecID(C.AV_CODEC_ID_ADPCM_IMA_EA_SEAD)
	CodecIDAdpcmImaIss              = CodecID(C.AV_CODEC_ID_ADPCM_IMA_ISS)
	CodecIDAdpcmImaOki              = CodecID(C.AV_CODEC_ID_ADPCM_IMA_OKI)
	CodecIDAdpcmImaQt               = CodecID(C.AV_CODEC_ID_ADPCM_IMA_QT)
	CodecIDAdpcmImaRad              = CodecID(C.AV_CODEC_ID_ADPCM_IMA_RAD)
	CodecIDAdpcmImaSmjpeg           = CodecID(C.AV_CODEC_ID_ADPCM_IMA_SMJPEG)
	CodecIDAdpcmImaWav              = CodecID(C.AV_CODEC_ID_ADPCM_IMA_WAV)
	CodecIDAdpcmImaWs               = CodecID(C.AV_CODEC_ID_ADPCM_IMA_WS)
	CodecIDAdpcmMs                  = CodecID(C.AV_CODEC_ID_ADPCM_MS)
	CodecIDAdpcmSbpro2              = CodecID(C.AV_CODEC_ID_ADPCM_SBPRO_2)
	CodecIDAdpcmSbpro3              = CodecID(C.AV_CODEC_ID_ADPCM_SBPRO_3)
	CodecIDAdpcmSbpro4              = CodecID(C.AV_CODEC_ID_ADPCM_SBPRO_4)
	CodecIDAdpcmSwf                 = CodecID(C.AV_CODEC_ID_ADPCM_SWF)
	CodecIDAdpcmThp                 = CodecID(C.AV_CODEC_ID_ADPCM_THP)
	CodecIDAdpcmVima                = CodecID(C.AV_CODEC_ID_ADPCM_VIMA)
	CodecIDAdpcmVimaDeprecated      = CodecID(C.AV_CODEC_ID_ADPCM_VIMA)
	CodecIDAdpcmXa                  = CodecID(C.AV_CODEC_ID_ADPCM_XA)
	CodecIDAdpcmYamaha              = CodecID(C.AV_CODEC_ID_ADPCM_YAMAHA)
	CodecIDAic                      = CodecID(C.AV_CODEC_ID_AIC)
	CodecIDAlac                     = CodecID(C.AV_CODEC_ID_ALAC)
	CodecIDAliasPix                 = CodecID(C.AV_CODEC_ID_ALIAS_PIX)
	CodecIDAmrNb                    = CodecID(C.AV_CODEC_ID_AMR_NB)
	CodecIDAmrWb                    = CodecID(C.AV_CODEC_ID_AMR_WB)
	CodecIDAmv                      = CodecID(C.AV_CODEC_ID_AMV)
	CodecIDAnm                      = CodecID(C.AV_CODEC_ID_ANM)
	CodecIDAnsi                     = CodecID(C.AV_CODEC_ID_ANSI)
	CodecIDApe                      = CodecID(C.AV_CODEC_ID_APE)
	CodecIDAss                      = CodecID(C.AV_CODEC_ID_ASS)
	CodecIDAsv1                     = CodecID(C.AV_CODEC_ID_ASV1)
	CodecIDAsv2                     = CodecID(C.AV_CODEC_ID_ASV2)
	CodecIDAtrac1                   = CodecID(C.AV_CODEC_ID_ATRAC1)
	CodecIDAtrac3                   = CodecID(C.AV_CODEC_ID_ATRAC3)
	CodecIDAtrac3P                  = CodecID(C.AV_CODEC_ID_ATRAC3P)
	CodecIDAura                     = CodecID(C.AV_CODEC_ID_AURA)
	CodecIDAura2                    = CodecID(C.AV_CODEC_ID_AURA2)
	CodecIDAvrn                     = CodecID(C.AV_CODEC_ID_AVRN)
	CodecIDAvrp                     = CodecID(C.AV_CODEC_ID_AVRP)
	CodecIDAvs                      = CodecID(C.AV_CODEC_ID_AVS)
	CodecIDAvui                     = CodecID(C.AV_CODEC_ID_AVUI)
	CodecIDBethsoftvid              = CodecID(C.AV_CODEC_ID_BETHSOFTVID)
	CodecIDBfi                      = CodecID(C.AV_CODEC_ID_BFI)
	CodecIDBinData                  = CodecID(C.AV_CODEC_ID_BIN_DATA)
	CodecIDBinkaudioDct             = CodecID(C.AV_CODEC_ID_BINKAUDIO_DCT)
	CodecIDBinkaudioRdft            = CodecID(C.AV_CODEC_ID_BINKAUDIO_RDFT)
	CodecIDBinkvideo                = CodecID(C.AV_CODEC_ID_BINKVIDEO)
	CodecIDBCodecIDext              = CodecID(C.AV_CODEC_ID_BINTEXT)
	CodecIDBmp                      = CodecID(C.AV_CODEC_ID_BMP)
	CodecIDBmvAudio                 = CodecID(C.AV_CODEC_ID_BMV_AUDIO)
	CodecIDBmvVideo                 = CodecID(C.AV_CODEC_ID_BMV_VIDEO)
	CodecIDBrenderPix               = CodecID(C.AV_CODEC_ID_BRENDER_PIX)
	CodecIDBrenderPixDeprecated     = CodecID(C.AV_CODEC_ID_BRENDER_PIX)
	CodecIDC93                      = CodecID(C.AV_CODEC_ID_C93)
	CodecIDCavs                     = CodecID(C.AV_CODEC_ID_CAVS)
	CodecIDCdgraphics               = CodecID(C.AV_CODEC_ID_CDGRAPHICS)
	CodecIDCdxl                     = CodecID(C.AV_CODEC_ID_CDXL)
	CodecIDCelt                     = CodecID(C.AV_CODEC_ID_CELT)
	CodecIDCinepak                  = CodecID(C.AV_CODEC_ID_CINEPAK)
	CodecIDCljr                     = CodecID(C.AV_CODEC_ID_CLJR)
	CodecIDCllc                     = CodecID(C.AV_CODEC_ID_CLLC)
	CodecIDCmv                      = CodecID(C.AV_CODEC_ID_CMV)
	CodecIDComfortNoise             = CodecID(C.AV_CODEC_ID_COMFORT_NOISE)
	CodecIDCook                     = CodecID(C.AV_CODEC_ID_COOK)
	CodecIDCpia                     = CodecID(C.AV_CODEC_ID_CPIA)
	CodecIDCscd                     = CodecID(C.AV_CODEC_ID_CSCD)
	CodecIDCyuv                     = CodecID(C.AV_CODEC_ID_CYUV)
	CodecIDDfa                      = CodecID(C.AV_CODEC_ID_DFA)
	CodecIDDirac                    = CodecID(C.AV_CODEC_ID_DIRAC)
	CodecIDDnxhd                    = CodecID(C.AV_CODEC_ID_DNXHD)
	CodecIDDpx                      = CodecID(C.AV_CODEC_ID_DPX)
	CodecIDDsdLsbf                  = CodecID(C.AV_CODEC_ID_DSD_LSBF)
	CodecIDDsdLsbfPlanar            = CodecID(C.AV_CODEC_ID_DSD_LSBF_PLANAR)
	CodecIDDsdMsbf                  = CodecID(C.AV_CODEC_ID_DSD_MSBF)
	CodecIDDsdMsbfPlanar            = CodecID(C.AV_CODEC_ID_DSD_MSBF_PLANAR)
	CodecIDDsicinaudio              = CodecID(C.AV_CODEC_ID_DSICINAUDIO)
	CodecIDDsicinvideo              = CodecID(C.AV_CODEC_ID_DSICINVIDEO)
	CodecIDDts                      = CodecID(C.AV_CODEC_ID_DTS)
	CodecIDDvaudio                  = CodecID(C.AV_CODEC_ID_DVAUDIO)
	CodecIDDvbSubtitle              = CodecID(C.AV_CODEC_ID_DVB_SUBTITLE)
	CodecIDDvbTeletext              = CodecID(C.AV_CODEC_ID_DVB_TELETEXT)
	CodecIDDvdNav                   = CodecID(C.AV_CODEC_ID_DVD_NAV)
	CodecIDDvdSubtitle              = CodecID(C.AV_CODEC_ID_DVD_SUBTITLE)
	CodecIDDvvideo                  = CodecID(C.AV_CODEC_ID_DVVIDEO)
	CodecIDDxa                      = CodecID(C.AV_CODEC_ID_DXA)
	CodecIDDxtory                   = CodecID(C.AV_CODEC_ID_DXTORY)
	CodecIDEac3                     = CodecID(C.AV_CODEC_ID_EAC3)
	CodecIDEia608                   = CodecID(C.AV_CODEC_ID_EIA_608)
	CodecIDEscape124                = CodecID(C.AV_CODEC_ID_ESCAPE124)
	CodecIDEscape130                = CodecID(C.AV_CODEC_ID_ESCAPE130)
	CodecIDEscape130Deprecated      = CodecID(C.AV_CODEC_ID_ESCAPE130)
	CodecIDEvrc                     = CodecID(C.AV_CODEC_ID_EVRC)
	CodecIDExr                      = CodecID(C.AV_CODEC_ID_EXR)
	CodecIDExrDeprecated            = CodecID(C.AV_CODEC_ID_EXR)
	CodecIDFfmetadata               = CodecID(C.AV_CODEC_ID_FFMETADATA)
	CodecIDFfv1                     = CodecID(C.AV_CODEC_ID_FFV1)
	CodecIDFfvhuff                  = CodecID(C.AV_CODEC_ID_FFVHUFF)
	CodecIDFfwavesynth              = CodecID(C.AV_CODEC_ID_FFWAVESYNTH)
	CodecIDFic                      = CodecID(C.AV_CODEC_ID_FIC)
	CodecIDFirstAudio               = CodecID(C.AV_CODEC_ID_FIRST_AUDIO)
	CodecIDFirstSubtitle            = CodecID(C.AV_CODEC_ID_FIRST_SUBTITLE)
	CodecIDFirstUnknown             = CodecID(C.AV_CODEC_ID_FIRST_UNKNOWN)
	CodecIDFlac                     = CodecID(C.AV_CODEC_ID_FLAC)
	CodecIDFlashsv                  = CodecID(C.AV_CODEC_ID_FLASHSV)
	CodecIDFlashsv2                 = CodecID(C.AV_CODEC_ID_FLASHSV2)
	CodecIDFlic                     = CodecID(C.AV_CODEC_ID_FLIC)
	CodecIDFlv1                     = CodecID(C.AV_CODEC_ID_FLV1)
	CodecIDFraps                    = CodecID(C.AV_CODEC_ID_FRAPS)
	CodecIDFrwu                     = CodecID(C.AV_CODEC_ID_FRWU)
	CodecIDG2M                      = CodecID(C.AV_CODEC_ID_G2M)
	CodecIDG2MDeprecated            = CodecID(C.AV_CODEC_ID_G2M)
	CodecIDG7231                    = CodecID(C.AV_CODEC_ID_G723_1)
	CodecIDG729                     = CodecID(C.AV_CODEC_ID_G729)
	CodecIDGif                      = CodecID(C.AV_CODEC_ID_GIF)
	CodecIDGsm                      = CodecID(C.AV_CODEC_ID_GSM)
	CodecIDGsmMs                    = CodecID(C.AV_CODEC_ID_GSM_MS)
	CodecIDH261                     = CodecID(C.AV_CODEC_ID_H261)
	CodecIDH263                     = CodecID(C.AV_CODEC_ID_H263)
	CodecIDH263I                    = CodecID(C.AV_CODEC_ID_H263I)
	CodecIDH263P                    = CodecID(C.AV_CODEC_ID_H263P)
	CodecIDH264                     = CodecID(C.AV_CODEC_ID_H264)
	CodecIDH265                     = CodecID(C.AV_CODEC_ID_H265)
	CodecIDHdmvPgsSubtitle          = CodecID(C.AV_CODEC_ID_HDMV_PGS_SUBTITLE)
	CodecIDHevc                     = CodecID(C.AV_CODEC_ID_HEVC)
	CodecIDHevcDeprecated           = CodecID(C.AV_CODEC_ID_HEVC)
	CodecIDHnm4Video                = CodecID(C.AV_CODEC_ID_HNM4_VIDEO)
	CodecIDHuffyuv                  = CodecID(C.AV_CODEC_ID_HUFFYUV)
	CodecIDIac                      = CodecID(C.AV_CODEC_ID_IAC)
	CodecIDIdcin                    = CodecID(C.AV_CODEC_ID_IDCIN)
	CodecIDIdf                      = CodecID(C.AV_CODEC_ID_IDF)
	CodecIDIffByterun1              = CodecID(C.AV_CODEC_ID_IFF_BYTERUN1)
	CodecIDIffIlbm                  = CodecID(C.AV_CODEC_ID_IFF_ILBM)
	CodecIDIlbc                     = CodecID(C.AV_CODEC_ID_ILBC)
	CodecIDImc                      = CodecID(C.AV_CODEC_ID_IMC)
	CodecIDIndeo2                   = CodecID(C.AV_CODEC_ID_INDEO2)
	CodecIDIndeo3                   = CodecID(C.AV_CODEC_ID_INDEO3)
	CodecIDIndeo4                   = CodecID(C.AV_CODEC_ID_INDEO4)
	CodecIDIndeo5                   = CodecID(C.AV_CODEC_ID_INDEO5)
	CodecIDInterplayDpcm            = CodecID(C.AV_CODEC_ID_INTERPLAY_DPCM)
	CodecIDInterplayVideo           = CodecID(C.AV_CODEC_ID_INTERPLAY_VIDEO)
	CodecIDJacosub                  = CodecID(C.AV_CODEC_ID_JACOSUB)
	CodecIDJpeg2000                 = CodecID(C.AV_CODEC_ID_JPEG2000)
	CodecIDJpegls                   = CodecID(C.AV_CODEC_ID_JPEGLS)
	CodecIDJv                       = CodecID(C.AV_CODEC_ID_JV)
	CodecIDKgv1                     = CodecID(C.AV_CODEC_ID_KGV1)
	CodecIDKmvc                     = CodecID(C.AV_CODEC_ID_KMVC)
	CodecIDLagarith                 = CodecID(C.AV_CODEC_ID_LAGARITH)
	CodecIDLjpeg                    = CodecID(C.AV_CODEC_ID_LJPEG)
	CodecIDLoco                     = CodecID(C.AV_CODEC_ID_LOCO)
	CodecIDMace3                    = CodecID(C.AV_CODEC_ID_MACE3)
	CodecIDMace6                    = CodecID(C.AV_CODEC_ID_MACE6)
	CodecIDMad                      = CodecID(C.AV_CODEC_ID_MAD)
	CodecIDMdec                     = CodecID(C.AV_CODEC_ID_MDEC)
	CodecIDMetasound                = CodecID(C.AV_CODEC_ID_METASOUND)
	CodecIDMicrodvd                 = CodecID(C.AV_CODEC_ID_MICRODVD)
	CodecIDMimic                    = CodecID(C.AV_CODEC_ID_MIMIC)
	CodecIDMjpeg                    = CodecID(C.AV_CODEC_ID_MJPEG)
	CodecIDMjpegb                   = CodecID(C.AV_CODEC_ID_MJPEGB)
	CodecIDMlp                      = CodecID(C.AV_CODEC_ID_MLP)
	CodecIDMmvideo                  = CodecID(C.AV_CODEC_ID_MMVIDEO)
	CodecIDMotionpixels             = CodecID(C.AV_CODEC_ID_MOTIONPIXELS)
	CodecIDMovText                  = CodecID(C.AV_CODEC_ID_MOV_TEXT)
	CodecIDMp1                      = CodecID(C.AV_CODEC_ID_MP1)
	CodecIDMp2                      = CodecID(C.AV_CODEC_ID_MP2)
	CodecIDMp3                      = CodecID(C.AV_CODEC_ID_MP3)
	CodecIDMp3Adu                   = CodecID(C.AV_CODEC_ID_MP3ADU)
	CodecIDMp3On4                   = CodecID(C.AV_CODEC_ID_MP3ON4)
	CodecIDMp4Als                   = CodecID(C.AV_CODEC_ID_MP4ALS)
	CodecIDMpeg1Video               = CodecID(C.AV_CODEC_ID_MPEG1VIDEO)
	CodecIDMpeg2Ts                  = CodecID(C.AV_CODEC_ID_MPEG2TS)
	CodecIDMpeg2Video               = CodecID(C.AV_CODEC_ID_MPEG2VIDEO)
	CodecIDMpeg4                    = CodecID(C.AV_CODEC_ID_MPEG4)
	CodecIDMpeg4Systems             = CodecID(C.AV_CODEC_ID_MPEG4SYSTEMS)
	CodecIDMpl2                     = CodecID(C.AV_CODEC_ID_MPL2)
	CodecIDMsa1                     = CodecID(C.AV_CODEC_ID_MSA1)
	CodecIDMsmpeg4V1                = CodecID(C.AV_CODEC_ID_MSMPEG4V1)
	CodecIDMsmpeg4V2                = CodecID(C.AV_CODEC_ID_MSMPEG4V2)
	CodecIDMsmpeg4V3                = CodecID(C.AV_CODEC_ID_MSMPEG4V3)
	CodecIDMsrle                    = CodecID(C.AV_CODEC_ID_MSRLE)
	CodecIDMss1                     = CodecID(C.AV_CODEC_ID_MSS1)
	CodecIDMss2                     = CodecID(C.AV_CODEC_ID_MSS2)
	CodecIDMsvideo1                 = CodecID(C.AV_CODEC_ID_MSVIDEO1)
	CodecIDMszh                     = CodecID(C.AV_CODEC_ID_MSZH)
	CodecIDMts2                     = CodecID(C.AV_CODEC_ID_MTS2)
	CodecIDMusepack7                = CodecID(C.AV_CODEC_ID_MUSEPACK7)
	CodecIDMusepack8                = CodecID(C.AV_CODEC_ID_MUSEPACK8)
	CodecIDMvc1                     = CodecID(C.AV_CODEC_ID_MVC1)
	CodecIDMvc1Deprecated           = CodecID(C.AV_CODEC_ID_MVC1)
	CodecIDMvc2                     = CodecID(C.AV_CODEC_ID_MVC2)
	CodecIDMvc2Deprecated           = CodecID(C.AV_CODEC_ID_MVC2)
	CodecIDMxpeg                    = CodecID(C.AV_CODEC_ID_MXPEG)
	CodecIDNellymoser               = CodecID(C.AV_CODEC_ID_NELLYMOSER)
	CodecIDNone                     = CodecID(C.AV_CODEC_ID_NONE)
	CodecIDNuv                      = CodecID(C.AV_CODEC_ID_NUV)
	CodecIDOn2Avc                   = CodecID(C.AV_CODEC_ID_ON2AVC)
	CodecIDOpus                     = CodecID(C.AV_CODEC_ID_OPUS)
	CodecIDOpusDeprecated           = CodecID(C.AV_CODEC_ID_OPUS)
	CodecIDOtf                      = CodecID(C.AV_CODEC_ID_OTF)
	CodecIDPafAudio                 = CodecID(C.AV_CODEC_ID_PAF_AUDIO)
	CodecIDPafAudioDeprecated       = CodecID(C.AV_CODEC_ID_PAF_AUDIO)
	CodecIDPafVideo                 = CodecID(C.AV_CODEC_ID_PAF_VIDEO)
	CodecIDPafVideoDeprecated       = CodecID(C.AV_CODEC_ID_PAF_VIDEO)
	CodecIDPam                      = CodecID(C.AV_CODEC_ID_PAM)
	CodecIDPbm                      = CodecID(C.AV_CODEC_ID_PBM)
	CodecIDPcmAlaw                  = CodecID(C.AV_CODEC_ID_PCM_ALAW)
	CodecIDPcmBluray                = CodecID(C.AV_CODEC_ID_PCM_BLURAY)
	CodecIDPcmDvd                   = CodecID(C.AV_CODEC_ID_PCM_DVD)
	CodecIDPcmF32Be                 = CodecID(C.AV_CODEC_ID_PCM_F32BE)
	CodecIDPcmF32Le                 = CodecID(C.AV_CODEC_ID_PCM_F32LE)
	CodecIDPcmF64Be                 = CodecID(C.AV_CODEC_ID_PCM_F64BE)
	CodecIDPcmF64Le                 = CodecID(C.AV_CODEC_ID_PCM_F64LE)
	CodecIDPcmLxf                   = CodecID(C.AV_CODEC_ID_PCM_LXF)
	CodecIDPcmMulaw                 = CodecID(C.AV_CODEC_ID_PCM_MULAW)
	CodecIDPcmS16Be                 = CodecID(C.AV_CODEC_ID_PCM_S16BE)
	CodecIDPcmS16BePlanar           = CodecID(C.AV_CODEC_ID_PCM_S16BE_PLANAR)
	CodecIDPcmS16Le                 = CodecID(C.AV_CODEC_ID_PCM_S16LE)
	CodecIDPcmS16LePlanar           = CodecID(C.AV_CODEC_ID_PCM_S16LE_PLANAR)
	CodecIDPcmS24Be                 = CodecID(C.AV_CODEC_ID_PCM_S24BE)
	CodecIDPcmS24Daud               = CodecID(C.AV_CODEC_ID_PCM_S24DAUD)
	CodecIDPcmS24Le                 = CodecID(C.AV_CODEC_ID_PCM_S24LE)
	CodecIDPcmS24LePlanar           = CodecID(C.AV_CODEC_ID_PCM_S24LE_PLANAR)
	CodecIDPcmS24LePlanarDeprecated = CodecID(C.AV_CODEC_ID_PCM_S24LE_PLANAR)
	CodecIDPcmS32Be                 = CodecID(C.AV_CODEC_ID_PCM_S32BE)
	CodecIDPcmS32Le                 = CodecID(C.AV_CODEC_ID_PCM_S32LE)
	CodecIDPcmS32LePlanar           = CodecID(C.AV_CODEC_ID_PCM_S32LE_PLANAR)
	CodecIDPcmS32LePlanarDeprecated = CodecID(C.AV_CODEC_ID_PCM_S32LE_PLANAR)
	CodecIDPcmS8                    = CodecID(C.AV_CODEC_ID_PCM_S8)
	CodecIDPcmS8Planar              = CodecID(C.AV_CODEC_ID_PCM_S8_PLANAR)
	CodecIDPcmU16Be                 = CodecID(C.AV_CODEC_ID_PCM_U16BE)
	CodecIDPcmU16Le                 = CodecID(C.AV_CODEC_ID_PCM_U16LE)
	CodecIDPcmU24Be                 = CodecID(C.AV_CODEC_ID_PCM_U24BE)
	CodecIDPcmU24Le                 = CodecID(C.AV_CODEC_ID_PCM_U24LE)
	CodecIDPcmU32Be                 = CodecID(C.AV_CODEC_ID_PCM_U32BE)
	CodecIDPcmU32Le                 = CodecID(C.AV_CODEC_ID_PCM_U32LE)
	CodecIDPcmU8                    = CodecID(C.AV_CODEC_ID_PCM_U8)
	CodecIDPcmZork                  = CodecID(C.AV_CODEC_ID_PCM_ZORK)
	CodecIDPcx                      = CodecID(C.AV_CODEC_ID_PCX)
	CodecIDPgm                      = CodecID(C.AV_CODEC_ID_PGM)
	CodecIDPgmyuv                   = CodecID(C.AV_CODEC_ID_PGMYUV)
	CodecIDPictor                   = CodecID(C.AV_CODEC_ID_PICTOR)
	CodecIDPjs                      = CodecID(C.AV_CODEC_ID_PJS)
	CodecIDPng                      = CodecID(C.AV_CODEC_ID_PNG)
	CodecIDPpm                      = CodecID(C.AV_CODEC_ID_PPM)
	CodecIDProbe                    = CodecID(C.AV_CODEC_ID_PROBE)
	CodecIDProres                   = CodecID(C.AV_CODEC_ID_PRORES)
	CodecIDPtx                      = CodecID(C.AV_CODEC_ID_PTX)
	CodecIDQcelp                    = CodecID(C.AV_CODEC_ID_QCELP)
	CodecIDQdm2                     = CodecID(C.AV_CODEC_ID_QDM2)
	CodecIDQdmc                     = CodecID(C.AV_CODEC_ID_QDMC)
	CodecIDQdraw                    = CodecID(C.AV_CODEC_ID_QDRAW)
	CodecIDQpeg                     = CodecID(C.AV_CODEC_ID_QPEG)
	CodecIDQtrle                    = CodecID(C.AV_CODEC_ID_QTRLE)
	CodecIDR10K                     = CodecID(C.AV_CODEC_ID_R10K)
	CodecIDR210                     = CodecID(C.AV_CODEC_ID_R210)
	CodecIDRa144                    = CodecID(C.AV_CODEC_ID_RA_144)
	CodecIDRa288                    = CodecID(C.AV_CODEC_ID_RA_288)
	CodecIDRalf                     = CodecID(C.AV_CODEC_ID_RALF)
	CodecIDRawvideo                 = CodecID(C.AV_CODEC_ID_RAWVIDEO)
	CodecIDRealtext                 = CodecID(C.AV_CODEC_ID_REALTEXT)
	CodecIDRl2                      = CodecID(C.AV_CODEC_ID_RL2)
	CodecIDRoq                      = CodecID(C.AV_CODEC_ID_ROQ)
	CodecIDRoqDpcm                  = CodecID(C.AV_CODEC_ID_ROQ_DPCM)
	CodecIDRpza                     = CodecID(C.AV_CODEC_ID_RPZA)
	CodecIDRv10                     = CodecID(C.AV_CODEC_ID_RV10)
	CodecIDRv20                     = CodecID(C.AV_CODEC_ID_RV20)
	CodecIDRv30                     = CodecID(C.AV_CODEC_ID_RV30)
	CodecIDRv40                     = CodecID(C.AV_CODEC_ID_RV40)
	CodecIDS302M                    = CodecID(C.AV_CODEC_ID_S302M)
	CodecIDSami                     = CodecID(C.AV_CODEC_ID_SAMI)
	CodecIDSanm                     = CodecID(C.AV_CODEC_ID_SANM)
	CodecIDSanmDeprecated           = CodecID(C.AV_CODEC_ID_SANM)
	CodecIDSgi                      = CodecID(C.AV_CODEC_ID_SGI)
	CodecIDSgirle                   = CodecID(C.AV_CODEC_ID_SGIRLE)
	CodecIDSgirleDeprecated         = CodecID(C.AV_CODEC_ID_SGIRLE)
	CodecIDShorten                  = CodecID(C.AV_CODEC_ID_SHORTEN)
	CodecIDSipr                     = CodecID(C.AV_CODEC_ID_SIPR)
	CodecIDSmackaudio               = CodecID(C.AV_CODEC_ID_SMACKAUDIO)
	CodecIDSmackvideo               = CodecID(C.AV_CODEC_ID_SMACKVIDEO)
	CodecIDSmc                      = CodecID(C.AV_CODEC_ID_SMC)
	CodecIDSmpteKlv                 = CodecID(C.AV_CODEC_ID_SMPTE_KLV)
	CodecIDSmv                      = CodecID(C.AV_CODEC_ID_SMV)
	CodecIDSmvjpeg                  = CodecID(C.AV_CODEC_ID_SMVJPEG)
	CodecIDSnow                     = CodecID(C.AV_CODEC_ID_SNOW)
	CodecIDSolDpcm                  = CodecID(C.AV_CODEC_ID_SOL_DPCM)
	CodecIDSonic                    = CodecID(C.AV_CODEC_ID_SONIC)
	CodecIDSonicLs                  = CodecID(C.AV_CODEC_ID_SONIC_LS)
	CodecIDSp5X                     = CodecID(C.AV_CODEC_ID_SP5X)
	CodecIDSpeex                    = CodecID(C.AV_CODEC_ID_SPEEX)
	CodecIDSrt                      = CodecID(C.AV_CODEC_ID_SRT)
	CodecIDSsa                      = CodecID(C.AV_CODEC_ID_SSA)
	CodecIDSubrip                   = CodecID(C.AV_CODEC_ID_SUBRIP)
	CodecIDSubviewer                = CodecID(C.AV_CODEC_ID_SUBVIEWER)
	CodecIDSubviewer1               = CodecID(C.AV_CODEC_ID_SUBVIEWER1)
	CodecIDSunrast                  = CodecID(C.AV_CODEC_ID_SUNRAST)
	CodecIDSvq1                     = CodecID(C.AV_CODEC_ID_SVQ1)
	CodecIDSvq3                     = CodecID(C.AV_CODEC_ID_SVQ3)
	CodecIDTak                      = CodecID(C.AV_CODEC_ID_TAK)
	CodecIDTakDeprecated            = CodecID(C.AV_CODEC_ID_TAK)
	CodecIDTarga                    = CodecID(C.AV_CODEC_ID_TARGA)
	CodecIDTargaY216                = CodecID(C.AV_CODEC_ID_TARGA_Y216)
	CodecIDText                     = CodecID(C.AV_CODEC_ID_TEXT)
	CodecIDTgq                      = CodecID(C.AV_CODEC_ID_TGQ)
	CodecIDTgv                      = CodecID(C.AV_CODEC_ID_TGV)
	CodecIDTheora                   = CodecID(C.AV_CODEC_ID_THEORA)
	CodecIDThp                      = CodecID(C.AV_CODEC_ID_THP)
	CodecIDTiertexseqvideo          = CodecID(C.AV_CODEC_ID_TIERTEXSEQVIDEO)
	CodecIDTiff                     = CodecID(C.AV_CODEC_ID_TIFF)
	CodecIDTimedId3                 = CodecID(C.AV_CODEC_ID_TIMED_ID3)
	CodecIDTmv                      = CodecID(C.AV_CODEC_ID_TMV)
	CodecIDTqi                      = CodecID(C.AV_CODEC_ID_TQI)
	CodecIDTruehd                   = CodecID(C.AV_CODEC_ID_TRUEHD)
	CodecIDTruemotion1              = CodecID(C.AV_CODEC_ID_TRUEMOTION1)
	CodecIDTruemotion2              = CodecID(C.AV_CODEC_ID_TRUEMOTION2)
	CodecIDTruespeech               = CodecID(C.AV_CODEC_ID_TRUESPEECH)
	CodecIDTscc                     = CodecID(C.AV_CODEC_ID_TSCC)
	CodecIDTscc2                    = CodecID(C.AV_CODEC_ID_TSCC2)
	CodecIDTta                      = CodecID(C.AV_CODEC_ID_TTA)
	CodecIDTtf                      = CodecID(C.AV_CODEC_ID_TTF)
	CodecIDTwinvq                   = CodecID(C.AV_CODEC_ID_TWINVQ)
	CodecIDTxd                      = CodecID(C.AV_CODEC_ID_TXD)
	CodecIDUlti                     = CodecID(C.AV_CODEC_ID_ULTI)
	CodecIDUtvideo                  = CodecID(C.AV_CODEC_ID_UTVIDEO)
	CodecIDV210                     = CodecID(C.AV_CODEC_ID_V210)
	CodecIDV210X                    = CodecID(C.AV_CODEC_ID_V210X)
	CodecIDV308                     = CodecID(C.AV_CODEC_ID_V308)
	CodecIDV408                     = CodecID(C.AV_CODEC_ID_V408)
	CodecIDV410                     = CodecID(C.AV_CODEC_ID_V410)
	CodecIDVb                       = CodecID(C.AV_CODEC_ID_VB)
	CodecIDVble                     = CodecID(C.AV_CODEC_ID_VBLE)
	CodecIDVc1                      = CodecID(C.AV_CODEC_ID_VC1)
	CodecIDVc1Image                 = CodecID(C.AV_CODEC_ID_VC1IMAGE)
	CodecIDVcr1                     = CodecID(C.AV_CODEC_ID_VCR1)
	CodecIDVixl                     = CodecID(C.AV_CODEC_ID_VIXL)
	CodecIDVmdaudio                 = CodecID(C.AV_CODEC_ID_VMDAUDIO)
	CodecIDVmdvideo                 = CodecID(C.AV_CODEC_ID_VMDVIDEO)
	CodecIDVmnc                     = CodecID(C.AV_CODEC_ID_VMNC)
	CodecIDVorbis                   = CodecID(C.AV_CODEC_ID_VORBIS)
	CodecIDVp3                      = CodecID(C.AV_CODEC_ID_VP3)
	CodecIDVp5                      = CodecID(C.AV_CODEC_ID_VP5)
	CodecIDVp6                      = CodecID(C.AV_CODEC_ID_VP6)
	CodecIDVp6A                     = CodecID(C.AV_CODEC_ID_VP6A)
	CodecIDVp6F                     = CodecID(C.AV_CODEC_ID_VP6F)
	CodecIDVp7                      = CodecID(C.AV_CODEC_ID_VP7)
	CodecIDVp7Deprecated            = CodecID(C.AV_CODEC_ID_VP7)
	CodecIDVp8                      = CodecID(C.AV_CODEC_ID_VP8)
	CodecIDVp9                      = CodecID(C.AV_CODEC_ID_VP9)
	CodecIDVplayer                  = CodecID(C.AV_CODEC_ID_VPLAYER)
	CodecIDWavpack                  = CodecID(C.AV_CODEC_ID_WAVPACK)
	CodecIDWebp                     = CodecID(C.AV_CODEC_ID_WEBP)
	CodecIDWebpDeprecated           = CodecID(C.AV_CODEC_ID_WEBP)
	CodecIDWebvtt                   = CodecID(C.AV_CODEC_ID_WEBVTT)
	CodecIDWestwoodSnd1             = CodecID(C.AV_CODEC_ID_WESTWOOD_SND1)
	CodecIDWmalossless              = CodecID(C.AV_CODEC_ID_WMALOSSLESS)
	CodecIDWmapro                   = CodecID(C.AV_CODEC_ID_WMAPRO)
	CodecIDWmav1                    = CodecID(C.AV_CODEC_ID_WMAV1)
	CodecIDWmav2                    = CodecID(C.AV_CODEC_ID_WMAV2)
	CodecIDWmavoice                 = CodecID(C.AV_CODEC_ID_WMAVOICE)
	CodecIDWmv1                     = CodecID(C.AV_CODEC_ID_WMV1)
	CodecIDWmv2                     = CodecID(C.AV_CODEC_ID_WMV2)
	CodecIDWmv3                     = CodecID(C.AV_CODEC_ID_WMV3)
	CodecIDWmv3Image                = CodecID(C.AV_CODEC_ID_WMV3IMAGE)
	CodecIDWnv1                     = CodecID(C.AV_CODEC_ID_WNV1)
	CodecIDWsVqa                    = CodecID(C.AV_CODEC_ID_WS_VQA)
	CodecIDXanDpcm                  = CodecID(C.AV_CODEC_ID_XAN_DPCM)
	CodecIDXanWc3                   = CodecID(C.AV_CODEC_ID_XAN_WC3)
	CodecIDXanWc4                   = CodecID(C.AV_CODEC_ID_XAN_WC4)
	CodecIDXbin                     = CodecID(C.AV_CODEC_ID_XBIN)
	CodecIDXbm                      = CodecID(C.AV_CODEC_ID_XBM)
	CodecIDXface                    = CodecID(C.AV_CODEC_ID_XFACE)
	CodecIDXsub                     = CodecID(C.AV_CODEC_ID_XSUB)
	CodecIDXwd                      = CodecID(C.AV_CODEC_ID_XWD)
	CodecIDY41P                     = CodecID(C.AV_CODEC_ID_Y41P)
	CodecIDYop                      = CodecID(C.AV_CODEC_ID_YOP)
	CodecIDYuv4                     = CodecID(C.AV_CODEC_ID_YUV4)
	CodecIDZerocodec                = CodecID(C.AV_CODEC_ID_ZEROCODEC)
	CodecIDZlib                     = CodecID(C.AV_CODEC_ID_ZLIB)
	CodecIDZmbv                     = CodecID(C.AV_CODEC_ID_ZMBV)
)
View Source
const (
	ColorPrimariesReserved0   = ColorPrimaries(C.AVCOL_PRI_RESERVED0)
	ColorPrimariesBt709       = ColorPrimaries(C.AVCOL_PRI_BT709)
	ColorPrimariesUnspecified = ColorPrimaries(C.AVCOL_PRI_UNSPECIFIED)
	ColorPrimariesReserved    = ColorPrimaries(C.AVCOL_PRI_RESERVED)
	ColorPrimariesBt470M      = ColorPrimaries(C.AVCOL_PRI_BT470M)
	ColorPrimariesBt470Bg     = ColorPrimaries(C.AVCOL_PRI_BT470BG)
	ColorPrimariesSmpte170M   = ColorPrimaries(C.AVCOL_PRI_SMPTE170M)
	ColorPrimariesSmpte240M   = ColorPrimaries(C.AVCOL_PRI_SMPTE240M)
	ColorPrimariesFilm        = ColorPrimaries(C.AVCOL_PRI_FILM)
	ColorPrimariesBt2020      = ColorPrimaries(C.AVCOL_PRI_BT2020)
	ColorPrimariesSmpte428    = ColorPrimaries(C.AVCOL_PRI_SMPTE428)
	ColorPrimariesSmptest4281 = ColorPrimaries(C.AVCOL_PRI_SMPTEST428_1)
	ColorPrimariesSmpte431    = ColorPrimaries(C.AVCOL_PRI_SMPTE431)
	ColorPrimariesSmpte432    = ColorPrimaries(C.AVCOL_PRI_SMPTE432)
	ColorPrimariesJedecP22    = ColorPrimaries(C.AVCOL_PRI_JEDEC_P22)
	ColorPrimariesNb          = ColorPrimaries(C.AVCOL_PRI_NB)
)
View Source
const (
	ColorRangeUnspecified = ColorRange(C.AVCOL_RANGE_UNSPECIFIED)
	ColorRangeMpeg        = ColorRange(C.AVCOL_RANGE_MPEG)
	ColorRangeJpeg        = ColorRange(C.AVCOL_RANGE_JPEG)
	ColorRangeNb          = ColorRange(C.AVCOL_RANGE_NB)
)
View Source
const (
	ColorSpaceRgb              = ColorSpace(C.AVCOL_SPC_RGB)
	ColorSpaceBt709            = ColorSpace(C.AVCOL_SPC_BT709)
	ColorSpaceUnspecified      = ColorSpace(C.AVCOL_SPC_UNSPECIFIED)
	ColorSpaceReserved         = ColorSpace(C.AVCOL_SPC_RESERVED)
	ColorSpaceFcc              = ColorSpace(C.AVCOL_SPC_FCC)
	ColorSpaceBt470Bg          = ColorSpace(C.AVCOL_SPC_BT470BG)
	ColorSpaceSmpte170M        = ColorSpace(C.AVCOL_SPC_SMPTE170M)
	ColorSpaceSmpte240M        = ColorSpace(C.AVCOL_SPC_SMPTE240M)
	ColorSpaceYcgco            = ColorSpace(C.AVCOL_SPC_YCGCO)
	ColorSpaceYcocg            = ColorSpace(C.AVCOL_SPC_YCOCG)
	ColorSpaceBt2020Ncl        = ColorSpace(C.AVCOL_SPC_BT2020_NCL)
	ColorSpaceBt2020Cl         = ColorSpace(C.AVCOL_SPC_BT2020_CL)
	ColorSpaceSmpte2085        = ColorSpace(C.AVCOL_SPC_SMPTE2085)
	ColorSpaceChromaDerivedNcl = ColorSpace(C.AVCOL_SPC_CHROMA_DERIVED_NCL)
	ColorSpaceChromaDerivedCl  = ColorSpace(C.AVCOL_SPC_CHROMA_DERIVED_CL)
	ColorSpaceIctcp            = ColorSpace(C.AVCOL_SPC_ICTCP)
	ColorSpaceNb               = ColorSpace(C.AVCOL_SPC_NB)
)
View Source
const (
	ColorTransferCharacteristicReserved0   = ColorTransferCharacteristic(C.AVCOL_TRC_RESERVED0)
	ColorTransferCharacteristicBt709       = ColorTransferCharacteristic(C.AVCOL_TRC_BT709)
	ColorTransferCharacteristicUnspecified = ColorTransferCharacteristic(C.AVCOL_TRC_UNSPECIFIED)
	ColorTransferCharacteristicReserved    = ColorTransferCharacteristic(C.AVCOL_TRC_RESERVED)
	ColorTransferCharacteristicGamma22     = ColorTransferCharacteristic(C.AVCOL_TRC_GAMMA22)
	ColorTransferCharacteristicGamma28     = ColorTransferCharacteristic(C.AVCOL_TRC_GAMMA28)
	ColorTransferCharacteristicSmpte170M   = ColorTransferCharacteristic(C.AVCOL_TRC_SMPTE170M)
	ColorTransferCharacteristicSmpte240M   = ColorTransferCharacteristic(C.AVCOL_TRC_SMPTE240M)
	ColorTransferCharacteristicLinear      = ColorTransferCharacteristic(C.AVCOL_TRC_LINEAR)
	ColorTransferCharacteristicLog         = ColorTransferCharacteristic(C.AVCOL_TRC_LOG)
	ColorTransferCharacteristicLogSqrt     = ColorTransferCharacteristic(C.AVCOL_TRC_LOG_SQRT)
	ColorTransferCharacteristicIec6196624  = ColorTransferCharacteristic(C.AVCOL_TRC_IEC61966_2_4)
	ColorTransferCharacteristicBt1361Ecg   = ColorTransferCharacteristic(C.AVCOL_TRC_BT1361_ECG)
	ColorTransferCharacteristicIec6196621  = ColorTransferCharacteristic(C.AVCOL_TRC_IEC61966_2_1)
	ColorTransferCharacteristicBt202010    = ColorTransferCharacteristic(C.AVCOL_TRC_BT2020_10)
	ColorTransferCharacteristicBt202012    = ColorTransferCharacteristic(C.AVCOL_TRC_BT2020_12)
	ColorTransferCharacteristicSmpte2084   = ColorTransferCharacteristic(C.AVCOL_TRC_SMPTE2084)
	ColorTransferCharacteristicSmptest2084 = ColorTransferCharacteristic(C.AVCOL_TRC_SMPTEST2084)
	ColorTransferCharacteristicSmpte428    = ColorTransferCharacteristic(C.AVCOL_TRC_SMPTE428)
	ColorTransferCharacteristicSmptest4281 = ColorTransferCharacteristic(C.AVCOL_TRC_SMPTEST428_1)
	ColorTransferCharacteristicAribStdB67  = ColorTransferCharacteristic(C.AVCOL_TRC_ARIB_STD_B67)
	ColorTransferCharacteristicNb          = ColorTransferCharacteristic(C.AVCOL_TRC_NB)
)
View Source
const (
	DictionaryFlagMatchCase     = DictionaryFlag(C.AV_DICT_MATCH_CASE)
	DictionaryFlagIgnoreSuffix  = DictionaryFlag(C.AV_DICT_IGNORE_SUFFIX)
	DictionaryFlagDontStrdupKey = DictionaryFlag(C.AV_DICT_DONT_STRDUP_KEY)
	DictionaryFlagDontStrdupVal = DictionaryFlag(C.AV_DICT_DONT_STRDUP_VAL)
	DictionaryFlagDontOverwrite = DictionaryFlag(C.AV_DICT_DONT_OVERWRITE)
	DictionaryFlagAppend        = DictionaryFlag(C.AV_DICT_APPEND)
	DictionaryFlagMultikey      = DictionaryFlag(C.AV_DICT_MULTIKEY)
)
View Source
const (
	DiscardNone          = Discard(C.AVDISCARD_NONE)
	DiscardDefault       = Discard(C.AVDISCARD_DEFAULT)
	DiscardNonRef        = Discard(C.AVDISCARD_NONREF)
	DiscardBidirectional = Discard(C.AVDISCARD_BIDIR)
	DiscardNonIntra      = Discard(C.AVDISCARD_NONINTRA)
	DiscardNonKey        = Discard(C.AVDISCARD_NONKEY)
	DiscardAll           = Discard(C.AVDISCARD_ALL)
)
View Source
const (
	ErrBsfNotFound      = Error(C.AVERROR_BSF_NOT_FOUND)
	ErrBufferTooSmall   = Error(C.AVERROR_BUFFER_TOO_SMALL)
	ErrBug              = Error(C.AVERROR_BUG)
	ErrBug2             = Error(C.AVERROR_BUG2)
	ErrDecoderNotFound  = Error(C.AVERROR_DECODER_NOT_FOUND)
	ErrDemuxerNotFound  = Error(C.AVERROR_DEMUXER_NOT_FOUND)
	ErrEagain           = Error(-(C.EAGAIN))
	ErrEio              = Error(-(C.EIO))
	ErrEncoderNotFound  = Error(C.AVERROR_ENCODER_NOT_FOUND)
	ErrEof              = Error(C.AVERROR_EOF)
	ErrEperm            = Error(-(C.EPERM))
	ErrEpipe            = Error(-(C.EPIPE))
	ErrEtimedout        = Error(-(C.ETIMEDOUT))
	ErrExit             = Error(C.AVERROR_EXIT)
	ErrExperimental     = Error(C.AVERROR_EXPERIMENTAL)
	ErrExternal         = Error(C.AVERROR_EXTERNAL)
	ErrFilterNotFound   = Error(C.AVERROR_FILTER_NOT_FOUND)
	ErrHttpBadRequest   = Error(C.AVERROR_HTTP_BAD_REQUEST)
	ErrHttpForbidden    = Error(C.AVERROR_HTTP_FORBIDDEN)
	ErrHttpNotFound     = Error(C.AVERROR_HTTP_NOT_FOUND)
	ErrHttpOther4Xx     = Error(C.AVERROR_HTTP_OTHER_4XX)
	ErrHttpServerError  = Error(C.AVERROR_HTTP_SERVER_ERROR)
	ErrHttpUnauthorized = Error(C.AVERROR_HTTP_UNAUTHORIZED)
	ErrInputChanged     = Error(C.AVERROR_INPUT_CHANGED)
	ErrInvaliddata      = Error(C.AVERROR_INVALIDDATA)
	ErrMaxStringSize    = Error(C.AV_ERROR_MAX_STRING_SIZE)
	ErrMuxerNotFound    = Error(C.AVERROR_MUXER_NOT_FOUND)
	ErrOptionNotFound   = Error(C.AVERROR_OPTION_NOT_FOUND)
	ErrOutputChanged    = Error(C.AVERROR_OUTPUT_CHANGED)
	ErrPatchwelcome     = Error(C.AVERROR_PATCHWELCOME)
	ErrProtocolNotFound = Error(C.AVERROR_PROTOCOL_NOT_FOUND)
	ErrStreamNotFound   = Error(C.AVERROR_STREAM_NOT_FOUND)
	ErrUnknown          = Error(C.AVERROR_UNKNOWN)
)
View Source
const (
	FilterCommandFlagOne  = FilterCommandFlag(C.AVFILTER_CMD_FLAG_ONE)
	FilterCommandFlagFast = FilterCommandFlag(C.AVFILTER_CMD_FLAG_FAST)
)
View Source
const (
	FormatContextCtxFlagNoHeader   = FormatContextCtxFlag(C.AVFMTCTX_NOHEADER)
	FormatContextCtxFlagUnseekable = FormatContextCtxFlag(C.AVFMTCTX_UNSEEKABLE)
)
View Source
const (
	FormatContextFlagGenPts         = FormatContextFlag(C.AVFMT_FLAG_GENPTS)
	FormatContextFlagIgnidx         = FormatContextFlag(C.AVFMT_FLAG_IGNIDX)
	FormatContextFlagNonblock       = FormatContextFlag(C.AVFMT_FLAG_NONBLOCK)
	FormatContextFlagIgnDts         = FormatContextFlag(C.AVFMT_FLAG_IGNDTS)
	FormatContextFlagNofillin       = FormatContextFlag(C.AVFMT_FLAG_NOFILLIN)
	FormatContextFlagNoparse        = FormatContextFlag(C.AVFMT_FLAG_NOPARSE)
	FormatContextFlagNobuffer       = FormatContextFlag(C.AVFMT_FLAG_NOBUFFER)
	FormatContextFlagCustomIo       = FormatContextFlag(C.AVFMT_FLAG_CUSTOM_IO)
	FormatContextFlagDiscardCorrupt = FormatContextFlag(C.AVFMT_FLAG_DISCARD_CORRUPT)
	FormatContextFlagFlushPackets   = FormatContextFlag(C.AVFMT_FLAG_FLUSH_PACKETS)
	FormatContextFlagBitexact       = FormatContextFlag(C.AVFMT_FLAG_BITEXACT)
	FormatContextFlagSortDts        = FormatContextFlag(C.AVFMT_FLAG_SORT_DTS)
	FormatContextFlagFastSeek       = FormatContextFlag(C.AVFMT_FLAG_FAST_SEEK)
	FormatContextFlagShortest       = FormatContextFlag(C.AVFMT_FLAG_SHORTEST)
	FormatContextFlagAutoBsf        = FormatContextFlag(C.AVFMT_FLAG_AUTO_BSF)
)
View Source
const (
	FrameSideDataTypePanscan                  = FrameSideDataType(C.AV_FRAME_DATA_PANSCAN)
	FrameSideDataTypeA53Cc                    = FrameSideDataType(C.AV_FRAME_DATA_A53_CC)
	FrameSideDataTypeStereo3D                 = FrameSideDataType(C.AV_FRAME_DATA_STEREO3D)
	FrameSideDataTypeMatrixencoding           = FrameSideDataType(C.AV_FRAME_DATA_MATRIXENCODING)
	FrameSideDataTypeDownmixInfo              = FrameSideDataType(C.AV_FRAME_DATA_DOWNMIX_INFO)
	FrameSideDataTypeReplaygain               = FrameSideDataType(C.AV_FRAME_DATA_REPLAYGAIN)
	FrameSideDataTypeDisplaymatrix            = FrameSideDataType(C.AV_FRAME_DATA_DISPLAYMATRIX)
	FrameSideDataTypeAfd                      = FrameSideDataType(C.AV_FRAME_DATA_AFD)
	FrameSideDataTypeMotionVectors            = FrameSideDataType(C.AV_FRAME_DATA_MOTION_VECTORS)
	FrameSideDataTypeSkipSamples              = FrameSideDataType(C.AV_FRAME_DATA_SKIP_SAMPLES)
	FrameSideDataTypeAudioServiceType         = FrameSideDataType(C.AV_FRAME_DATA_AUDIO_SERVICE_TYPE)
	FrameSideDataTypeMasteringDisplayMetadata = FrameSideDataType(C.AV_FRAME_DATA_MASTERING_DISPLAY_METADATA)
	FrameSideDataTypeGopTimecode              = FrameSideDataType(C.AV_FRAME_DATA_GOP_TIMECODE)
	FrameSideDataTypeSpherical                = FrameSideDataType(C.AV_FRAME_DATA_SPHERICAL)
	FrameSideDataTypeContentLightLevel        = FrameSideDataType(C.AV_FRAME_DATA_CONTENT_LIGHT_LEVEL)
	FrameSideDataTypeIccProfile               = FrameSideDataType(C.AV_FRAME_DATA_ICC_PROFILE)
	FrameSideDataTypeS12MTimecode             = FrameSideDataType(C.AV_FRAME_DATA_S12M_TIMECODE)
	FrameSideDataTypeDynamicHdrPlus           = FrameSideDataType(C.AV_FRAME_DATA_DYNAMIC_HDR_PLUS)
	FrameSideDataTypeRegionsOfInterest        = FrameSideDataType(C.AV_FRAME_DATA_REGIONS_OF_INTEREST)
	FrameSideDataTypeVideoEncParams           = FrameSideDataType(C.AV_FRAME_DATA_VIDEO_ENC_PARAMS)
	FrameSideDataTypeSeiUnregistered          = FrameSideDataType(C.AV_FRAME_DATA_SEI_UNREGISTERED)
	FrameSideDataTypeFilmGrainParams          = FrameSideDataType(C.AV_FRAME_DATA_FILM_GRAIN_PARAMS)
)
View Source
const (
	HardwareDeviceTypeCUDA         = HardwareDeviceType(C.AV_HWDEVICE_TYPE_CUDA)
	HardwareDeviceTypeD3D11VA      = HardwareDeviceType(C.AV_HWDEVICE_TYPE_D3D11VA)
	HardwareDeviceTypeDRM          = HardwareDeviceType(C.AV_HWDEVICE_TYPE_DRM)
	HardwareDeviceTypeDXVA2        = HardwareDeviceType(C.AV_HWDEVICE_TYPE_DXVA2)
	HardwareDeviceTypeMediaCodec   = HardwareDeviceType(C.AV_HWDEVICE_TYPE_MEDIACODEC)
	HardwareDeviceTypeNone         = HardwareDeviceType(C.AV_HWDEVICE_TYPE_NONE)
	HardwareDeviceTypeOpenCL       = HardwareDeviceType(C.AV_HWDEVICE_TYPE_OPENCL)
	HardwareDeviceTypeQSV          = HardwareDeviceType(C.AV_HWDEVICE_TYPE_QSV)
	HardwareDeviceTypeVAAPI        = HardwareDeviceType(C.AV_HWDEVICE_TYPE_VAAPI)
	HardwareDeviceTypeVDPAU        = HardwareDeviceType(C.AV_HWDEVICE_TYPE_VDPAU)
	HardwareDeviceTypeVideoToolbox = HardwareDeviceType(C.AV_HWDEVICE_TYPE_VIDEOTOOLBOX)
	HardwareDeviceTypeVulkan       = HardwareDeviceType(C.AV_HWDEVICE_TYPE_VULKAN)
)
View Source
const (
	IOContextFlagRead      = IOContextFlag(C.AVIO_FLAG_READ)
	IOContextFlagWrite     = IOContextFlag(C.AVIO_FLAG_WRITE)
	IOContextFlagReadWrite = IOContextFlag(C.AVIO_FLAG_READ_WRITE)
	IOContextFlagNonBlock  = IOContextFlag(C.AVIO_FLAG_NONBLOCK)
	IOContextFlagDirect    = IOContextFlag(C.AVIO_FLAG_DIRECT)
)
View Source
const (
	IOFormatFlagNofile       = IOFormatFlag(C.AVFMT_NOFILE)
	IOFormatFlagNeednumber   = IOFormatFlag(C.AVFMT_NEEDNUMBER)
	IOFormatFlagShowIds      = IOFormatFlag(C.AVFMT_SHOW_IDS)
	IOFormatFlagGlobalheader = IOFormatFlag(C.AVFMT_GLOBALHEADER)
	IOFormatFlagNotimestamps = IOFormatFlag(C.AVFMT_NOTIMESTAMPS)
	IOFormatFlagGenericIndex = IOFormatFlag(C.AVFMT_GENERIC_INDEX)
	IOFormatFlagTsDiscont    = IOFormatFlag(C.AVFMT_TS_DISCONT)
	IOFormatFlagVariableFps  = IOFormatFlag(C.AVFMT_VARIABLE_FPS)
	IOFormatFlagNodimensions = IOFormatFlag(C.AVFMT_NODIMENSIONS)
	IOFormatFlagNostreams    = IOFormatFlag(C.AVFMT_NOSTREAMS)
	IOFormatFlagNobinsearch  = IOFormatFlag(C.AVFMT_NOBINSEARCH)
	IOFormatFlagNogensearch  = IOFormatFlag(C.AVFMT_NOGENSEARCH)
	IOFormatFlagNoByteSeek   = IOFormatFlag(C.AVFMT_NO_BYTE_SEEK)
	IOFormatFlagAllowFlush   = IOFormatFlag(C.AVFMT_ALLOW_FLUSH)
	IOFormatFlagTsNonstrict  = IOFormatFlag(C.AVFMT_TS_NONSTRICT)
	IOFormatFlagTsNegative   = IOFormatFlag(C.AVFMT_TS_NEGATIVE)
	IOFormatFlagSeekToPts    = IOFormatFlag(C.AVFMT_SEEK_TO_PTS)
)
View Source
const (
	LogLevelQuiet   = LogLevel(C.AV_LOG_QUIET)
	LogLevelPanic   = LogLevel(C.AV_LOG_PANIC)
	LogLevelFatal   = LogLevel(C.AV_LOG_FATAL)
	LogLevelError   = LogLevel(C.AV_LOG_ERROR)
	LogLevelWarning = LogLevel(C.AV_LOG_WARNING)
	LogLevelInfo    = LogLevel(C.AV_LOG_INFO)
	LogLevelVerbose = LogLevel(C.AV_LOG_VERBOSE)
	LogLevelDebug   = LogLevel(C.AV_LOG_DEBUG)
)
View Source
const (
	MediaTypeAttachment = MediaType(C.AVMEDIA_TYPE_ATTACHMENT)
	MediaTypeAudio      = MediaType(C.AVMEDIA_TYPE_AUDIO)
	MediaTypeData       = MediaType(C.AVMEDIA_TYPE_DATA)
	MediaTypeNb         = MediaType(C.AVMEDIA_TYPE_NB)
	MediaTypeSubtitle   = MediaType(C.AVMEDIA_TYPE_SUBTITLE)
	MediaTypeUnknown    = MediaType(C.AVMEDIA_TYPE_UNKNOWN)
	MediaTypeVideo      = MediaType(C.AVMEDIA_TYPE_VIDEO)
)
View Source
const (
	OptionSearchFlagChildren   = CodecContextFlag(C.AV_OPT_SEARCH_CHILDREN)
	OptionSearchFlagFakeObject = CodecContextFlag(C.AV_OPT_SEARCH_FAKE_OBJ)
)
View Source
const (
	PacketFlagCorrupt = PacketFlag(C.AV_PKT_FLAG_CORRUPT)
	PacketFlagDiscard = PacketFlag(C.AV_PKT_FLAG_DISCARD)
	PacketFlagKey     = PacketFlag(C.AV_PKT_FLAG_KEY)
)
View Source
const (
	PacketSideDataTypeA53Cc                    = PacketSideDataType(C.AV_PKT_DATA_A53_CC)
	PacketSideDataTypeAfd                      = PacketSideDataType(C.AV_PKT_DATA_AFD)
	PacketSideDataTypeAudioServiceType         = PacketSideDataType(C.AV_PKT_DATA_AUDIO_SERVICE_TYPE)
	PacketSideDataTypeContentLightLevel        = PacketSideDataType(C.AV_PKT_DATA_CONTENT_LIGHT_LEVEL)
	PacketSideDataTypeCpbProperties            = PacketSideDataType(C.AV_PKT_DATA_CPB_PROPERTIES)
	PacketSideDataTypeDisplaymatrix            = PacketSideDataType(C.AV_PKT_DATA_DISPLAYMATRIX)
	PacketSideDataTypeEncryptionInfo           = PacketSideDataType(C.AV_PKT_DATA_ENCRYPTION_INFO)
	PacketSideDataTypeEncryptionInitInfo       = PacketSideDataType(C.AV_PKT_DATA_ENCRYPTION_INIT_INFO)
	PacketSideDataTypeFallbackTrack            = PacketSideDataType(C.AV_PKT_DATA_FALLBACK_TRACK)
	PacketSideDataTypeH263MbInfo               = PacketSideDataType(C.AV_PKT_DATA_H263_MB_INFO)
	PacketSideDataTypeJpDualmono               = PacketSideDataType(C.AV_PKT_DATA_JP_DUALMONO)
	PacketSideDataTypeMasteringDisplayMetadata = PacketSideDataType(C.AV_PKT_DATA_MASTERING_DISPLAY_METADATA)
	PacketSideDataTypeMatroskaBlockadditional  = PacketSideDataType(C.AV_PKT_DATA_MATROSKA_BLOCKADDITIONAL)
	PacketSideDataTypeMetadataUpdate           = PacketSideDataType(C.AV_PKT_DATA_METADATA_UPDATE)
	PacketSideDataTypeMpegtsStreamId           = PacketSideDataType(C.AV_PKT_DATA_MPEGTS_STREAM_ID)
	PacketSideDataTypeNb                       = PacketSideDataType(C.AV_PKT_DATA_NB)
	PacketSideDataTypeNewExtradata             = PacketSideDataType(C.AV_PKT_DATA_NEW_EXTRADATA)
	PacketSideDataTypePalette                  = PacketSideDataType(C.AV_PKT_DATA_PALETTE)
	PacketSideDataTypeParamChange              = PacketSideDataType(C.AV_PKT_DATA_PARAM_CHANGE)
	PacketSideDataTypeQualityStats             = PacketSideDataType(C.AV_PKT_DATA_QUALITY_STATS)
	PacketSideDataTypeReplaygain               = PacketSideDataType(C.AV_PKT_DATA_REPLAYGAIN)
	PacketSideDataTypeSkipSamples              = PacketSideDataType(C.AV_PKT_DATA_SKIP_SAMPLES)
	PacketSideDataTypeSpherical                = PacketSideDataType(C.AV_PKT_DATA_SPHERICAL)
	PacketSideDataTypeStereo3D                 = PacketSideDataType(C.AV_PKT_DATA_STEREO3D)
	PacketSideDataTypeStringsMetadata          = PacketSideDataType(C.AV_PKT_DATA_STRINGS_METADATA)
	PacketSideDataTypeSubtitlePosition         = PacketSideDataType(C.AV_PKT_DATA_SUBTITLE_POSITION)
	PacketSideDataTypeWebvttIdentifier         = PacketSideDataType(C.AV_PKT_DATA_WEBVTT_IDENTIFIER)
	PacketSideDataTypeWebvttSettings           = PacketSideDataType(C.AV_PKT_DATA_WEBVTT_SETTINGS)
)
View Source
const (
	PictureTypeNone = PictureType(C.AV_PICTURE_TYPE_NONE)
	PictureTypeI    = PictureType(C.AV_PICTURE_TYPE_I)
	PictureTypeP    = PictureType(C.AV_PICTURE_TYPE_P)
	PictureTypeB    = PictureType(C.AV_PICTURE_TYPE_B)
	PictureTypeS    = PictureType(C.AV_PICTURE_TYPE_S)
	PictureTypeSi   = PictureType(C.AV_PICTURE_TYPE_SI)
	PictureTypeSp   = PictureType(C.AV_PICTURE_TYPE_SP)
	PictureTypeBi   = PictureType(C.AV_PICTURE_TYPE_BI)
)
View Source
const (
	PixelFormat0Bgr          = PixelFormat(C.AV_PIX_FMT_0BGR)
	PixelFormat0Rgb          = PixelFormat(C.AV_PIX_FMT_0RGB)
	PixelFormatAbgr          = PixelFormat(C.AV_PIX_FMT_ABGR)
	PixelFormatArgb          = PixelFormat(C.AV_PIX_FMT_ARGB)
	PixelFormatAyuv64Be      = PixelFormat(C.AV_PIX_FMT_AYUV64BE)
	PixelFormatAyuv64Le      = PixelFormat(C.AV_PIX_FMT_AYUV64LE)
	PixelFormatBayerBggr16Be = PixelFormat(C.AV_PIX_FMT_BAYER_BGGR16BE)
	PixelFormatBayerBggr16Le = PixelFormat(C.AV_PIX_FMT_BAYER_BGGR16LE)
	PixelFormatBayerBggr8    = PixelFormat(C.AV_PIX_FMT_BAYER_BGGR8)
	PixelFormatBayerGbrg16Be = PixelFormat(C.AV_PIX_FMT_BAYER_GBRG16BE)
	PixelFormatBayerGbrg16Le = PixelFormat(C.AV_PIX_FMT_BAYER_GBRG16LE)
	PixelFormatBayerGbrg8    = PixelFormat(C.AV_PIX_FMT_BAYER_GBRG8)
	PixelFormatBayerGrbg16Be = PixelFormat(C.AV_PIX_FMT_BAYER_GRBG16BE)
	PixelFormatBayerGrbg16Le = PixelFormat(C.AV_PIX_FMT_BAYER_GRBG16LE)
	PixelFormatBayerGrbg8    = PixelFormat(C.AV_PIX_FMT_BAYER_GRBG8)
	PixelFormatBayerRggb16Be = PixelFormat(C.AV_PIX_FMT_BAYER_RGGB16BE)
	PixelFormatBayerRggb16Le = PixelFormat(C.AV_PIX_FMT_BAYER_RGGB16LE)
	PixelFormatBayerRggb8    = PixelFormat(C.AV_PIX_FMT_BAYER_RGGB8)
	PixelFormatBgr0          = PixelFormat(C.AV_PIX_FMT_BGR0)
	PixelFormatBgr24         = PixelFormat(C.AV_PIX_FMT_BGR24)
	PixelFormatBgr4          = PixelFormat(C.AV_PIX_FMT_BGR4)
	PixelFormatBgr444Be      = PixelFormat(C.AV_PIX_FMT_BGR444BE)
	PixelFormatBgr444Le      = PixelFormat(C.AV_PIX_FMT_BGR444LE)
	PixelFormatBgr48Be       = PixelFormat(C.AV_PIX_FMT_BGR48BE)
	PixelFormatBgr48Le       = PixelFormat(C.AV_PIX_FMT_BGR48LE)
	PixelFormatBgr4Byte      = PixelFormat(C.AV_PIX_FMT_BGR4_BYTE)
	PixelFormatBgr555Be      = PixelFormat(C.AV_PIX_FMT_BGR555BE)
	PixelFormatBgr555Le      = PixelFormat(C.AV_PIX_FMT_BGR555LE)
	PixelFormatBgr565Be      = PixelFormat(C.AV_PIX_FMT_BGR565BE)
	PixelFormatBgr565Le      = PixelFormat(C.AV_PIX_FMT_BGR565LE)
	PixelFormatBgr8          = PixelFormat(C.AV_PIX_FMT_BGR8)
	PixelFormatBgra          = PixelFormat(C.AV_PIX_FMT_BGRA)
	PixelFormatBgra64Be      = PixelFormat(C.AV_PIX_FMT_BGRA64BE)
	PixelFormatBgra64Le      = PixelFormat(C.AV_PIX_FMT_BGRA64LE)
	PixelFormatCuda          = PixelFormat(C.AV_PIX_FMT_CUDA)
	PixelFormatD3D11         = PixelFormat(C.AV_PIX_FMT_D3D11)
	PixelFormatD3D11VaVld    = PixelFormat(C.AV_PIX_FMT_D3D11VA_VLD)
	PixelFormatDrmPrime      = PixelFormat(C.AV_PIX_FMT_DRM_PRIME)
	PixelFormatDxva2Vld      = PixelFormat(C.AV_PIX_FMT_DXVA2_VLD)
	PixelFormatGbr24P        = PixelFormat(C.AV_PIX_FMT_GBR24P)
	PixelFormatGbrap         = PixelFormat(C.AV_PIX_FMT_GBRAP)
	PixelFormatGbrap10Be     = PixelFormat(C.AV_PIX_FMT_GBRAP10BE)
	PixelFormatGbrap10Le     = PixelFormat(C.AV_PIX_FMT_GBRAP10LE)
	PixelFormatGbrap12Be     = PixelFormat(C.AV_PIX_FMT_GBRAP12BE)
	PixelFormatGbrap12Le     = PixelFormat(C.AV_PIX_FMT_GBRAP12LE)
	PixelFormatGbrap16Be     = PixelFormat(C.AV_PIX_FMT_GBRAP16BE)
	PixelFormatGbrap16Le     = PixelFormat(C.AV_PIX_FMT_GBRAP16LE)
	PixelFormatGbrapf32Be    = PixelFormat(C.AV_PIX_FMT_GBRAPF32BE)
	PixelFormatGbrapf32Le    = PixelFormat(C.AV_PIX_FMT_GBRAPF32LE)
	PixelFormatGbrp          = PixelFormat(C.AV_PIX_FMT_GBRP)
	PixelFormatGbrp10Be      = PixelFormat(C.AV_PIX_FMT_GBRP10BE)
	PixelFormatGbrp10Le      = PixelFormat(C.AV_PIX_FMT_GBRP10LE)
	PixelFormatGbrp12Be      = PixelFormat(C.AV_PIX_FMT_GBRP12BE)
	PixelFormatGbrp12Le      = PixelFormat(C.AV_PIX_FMT_GBRP12LE)
	PixelFormatGbrp14Be      = PixelFormat(C.AV_PIX_FMT_GBRP14BE)
	PixelFormatGbrp14Le      = PixelFormat(C.AV_PIX_FMT_GBRP14LE)
	PixelFormatGbrp16Be      = PixelFormat(C.AV_PIX_FMT_GBRP16BE)
	PixelFormatGbrp16Le      = PixelFormat(C.AV_PIX_FMT_GBRP16LE)
	PixelFormatGbrp9Be       = PixelFormat(C.AV_PIX_FMT_GBRP9BE)
	PixelFormatGbrp9Le       = PixelFormat(C.AV_PIX_FMT_GBRP9LE)
	PixelFormatGbrpf32Be     = PixelFormat(C.AV_PIX_FMT_GBRPF32BE)
	PixelFormatGbrpf32Le     = PixelFormat(C.AV_PIX_FMT_GBRPF32LE)
	PixelFormatGray10Be      = PixelFormat(C.AV_PIX_FMT_GRAY10BE)
	PixelFormatGray10Le      = PixelFormat(C.AV_PIX_FMT_GRAY10LE)
	PixelFormatGray12Be      = PixelFormat(C.AV_PIX_FMT_GRAY12BE)
	PixelFormatGray12Le      = PixelFormat(C.AV_PIX_FMT_GRAY12LE)
	PixelFormatGray14Be      = PixelFormat(C.AV_PIX_FMT_GRAY14BE)
	PixelFormatGray14Le      = PixelFormat(C.AV_PIX_FMT_GRAY14LE)
	PixelFormatGray16Be      = PixelFormat(C.AV_PIX_FMT_GRAY16BE)
	PixelFormatGray16Le      = PixelFormat(C.AV_PIX_FMT_GRAY16LE)
	PixelFormatGray8         = PixelFormat(C.AV_PIX_FMT_GRAY8)
	PixelFormatGray8A        = PixelFormat(C.AV_PIX_FMT_GRAY8A)
	PixelFormatGray9Be       = PixelFormat(C.AV_PIX_FMT_GRAY9BE)
	PixelFormatGray9Le       = PixelFormat(C.AV_PIX_FMT_GRAY9LE)
	PixelFormatGrayf32Be     = PixelFormat(C.AV_PIX_FMT_GRAYF32BE)
	PixelFormatGrayf32Le     = PixelFormat(C.AV_PIX_FMT_GRAYF32LE)
	PixelFormatMediacodec    = PixelFormat(C.AV_PIX_FMT_MEDIACODEC)
	PixelFormatMmal          = PixelFormat(C.AV_PIX_FMT_MMAL)
	PixelFormatMonoblack     = PixelFormat(C.AV_PIX_FMT_MONOBLACK)
	PixelFormatMonowhite     = PixelFormat(C.AV_PIX_FMT_MONOWHITE)
	PixelFormatNb            = PixelFormat(C.AV_PIX_FMT_NB)
	PixelFormatNone          = PixelFormat(C.AV_PIX_FMT_NONE)
	PixelFormatNv12          = PixelFormat(C.AV_PIX_FMT_NV12)
	PixelFormatNv16          = PixelFormat(C.AV_PIX_FMT_NV16)
	PixelFormatNv20Be        = PixelFormat(C.AV_PIX_FMT_NV20BE)
	PixelFormatNv20Le        = PixelFormat(C.AV_PIX_FMT_NV20LE)
	PixelFormatNv21          = PixelFormat(C.AV_PIX_FMT_NV21)
	PixelFormatOpencl        = PixelFormat(C.AV_PIX_FMT_OPENCL)
	PixelFormatP010Be        = PixelFormat(C.AV_PIX_FMT_P010BE)
	PixelFormatP010Le        = PixelFormat(C.AV_PIX_FMT_P010LE)
	PixelFormatP016Be        = PixelFormat(C.AV_PIX_FMT_P016BE)
	PixelFormatP016Le        = PixelFormat(C.AV_PIX_FMT_P016LE)
	PixelFormatPal8          = PixelFormat(C.AV_PIX_FMT_PAL8)
	PixelFormatQsv           = PixelFormat(C.AV_PIX_FMT_QSV)
	PixelFormatRgb0          = PixelFormat(C.AV_PIX_FMT_RGB0)
	PixelFormatRgb24         = PixelFormat(C.AV_PIX_FMT_RGB24)
	PixelFormatRgb4          = PixelFormat(C.AV_PIX_FMT_RGB4)
	PixelFormatRgb444Be      = PixelFormat(C.AV_PIX_FMT_RGB444BE)
	PixelFormatRgb444Le      = PixelFormat(C.AV_PIX_FMT_RGB444LE)
	PixelFormatRgb48Be       = PixelFormat(C.AV_PIX_FMT_RGB48BE)
	PixelFormatRgb48Le       = PixelFormat(C.AV_PIX_FMT_RGB48LE)
	PixelFormatRgb4Byte      = PixelFormat(C.AV_PIX_FMT_RGB4_BYTE)
	PixelFormatRgb555Be      = PixelFormat(C.AV_PIX_FMT_RGB555BE)
	PixelFormatRgb555Le      = PixelFormat(C.AV_PIX_FMT_RGB555LE)
	PixelFormatRgb565Be      = PixelFormat(C.AV_PIX_FMT_RGB565BE)
	PixelFormatRgb565Le      = PixelFormat(C.AV_PIX_FMT_RGB565LE)
	PixelFormatRgb8          = PixelFormat(C.AV_PIX_FMT_RGB8)
	PixelFormatRgba          = PixelFormat(C.AV_PIX_FMT_RGBA)
	PixelFormatRgba64Be      = PixelFormat(C.AV_PIX_FMT_RGBA64BE)
	PixelFormatRgba64Le      = PixelFormat(C.AV_PIX_FMT_RGBA64LE)
	PixelFormatUyvy422       = PixelFormat(C.AV_PIX_FMT_UYVY422)
	PixelFormatUyyvyy411     = PixelFormat(C.AV_PIX_FMT_UYYVYY411)
	PixelFormatVaapi         = PixelFormat(C.AV_PIX_FMT_VAAPI)
	PixelFormatVdpau         = PixelFormat(C.AV_PIX_FMT_VDPAU)
	PixelFormatVideotoolbox  = PixelFormat(C.AV_PIX_FMT_VIDEOTOOLBOX)
	PixelFormatXyz12Be       = PixelFormat(C.AV_PIX_FMT_XYZ12BE)
	PixelFormatXyz12Le       = PixelFormat(C.AV_PIX_FMT_XYZ12LE)
	PixelFormatY400A         = PixelFormat(C.AV_PIX_FMT_Y400A)
	PixelFormatYa16Be        = PixelFormat(C.AV_PIX_FMT_YA16BE)
	PixelFormatYa16Le        = PixelFormat(C.AV_PIX_FMT_YA16LE)
	PixelFormatYa8           = PixelFormat(C.AV_PIX_FMT_YA8)
	PixelFormatYuv410P       = PixelFormat(C.AV_PIX_FMT_YUV410P)
	PixelFormatYuv411P       = PixelFormat(C.AV_PIX_FMT_YUV411P)
	PixelFormatYuv420P       = PixelFormat(C.AV_PIX_FMT_YUV420P)
	PixelFormatYuv420P10Be   = PixelFormat(C.AV_PIX_FMT_YUV420P10BE)
	PixelFormatYuv420P10Le   = PixelFormat(C.AV_PIX_FMT_YUV420P10LE)
	PixelFormatYuv420P12Be   = PixelFormat(C.AV_PIX_FMT_YUV420P12BE)
	PixelFormatYuv420P12Le   = PixelFormat(C.AV_PIX_FMT_YUV420P12LE)
	PixelFormatYuv420P14Be   = PixelFormat(C.AV_PIX_FMT_YUV420P14BE)
	PixelFormatYuv420P14Le   = PixelFormat(C.AV_PIX_FMT_YUV420P14LE)
	PixelFormatYuv420P16Be   = PixelFormat(C.AV_PIX_FMT_YUV420P16BE)
	PixelFormatYuv420P16Le   = PixelFormat(C.AV_PIX_FMT_YUV420P16LE)
	PixelFormatYuv420P9Be    = PixelFormat(C.AV_PIX_FMT_YUV420P9BE)
	PixelFormatYuv420P9Le    = PixelFormat(C.AV_PIX_FMT_YUV420P9LE)
	PixelFormatYuv422P       = PixelFormat(C.AV_PIX_FMT_YUV422P)
	PixelFormatYuv422P10Be   = PixelFormat(C.AV_PIX_FMT_YUV422P10BE)
	PixelFormatYuv422P10Le   = PixelFormat(C.AV_PIX_FMT_YUV422P10LE)
	PixelFormatYuv422P12Be   = PixelFormat(C.AV_PIX_FMT_YUV422P12BE)
	PixelFormatYuv422P12Le   = PixelFormat(C.AV_PIX_FMT_YUV422P12LE)
	PixelFormatYuv422P14Be   = PixelFormat(C.AV_PIX_FMT_YUV422P14BE)
	PixelFormatYuv422P14Le   = PixelFormat(C.AV_PIX_FMT_YUV422P14LE)
	PixelFormatYuv422P16Be   = PixelFormat(C.AV_PIX_FMT_YUV422P16BE)
	PixelFormatYuv422P16Le   = PixelFormat(C.AV_PIX_FMT_YUV422P16LE)
	PixelFormatYuv422P9Be    = PixelFormat(C.AV_PIX_FMT_YUV422P9BE)
	PixelFormatYuv422P9Le    = PixelFormat(C.AV_PIX_FMT_YUV422P9LE)
	PixelFormatYuv440P       = PixelFormat(C.AV_PIX_FMT_YUV440P)
	PixelFormatYuv440P10Be   = PixelFormat(C.AV_PIX_FMT_YUV440P10BE)
	PixelFormatYuv440P10Le   = PixelFormat(C.AV_PIX_FMT_YUV440P10LE)
	PixelFormatYuv440P12Be   = PixelFormat(C.AV_PIX_FMT_YUV440P12BE)
	PixelFormatYuv440P12Le   = PixelFormat(C.AV_PIX_FMT_YUV440P12LE)
	PixelFormatYuv444P       = PixelFormat(C.AV_PIX_FMT_YUV444P)
	PixelFormatYuv444P10Be   = PixelFormat(C.AV_PIX_FMT_YUV444P10BE)
	PixelFormatYuv444P10Le   = PixelFormat(C.AV_PIX_FMT_YUV444P10LE)
	PixelFormatYuv444P12Be   = PixelFormat(C.AV_PIX_FMT_YUV444P12BE)
	PixelFormatYuv444P12Le   = PixelFormat(C.AV_PIX_FMT_YUV444P12LE)
	PixelFormatYuv444P14Be   = PixelFormat(C.AV_PIX_FMT_YUV444P14BE)
	PixelFormatYuv444P14Le   = PixelFormat(C.AV_PIX_FMT_YUV444P14LE)
	PixelFormatYuv444P16Be   = PixelFormat(C.AV_PIX_FMT_YUV444P16BE)
	PixelFormatYuv444P16Le   = PixelFormat(C.AV_PIX_FMT_YUV444P16LE)
	PixelFormatYuv444P9Be    = PixelFormat(C.AV_PIX_FMT_YUV444P9BE)
	PixelFormatYuv444P9Le    = PixelFormat(C.AV_PIX_FMT_YUV444P9LE)
	PixelFormatYuva420P      = PixelFormat(C.AV_PIX_FMT_YUVA420P)
	PixelFormatYuva420P10Be  = PixelFormat(C.AV_PIX_FMT_YUVA420P10BE)
	PixelFormatYuva420P10Le  = PixelFormat(C.AV_PIX_FMT_YUVA420P10LE)
	PixelFormatYuva420P16Be  = PixelFormat(C.AV_PIX_FMT_YUVA420P16BE)
	PixelFormatYuva420P16Le  = PixelFormat(C.AV_PIX_FMT_YUVA420P16LE)
	PixelFormatYuva420P9Be   = PixelFormat(C.AV_PIX_FMT_YUVA420P9BE)
	PixelFormatYuva420P9Le   = PixelFormat(C.AV_PIX_FMT_YUVA420P9LE)
	PixelFormatYuva422P      = PixelFormat(C.AV_PIX_FMT_YUVA422P)
	PixelFormatYuva422P10Be  = PixelFormat(C.AV_PIX_FMT_YUVA422P10BE)
	PixelFormatYuva422P10Le  = PixelFormat(C.AV_PIX_FMT_YUVA422P10LE)
	PixelFormatYuva422P16Be  = PixelFormat(C.AV_PIX_FMT_YUVA422P16BE)
	PixelFormatYuva422P16Le  = PixelFormat(C.AV_PIX_FMT_YUVA422P16LE)
	PixelFormatYuva422P9Be   = PixelFormat(C.AV_PIX_FMT_YUVA422P9BE)
	PixelFormatYuva422P9Le   = PixelFormat(C.AV_PIX_FMT_YUVA422P9LE)
	PixelFormatYuva444P      = PixelFormat(C.AV_PIX_FMT_YUVA444P)
	PixelFormatYuva444P10Be  = PixelFormat(C.AV_PIX_FMT_YUVA444P10BE)
	PixelFormatYuva444P10Le  = PixelFormat(C.AV_PIX_FMT_YUVA444P10LE)
	PixelFormatYuva444P16Be  = PixelFormat(C.AV_PIX_FMT_YUVA444P16BE)
	PixelFormatYuva444P16Le  = PixelFormat(C.AV_PIX_FMT_YUVA444P16LE)
	PixelFormatYuva444P9Be   = PixelFormat(C.AV_PIX_FMT_YUVA444P9BE)
	PixelFormatYuva444P9Le   = PixelFormat(C.AV_PIX_FMT_YUVA444P9LE)
	PixelFormatYuvj411P      = PixelFormat(C.AV_PIX_FMT_YUVJ411P)
	PixelFormatYuvj420P      = PixelFormat(C.AV_PIX_FMT_YUVJ420P)
	PixelFormatYuvj422P      = PixelFormat(C.AV_PIX_FMT_YUVJ422P)
	PixelFormatYuvj440P      = PixelFormat(C.AV_PIX_FMT_YUVJ440P)
	PixelFormatYuvj444P      = PixelFormat(C.AV_PIX_FMT_YUVJ444P)
	PixelFormatYuyv422       = PixelFormat(C.AV_PIX_FMT_YUYV422)
	PixelFormatYvyu422       = PixelFormat(C.AV_PIX_FMT_YVYU422)
)
View Source
const (
	ProfileAacEld                            = Profile(C.FF_PROFILE_AAC_ELD)
	ProfileAacHe                             = Profile(C.FF_PROFILE_AAC_HE)
	ProfileAacHeV2                           = Profile(C.FF_PROFILE_AAC_HE_V2)
	ProfileAacLd                             = Profile(C.FF_PROFILE_AAC_LD)
	ProfileAacLow                            = Profile(C.FF_PROFILE_AAC_LOW)
	ProfileAacLtp                            = Profile(C.FF_PROFILE_AAC_LTP)
	ProfileAacMain                           = Profile(C.FF_PROFILE_AAC_MAIN)
	ProfileAacSsr                            = Profile(C.FF_PROFILE_AAC_SSR)
	ProfileAv1High                           = Profile(C.FF_PROFILE_AV1_HIGH)
	ProfileAv1Main                           = Profile(C.FF_PROFILE_AV1_MAIN)
	ProfileAv1Professional                   = Profile(C.FF_PROFILE_AV1_PROFESSIONAL)
	ProfileDnxhd                             = Profile(C.FF_PROFILE_DNXHD)
	ProfileDnxhr444                          = Profile(C.FF_PROFILE_DNXHR_444)
	ProfileDnxhrHq                           = Profile(C.FF_PROFILE_DNXHR_HQ)
	ProfileDnxhrHqx                          = Profile(C.FF_PROFILE_DNXHR_HQX)
	ProfileDnxhrLb                           = Profile(C.FF_PROFILE_DNXHR_LB)
	ProfileDnxhrSq                           = Profile(C.FF_PROFILE_DNXHR_SQ)
	ProfileDts                               = Profile(C.FF_PROFILE_DTS)
	ProfileDts9624                           = Profile(C.FF_PROFILE_DTS_96_24)
	ProfileDtsEs                             = Profile(C.FF_PROFILE_DTS_ES)
	ProfileDtsExpress                        = Profile(C.FF_PROFILE_DTS_EXPRESS)
	ProfileDtsHdHra                          = Profile(C.FF_PROFILE_DTS_HD_HRA)
	ProfileDtsHdMa                           = Profile(C.FF_PROFILE_DTS_HD_MA)
	ProfileH264Baseline                      = Profile(C.FF_PROFILE_H264_BASELINE)
	ProfileH264Cavlc444                      = Profile(C.FF_PROFILE_H264_CAVLC_444)
	ProfileH264Constrained                   = Profile(C.FF_PROFILE_H264_CONSTRAINED)
	ProfileH264ConstrainedBaseline           = Profile(C.FF_PROFILE_H264_CONSTRAINED_BASELINE)
	ProfileH264Extended                      = Profile(C.FF_PROFILE_H264_EXTENDED)
	ProfileH264High                          = Profile(C.FF_PROFILE_H264_HIGH)
	ProfileH264High10                        = Profile(C.FF_PROFILE_H264_HIGH_10)
	ProfileH264High10Intra                   = Profile(C.FF_PROFILE_H264_HIGH_10_INTRA)
	ProfileH264High422                       = Profile(C.FF_PROFILE_H264_HIGH_422)
	ProfileH264High422Intra                  = Profile(C.FF_PROFILE_H264_HIGH_422_INTRA)
	ProfileH264High444                       = Profile(C.FF_PROFILE_H264_HIGH_444)
	ProfileH264High444Intra                  = Profile(C.FF_PROFILE_H264_HIGH_444_INTRA)
	ProfileH264High444Predictive             = Profile(C.FF_PROFILE_H264_HIGH_444_PREDICTIVE)
	ProfileH264Intra                         = Profile(C.FF_PROFILE_H264_INTRA)
	ProfileH264Main                          = Profile(C.FF_PROFILE_H264_MAIN)
	ProfileH264MultiviewHigh                 = Profile(C.FF_PROFILE_H264_MULTIVIEW_HIGH)
	ProfileH264StereoHigh                    = Profile(C.FF_PROFILE_H264_STEREO_HIGH)
	ProfileHevcMain                          = Profile(C.FF_PROFILE_HEVC_MAIN)
	ProfileHevcMain10                        = Profile(C.FF_PROFILE_HEVC_MAIN_10)
	ProfileHevcMainStillPicture              = Profile(C.FF_PROFILE_HEVC_MAIN_STILL_PICTURE)
	ProfileHevcRext                          = Profile(C.FF_PROFILE_HEVC_REXT)
	ProfileJpeg2000CstreamNoRestriction      = Profile(C.FF_PROFILE_JPEG2000_CSTREAM_NO_RESTRICTION)
	ProfileJpeg2000CstreamRestriction0       = Profile(C.FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_0)
	ProfileJpeg2000CstreamRestriction1       = Profile(C.FF_PROFILE_JPEG2000_CSTREAM_RESTRICTION_1)
	ProfileJpeg2000Dcinema2K                 = Profile(C.FF_PROFILE_JPEG2000_DCINEMA_2K)
	ProfileJpeg2000Dcinema4K                 = Profile(C.FF_PROFILE_JPEG2000_DCINEMA_4K)
	ProfileMjpegHuffmanBaselineDct           = Profile(C.FF_PROFILE_MJPEG_HUFFMAN_BASELINE_DCT)
	ProfileMjpegHuffmanExtendedSequentialDct = Profile(C.FF_PROFILE_MJPEG_HUFFMAN_EXTENDED_SEQUENTIAL_DCT)
	ProfileMjpegHuffmanLossless              = Profile(C.FF_PROFILE_MJPEG_HUFFMAN_LOSSLESS)
	ProfileMjpegHuffmanProgressiveDct        = Profile(C.FF_PROFILE_MJPEG_HUFFMAN_PROGRESSIVE_DCT)
	ProfileMjpegJpegLs                       = Profile(C.FF_PROFILE_MJPEG_JPEG_LS)
	ProfileMpeg2422                          = Profile(C.FF_PROFILE_MPEG2_422)
	ProfileMpeg2AacHe                        = Profile(C.FF_PROFILE_MPEG2_AAC_HE)
	ProfileMpeg2AacLow                       = Profile(C.FF_PROFILE_MPEG2_AAC_LOW)
	ProfileMpeg2High                         = Profile(C.FF_PROFILE_MPEG2_HIGH)
	ProfileMpeg2Main                         = Profile(C.FF_PROFILE_MPEG2_MAIN)
	ProfileMpeg2Simple                       = Profile(C.FF_PROFILE_MPEG2_SIMPLE)
	ProfileMpeg2SnrScalable                  = Profile(C.FF_PROFILE_MPEG2_SNR_SCALABLE)
	ProfileMpeg2Ss                           = Profile(C.FF_PROFILE_MPEG2_SS)
	ProfileMpeg4AdvancedCoding               = Profile(C.FF_PROFILE_MPEG4_ADVANCED_CODING)
	ProfileMpeg4AdvancedCore                 = Profile(C.FF_PROFILE_MPEG4_ADVANCED_CORE)
	ProfileMpeg4AdvancedRealTime             = Profile(C.FF_PROFILE_MPEG4_ADVANCED_REAL_TIME)
	ProfileMpeg4AdvancedScalableTexture      = Profile(C.FF_PROFILE_MPEG4_ADVANCED_SCALABLE_TEXTURE)
	ProfileMpeg4AdvancedSimple               = Profile(C.FF_PROFILE_MPEG4_ADVANCED_SIMPLE)
	ProfileMpeg4BasicAnimatedTexture         = Profile(C.FF_PROFILE_MPEG4_BASIC_ANIMATED_TEXTURE)
	ProfileMpeg4Core                         = Profile(C.FF_PROFILE_MPEG4_CORE)
	ProfileMpeg4CoreScalable                 = Profile(C.FF_PROFILE_MPEG4_CORE_SCALABLE)
	ProfileMpeg4Hybrid                       = Profile(C.FF_PROFILE_MPEG4_HYBRID)
	ProfileMpeg4Main                         = Profile(C.FF_PROFILE_MPEG4_MAIN)
	ProfileMpeg4NBit                         = Profile(C.FF_PROFILE_MPEG4_N_BIT)
	ProfileMpeg4ScalableTexture              = Profile(C.FF_PROFILE_MPEG4_SCALABLE_TEXTURE)
	ProfileMpeg4Simple                       = Profile(C.FF_PROFILE_MPEG4_SIMPLE)
	ProfileMpeg4SimpleFaceAnimation          = Profile(C.FF_PROFILE_MPEG4_SIMPLE_FACE_ANIMATION)
	ProfileMpeg4SimpleScalable               = Profile(C.FF_PROFILE_MPEG4_SIMPLE_SCALABLE)
	ProfileMpeg4SimpleStudio                 = Profile(C.FF_PROFILE_MPEG4_SIMPLE_STUDIO)
	ProfileReserved                          = Profile(C.FF_PROFILE_RESERVED)
	ProfileSbcMsbc                           = Profile(C.FF_PROFILE_SBC_MSBC)
	ProfileUnknown                           = Profile(C.FF_PROFILE_UNKNOWN)
	ProfileVc1Advanced                       = Profile(C.FF_PROFILE_VC1_ADVANCED)
	ProfileVc1Complex                        = Profile(C.FF_PROFILE_VC1_COMPLEX)
	ProfileVc1Main                           = Profile(C.FF_PROFILE_VC1_MAIN)
	ProfileVc1Simple                         = Profile(C.FF_PROFILE_VC1_SIMPLE)
	ProfileVp90                              = Profile(C.FF_PROFILE_VP9_0)
	ProfileVp91                              = Profile(C.FF_PROFILE_VP9_1)
	ProfileVp92                              = Profile(C.FF_PROFILE_VP9_2)
	ProfileVp93                              = Profile(C.FF_PROFILE_VP9_3)
)
View Source
const (
	RoundingZero       = Rounding(C.AV_ROUND_ZERO)
	RoundingInf        = Rounding(C.AV_ROUND_INF)
	RoundingDown       = Rounding(C.AV_ROUND_DOWN)
	RoundingUp         = Rounding(C.AV_ROUND_UP)
	RoundingNearInf    = Rounding(C.AV_ROUND_NEAR_INF)
	RoundingPassMinmax = Rounding(C.AV_ROUND_PASS_MINMAX)
)
View Source
const (
	SampleFormatDbl  = SampleFormat(C.AV_SAMPLE_FMT_DBL)
	SampleFormatDblp = SampleFormat(C.AV_SAMPLE_FMT_DBLP)
	SampleFormatFlt  = SampleFormat(C.AV_SAMPLE_FMT_FLT)
	SampleFormatFltp = SampleFormat(C.AV_SAMPLE_FMT_FLTP)
	SampleFormatNb   = SampleFormat(C.AV_SAMPLE_FMT_NB)
	SampleFormatNone = SampleFormat(C.AV_SAMPLE_FMT_NONE)
	SampleFormatS16  = SampleFormat(C.AV_SAMPLE_FMT_S16)
	SampleFormatS16P = SampleFormat(C.AV_SAMPLE_FMT_S16P)
	SampleFormatS32  = SampleFormat(C.AV_SAMPLE_FMT_S32)
	SampleFormatS32P = SampleFormat(C.AV_SAMPLE_FMT_S32P)
	SampleFormatS64  = SampleFormat(C.AV_SAMPLE_FMT_S64)
	SampleFormatS64P = SampleFormat(C.AV_SAMPLE_FMT_S64P)
	SampleFormatU8   = SampleFormat(C.AV_SAMPLE_FMT_U8)
	SampleFormatU8P  = SampleFormat(C.AV_SAMPLE_FMT_U8P)
)
View Source
const (
	SeekFlagAny      = SeekFlag(C.AVSEEK_FLAG_ANY)
	SeekFlagBackward = SeekFlag(C.AVSEEK_FLAG_BACKWARD)
	SeekFlagByte     = SeekFlag(C.AVSEEK_FLAG_BYTE)
	SeekFlagFrame    = SeekFlag(C.AVSEEK_FLAG_FRAME)
)
View Source
const (
	SoftwareScaleContextFlagArea         = SoftwareScaleContextFlag(C.SWS_AREA)
	SoftwareScaleContextFlagBicubic      = SoftwareScaleContextFlag(C.SWS_BICUBIC)
	SoftwareScaleContextFlagBicublin     = SoftwareScaleContextFlag(C.SWS_BICUBLIN)
	SoftwareScaleContextFlagBilinear     = SoftwareScaleContextFlag(C.SWS_BILINEAR)
	SoftwareScaleContextFlagFastBilinear = SoftwareScaleContextFlag(C.SWS_FAST_BILINEAR)
	SoftwareScaleContextFlagGauss        = SoftwareScaleContextFlag(C.SWS_GAUSS)
	SoftwareScaleContextFlagLanczos      = SoftwareScaleContextFlag(C.SWS_LANCZOS)
	SoftwareScaleContextFlagPoint        = SoftwareScaleContextFlag(C.SWS_POINT)
	SoftwareScaleContextFlagSinc         = SoftwareScaleContextFlag(C.SWS_SINC)
	SoftwareScaleContextFlagSpline       = SoftwareScaleContextFlag(C.SWS_SPLINE)
	SoftwareScaleContextFlagX            = SoftwareScaleContextFlag(C.SWS_X)
)
View Source
const (
	StrictStdComplianceVeryStrict   = StrictStdCompliance(C.FF_COMPLIANCE_VERY_STRICT)
	StrictStdComplianceStrict       = StrictStdCompliance(C.FF_COMPLIANCE_STRICT)
	StrictStdComplianceNormal       = StrictStdCompliance(C.FF_COMPLIANCE_NORMAL)
	StrictStdComplianceUnofficial   = StrictStdCompliance(C.FF_COMPLIANCE_UNOFFICIAL)
	StrictStdComplianceExperimental = StrictStdCompliance(C.FF_COMPLIANCE_EXPERIMENTAL)
)
View Source
const (
	ThreadTypeFrame     = ThreadType(C.FF_THREAD_FRAME)
	ThreadTypeSlice     = ThreadType(C.FF_THREAD_SLICE)
	ThreadTypeUndefined = ThreadType(0)
)
View Source
const (
	FormatEventFlagMetadataUpdated = FormatEventFlag(C.AVFMT_EVENT_FLAG_METADATA_UPDATED)
)
View Source
const (
	LevelUnknown = Level(C.FF_LEVEL_UNKNOWN)
)
View Source
const NumDataPointers = uint(C.AV_NUM_DATA_POINTERS)

https://ffmpeg.org/doxygen/7.0/frame_8h.html#add80189702cf0f5ea82718576fb43201

View Source
const (
	StreamEventFlagMetadataUpdated = StreamEventFlag(C.AVSTREAM_EVENT_FLAG_METADATA_UPDATED)
)

Variables

View Source
var (
	ChannelLayoutMono              = newChannelLayoutFromC(C.astiavChannelLayoutMono)
	ChannelLayoutStereo            = newChannelLayoutFromC(C.astiavChannelLayoutStereo)
	ChannelLayout2Point1           = newChannelLayoutFromC(C.astiavChannelLayout2Point1)
	ChannelLayout21                = newChannelLayoutFromC(C.astiavChannelLayout21)
	ChannelLayoutSurround          = newChannelLayoutFromC(C.astiavChannelLayoutSurround)
	ChannelLayout3Point1           = newChannelLayoutFromC(C.astiavChannelLayout3Point1)
	ChannelLayout4Point0           = newChannelLayoutFromC(C.astiavChannelLayout4Point0)
	ChannelLayout4Point1           = newChannelLayoutFromC(C.astiavChannelLayout4Point1)
	ChannelLayout22                = newChannelLayoutFromC(C.astiavChannelLayout22)
	ChannelLayoutQuad              = newChannelLayoutFromC(C.astiavChannelLayoutQuad)
	ChannelLayout5Point0           = newChannelLayoutFromC(C.astiavChannelLayout5Point0)
	ChannelLayout5Point1           = newChannelLayoutFromC(C.astiavChannelLayout5Point1)
	ChannelLayout5Point0Back       = newChannelLayoutFromC(C.astiavChannelLayout5Point0Back)
	ChannelLayout5Point1Back       = newChannelLayoutFromC(C.astiavChannelLayout5Point1Back)
	ChannelLayout6Point0           = newChannelLayoutFromC(C.astiavChannelLayout6Point0)
	ChannelLayout6Point0Front      = newChannelLayoutFromC(C.astiavChannelLayout6Point0Front)
	ChannelLayoutHexagonal         = newChannelLayoutFromC(C.astiavChannelLayoutHexagonal)
	ChannelLayout3Point1Point2     = newChannelLayoutFromC(C.astiavChannelLayout3Point1Point2)
	ChannelLayout6Point1           = newChannelLayoutFromC(C.astiavChannelLayout6Point1)
	ChannelLayout6Point1Back       = newChannelLayoutFromC(C.astiavChannelLayout6Point1Back)
	ChannelLayout6Point1Front      = newChannelLayoutFromC(C.astiavChannelLayout6Point1Front)
	ChannelLayout7Point0           = newChannelLayoutFromC(C.astiavChannelLayout7Point0)
	ChannelLayout7Point0Front      = newChannelLayoutFromC(C.astiavChannelLayout7Point0Front)
	ChannelLayout7Point1           = newChannelLayoutFromC(C.astiavChannelLayout7Point1)
	ChannelLayout7Point1Wide       = newChannelLayoutFromC(C.astiavChannelLayout7Point1Wide)
	ChannelLayout7Point1WideBack   = newChannelLayoutFromC(C.astiavChannelLayout7Point1WideBack)
	ChannelLayout5Point1Point2Back = newChannelLayoutFromC(C.astiavChannelLayout5Point1Point2Back)
	ChannelLayoutOctagonal         = newChannelLayoutFromC(C.astiavChannelLayoutOctagonal)
	ChannelLayoutCube              = newChannelLayoutFromC(C.astiavChannelLayoutCube)
	ChannelLayout5Point1Point4Back = newChannelLayoutFromC(C.astiavChannelLayout5Point1Point4Back)
	ChannelLayout7Point1Point2     = newChannelLayoutFromC(C.astiavChannelLayout7Point1Point2)
	ChannelLayout7Point1Point4Back = newChannelLayoutFromC(C.astiavChannelLayout7Point1Point4Back)
	ChannelLayoutHexadecagonal     = newChannelLayoutFromC(C.astiavChannelLayoutHexadecagonal)
	ChannelLayoutStereoDownmix     = newChannelLayoutFromC(C.astiavChannelLayoutStereoDownmix)
	ChannelLayout22Point2          = newChannelLayoutFromC(C.astiavChannelLayout22Point2)
	ChannelLayout7Point1TopBack    = newChannelLayoutFromC(C.astiavChannelLayout7Point1TopBack)
)

https://ffmpeg.org/doxygen/7.0/group__lavu__audio__channels.html#ga855bb7dede67971e95bd09d8fcca7293

Functions

Types

type BitStreamFilter added in v0.15.0

type BitStreamFilter struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVBitStreamFilter.html

func (*BitStreamFilter) String added in v0.15.0

func (bsf *BitStreamFilter) String() string

type BitStreamFilterContext added in v0.15.0

type BitStreamFilterContext struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVBSFContext.html

type BuffersinkFilterContext added in v0.24.0

type BuffersinkFilterContext struct {
	// contains filtered or unexported fields
}

func (*BuffersinkFilterContext) FilterContext added in v0.24.0

func (bfc *BuffersinkFilterContext) FilterContext() *FilterContext

type BuffersinkFlags

type BuffersinkFlags astikit.BitFlags

func NewBuffersinkFlags

func NewBuffersinkFlags(fs ...BuffersinkFlag) BuffersinkFlags

func (BuffersinkFlags) Add

func (BuffersinkFlags) Del

func (BuffersinkFlags) Has

type BuffersrcFilterContext added in v0.24.0

type BuffersrcFilterContext struct {
	// contains filtered or unexported fields
}

func (*BuffersrcFilterContext) FilterContext added in v0.24.0

func (bfc *BuffersrcFilterContext) FilterContext() *FilterContext

type BuffersrcFilterContextParameters added in v0.25.0

type BuffersrcFilterContextParameters struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVBufferSrcParameters.html

func (*BuffersrcFilterContextParameters) Free added in v0.25.0

func (bfcp *BuffersrcFilterContextParameters) Free()

func (*BuffersrcFilterContextParameters) SetSampleRate added in v0.29.0

func (bfcp *BuffersrcFilterContextParameters) SetSampleRate(sampleRate int)

https://ffmpeg.org/doxygen/7.0/structAVBufferSrcParameters.html#a34a1613f1e80f8520c159fac59e29834

type BuffersrcFlags

type BuffersrcFlags astikit.BitFlags

func NewBuffersrcFlags

func NewBuffersrcFlags(fs ...BuffersrcFlag) BuffersrcFlags

func (BuffersrcFlags) Add

func (BuffersrcFlags) Del

func (BuffersrcFlags) Has

func (fs BuffersrcFlags) Has(f BuffersrcFlag) bool

type ChannelLayout

type ChannelLayout struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVChannelLayout.html

func (ChannelLayout) Equal added in v0.8.0

func (l ChannelLayout) Equal(l2 ChannelLayout) bool

func (ChannelLayout) String

func (l ChannelLayout) String() string

type Class added in v0.13.0

type Class struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVClass.html

func (*Class) String added in v0.13.0

func (c *Class) String() string

type Classer added in v0.13.0

type Classer interface {
	Class() *Class
}

type ClonedClasser added in v0.21.0

type ClonedClasser struct {
	// contains filtered or unexported fields
}

func (*ClonedClasser) Class added in v0.21.0

func (c *ClonedClasser) Class() *Class

type Codec

type Codec struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVCodec.html

func (*Codec) String

func (c *Codec) String() string

type CodecContext

type CodecContext struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVCodecContext.html

func (*CodecContext) FromCodecParameters added in v0.14.0

func (cc *CodecContext) FromCodecParameters(cp *CodecParameters) error

func (*CodecContext) String

func (cc *CodecContext) String() string

func (*CodecContext) ToCodecParameters added in v0.14.0

func (cc *CodecContext) ToCodecParameters(cp *CodecParameters) error

func (*CodecContext) UnsafePointer added in v0.25.0

func (cc *CodecContext) UnsafePointer() unsafe.Pointer

type CodecContextFlag2

type CodecContextFlag2 int64

type CodecContextFlags

type CodecContextFlags astikit.BitFlags

func NewCodecContextFlags

func NewCodecContextFlags(fs ...CodecContextFlag) CodecContextFlags

func (CodecContextFlags) Add

func (CodecContextFlags) Del

func (CodecContextFlags) Has

type CodecContextFlags2

type CodecContextFlags2 astikit.BitFlags

func NewCodecContextFlags2

func NewCodecContextFlags2(fs ...CodecContextFlag2) CodecContextFlags2

func (CodecContextFlags2) Add

func (CodecContextFlags2) Del

func (CodecContextFlags2) Has

type CodecContextPixelFormatCallback added in v0.13.0

type CodecContextPixelFormatCallback func(pfs []PixelFormat) PixelFormat

type CodecHardwareConfigMethodFlags added in v0.13.0

type CodecHardwareConfigMethodFlags astikit.BitFlags

func NewCodecHardwareConfigMethodFlags added in v0.13.0

func NewCodecHardwareConfigMethodFlags(fs ...CodecHardwareConfigMethodFlag) CodecHardwareConfigMethodFlags

func (CodecHardwareConfigMethodFlags) Add added in v0.13.0

func (CodecHardwareConfigMethodFlags) Del added in v0.13.0

func (CodecHardwareConfigMethodFlags) Has added in v0.13.0

type CodecID

type CodecID C.enum_AVCodecID

https://ffmpeg.org/doxygen/7.0/group__lavc__core.html#gaadca229ad2c20e060a14fec08a5cc7ce

func (CodecID) MediaType

func (c CodecID) MediaType() MediaType

func (CodecID) Name

func (c CodecID) Name() string

func (CodecID) String

func (c CodecID) String() string

type CodecParameters

type CodecParameters struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVCodecParameters.html

type CodecTag

type CodecTag uint32

type CompareTimestampsResult added in v0.25.0

type CompareTimestampsResult uint8
const (
	CompareTimestampsResultUndefined CompareTimestampsResult = iota
	CompareTimestampsResultAEqualB
	CompareTimestampsResultABeforeB
	CompareTimestampsResultAAfterB
)

type DictionaryFlags

type DictionaryFlags astikit.BitFlags

func NewDictionaryFlags

func NewDictionaryFlags(fs ...DictionaryFlag) DictionaryFlags

func (DictionaryFlags) Add

func (DictionaryFlags) Del

func (DictionaryFlags) Has

type DisplayMatrix added in v0.3.0

type DisplayMatrix [9]uint32

https://ffmpeg.org/doxygen/7.0/group__lavu__video__display.html

func NewDisplayMatrixFromBytes added in v0.3.0

func NewDisplayMatrixFromBytes(b []byte) (m *DisplayMatrix, err error)

func (DisplayMatrix) Bytes added in v0.14.0

func (m DisplayMatrix) Bytes() []byte

func (DisplayMatrix) Rotation added in v0.3.0

func (m DisplayMatrix) Rotation() float64

Rotation is a clockwise angle https://ffmpeg.org/doxygen/7.0/group__lavu__video__display.html#gaac2ea94d3f66496c758349450b5b0217

type FilterChain added in v0.20.0

type FilterChain struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVFilterChain.html

type FilterCommandFlags

type FilterCommandFlags astikit.BitFlags

func NewFilterCommandFlags

func NewFilterCommandFlags(fs ...FilterCommandFlag) FilterCommandFlags

func (FilterCommandFlags) Add

func (FilterCommandFlags) Del

func (FilterCommandFlags) Has

type FilterGraph

type FilterGraph struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVFilterGraph.html

func (*FilterGraph) SetThreadCount added in v0.16.0

func (g *FilterGraph) SetThreadCount(threadCount int)

https://ffmpeg.org/doxygen/7.0/structAVFilterGraph.html#ac28dcbf76e6fdd800295a2738d41660e

type FilterGraphSegment added in v0.20.0

type FilterGraphSegment struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVFilterGraphSegment.html

type FilterPad added in v0.20.0

type FilterPad struct {
	// contains filtered or unexported fields
}

Struct attributes are internal but there are C functions to get some of them

func (*FilterPad) MediaType added in v0.20.0

func (fp *FilterPad) MediaType() MediaType

type FilterParams added in v0.20.0

type FilterParams struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVFilterParams.html

type FormatContext

type FormatContext struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVFormatContext.html

func (*FormatContext) Dump added in v0.25.0

func (fc *FormatContext) Dump(streamIndex int, url string, isOutput bool)

https://ffmpeg.org/doxygen/7.0/group__lavf__misc.html#gae2645941f2dc779c307eb6314fd39f10

func (*FormatContext) FindBestStream added in v0.25.0

func (fc *FormatContext) FindBestStream(mt MediaType, wantedStreamIndex, relatedStreamIndex int) (*Stream, *Codec, error)

https://ffmpeg.org/doxygen/7.0/avformat_8c.html#a8d4609a8f685ad894c1503ffd1b610b4

func (*FormatContext) Streams

func (fc *FormatContext) Streams() (ss []*Stream)

type FormatContextCtxFlags

type FormatContextCtxFlags astikit.BitFlags

func NewFormatContextCtxFlags

func NewFormatContextCtxFlags(fs ...FormatContextCtxFlag) FormatContextCtxFlags

func (FormatContextCtxFlags) Add

func (FormatContextCtxFlags) Del

func (FormatContextCtxFlags) Has

type FormatContextFlags

type FormatContextFlags astikit.BitFlags

func NewFormatContextFlags

func NewFormatContextFlags(fs ...FormatContextFlag) FormatContextFlags

func (FormatContextFlags) Add

func (FormatContextFlags) Del

func (FormatContextFlags) Has

type FormatEventFlags

type FormatEventFlags astikit.BitFlags

func NewFormatEventFlags

func NewFormatEventFlags(fs ...FormatEventFlag) FormatEventFlags

func (FormatEventFlags) Add

func (FormatEventFlags) Del

func (FormatEventFlags) Has

type Frame

type Frame struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVFrame.html

func (*Frame) SamplesCopyToBuffer added in v0.24.0

func (f *Frame) SamplesCopyToBuffer(b []byte, align int) (int, error)

func (*Frame) UnsafePointer added in v0.14.0

func (f *Frame) UnsafePointer() unsafe.Pointer

type FrameData added in v0.12.0

type FrameData struct {
	// contains filtered or unexported fields
}

func (*FrameData) Bytes added in v0.12.0

func (d *FrameData) Bytes(align int) ([]byte, error)

func (*FrameData) FromImage added in v0.22.0

func (d *FrameData) FromImage(src image.Image) error

It's the developer's responsibility to handle frame's writability

func (*FrameData) GuessImageFormat added in v0.13.0

func (d *FrameData) GuessImageFormat() (image.Image, error)

Always returns non-premultiplied formats when dealing with alpha channels, however this might not always be accurate. In this case, use your own format in .ToImage()

func (*FrameData) SetBytes added in v0.22.0

func (d *FrameData) SetBytes(b []byte, align int) error

It's the developer's responsibility to handle frame's writability

func (*FrameData) ToImage added in v0.13.0

func (d *FrameData) ToImage(dst image.Image) error

type HardwareDeviceContext added in v0.13.0

type HardwareDeviceContext struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVHWDeviceContext.html

func (*HardwareDeviceContext) Free added in v0.25.0

func (hdc *HardwareDeviceContext) Free()

type HardwareFrameContext added in v0.25.0

type HardwareFrameContext struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVHWFramesContext.html

func (*HardwareFrameContext) Free added in v0.25.0

func (hfc *HardwareFrameContext) Free()

func (*HardwareFrameContext) SetInitialPoolSize added in v0.25.0

func (hfc *HardwareFrameContext) SetInitialPoolSize(initialPoolSize int)

https://ffmpeg.org/doxygen/7.0/structAVHWFramesContext.html#a9c3a94dcd9c96e19059b56a6bae9c764

type IOContext

type IOContext struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVIOContext.html

func AllocIOContext added in v0.14.0

func AllocIOContext(bufferSize int, writable bool, readFunc IOContextReadFunc, seekFunc IOContextSeekFunc, writeFunc IOContextWriteFunc) (ic *IOContext, err error)

https://ffmpeg.org/doxygen/7.0/avio_8h.html#a50c588d3c44707784f3afde39e1c181c

func (*IOContext) Class added in v0.13.0

func (ic *IOContext) Class() *Class

func (*IOContext) Read added in v0.14.0

func (ic *IOContext) Read(b []byte) (n int, err error)

https://ffmpeg.org/doxygen/7.0/avio_8h.html#a53843d2cbe6282d994fcf59c03d59294

func (*IOContext) Seek added in v0.14.0

func (ic *IOContext) Seek(offset int64, whence int) (int64, error)

https://ffmpeg.org/doxygen/7.0/avio_8h.html#a03e23bf0144030961c34e803c71f614f

type IOContextFlags

type IOContextFlags astikit.BitFlags

func NewIOContextFlags

func NewIOContextFlags(fs ...IOContextFlag) IOContextFlags

func (IOContextFlags) Add

func (IOContextFlags) Del

func (IOContextFlags) Has

func (fs IOContextFlags) Has(f IOContextFlag) bool

type IOContextReadFunc added in v0.14.0

type IOContextReadFunc func(b []byte) (n int, err error)

type IOContextSeekFunc added in v0.14.0

type IOContextSeekFunc func(offset int64, whence int) (n int64, err error)

type IOContextWriteFunc added in v0.14.0

type IOContextWriteFunc func(b []byte) (n int, err error)

type IOFormatFlags

type IOFormatFlags astikit.BitFlags

func NewIOFormatFlags

func NewIOFormatFlags(fs ...IOFormatFlag) IOFormatFlags

func (IOFormatFlags) Add

func (IOFormatFlags) Del

func (IOFormatFlags) Has

func (fs IOFormatFlags) Has(f IOFormatFlag) bool

type IOInterrupter added in v0.13.0

type IOInterrupter struct {
	// contains filtered or unexported fields
}

func NewIOInterrupter added in v0.25.0

func NewIOInterrupter() *IOInterrupter

func (*IOInterrupter) Free added in v0.27.0

func (i *IOInterrupter) Free()

func (*IOInterrupter) Interrupt added in v0.13.0

func (i *IOInterrupter) Interrupt()

func (*IOInterrupter) Interrupted added in v0.25.0

func (i *IOInterrupter) Interrupted() bool

func (*IOInterrupter) Resume added in v0.14.0

func (i *IOInterrupter) Resume()

type LogCallback

type LogCallback func(c Classer, l LogLevel, fmt, msg string)

type Option added in v0.25.0

type Option struct {
	// contains filtered or unexported fields
}

https://www.ffmpeg.org/doxygen/7.0/structAVOption.html

type OptionSearchFlags added in v0.25.0

type OptionSearchFlags astikit.BitFlags

func NewOptionSearchFlags added in v0.25.0

func NewOptionSearchFlags(fs ...OptionSearchFlag) OptionSearchFlags

func (OptionSearchFlags) Add added in v0.25.0

func (OptionSearchFlags) Del added in v0.25.0

func (OptionSearchFlags) Has added in v0.25.0

type Options added in v0.25.0

type Options struct {
	// contains filtered or unexported fields
}

type Packet

type Packet struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVPacket.html

type PacketFlags

type PacketFlags astikit.BitFlags

func NewPacketFlags

func NewPacketFlags(fs ...PacketFlag) PacketFlags

func (PacketFlags) Add

func (PacketFlags) Del

func (PacketFlags) Has

func (fs PacketFlags) Has(f PacketFlag) bool

type PrivateData added in v0.25.0

type PrivateData struct {
	// contains filtered or unexported fields
}

func (*PrivateData) Options added in v0.25.0

func (pd *PrivateData) Options() *Options

type Program added in v0.19.0

type Program struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVProgram.html

type Rational

type Rational struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVRational.html

func NewRational

func NewRational(num, den int) Rational

func (Rational) Den

func (r Rational) Den() int

func (Rational) Float64 added in v0.13.0

func (r Rational) Float64() float64

func (Rational) Invert added in v0.19.0

func (r Rational) Invert() Rational

func (Rational) Num

func (r Rational) Num() int

func (*Rational) SetDen

func (r *Rational) SetDen(den int)

func (*Rational) SetNum

func (r *Rational) SetNum(num int)

func (Rational) String

func (r Rational) String() string

type SeekFlags

type SeekFlags astikit.BitFlags

func NewSeekFlags

func NewSeekFlags(fs ...SeekFlag) SeekFlags

func (SeekFlags) Add

func (fs SeekFlags) Add(f SeekFlag) SeekFlags

func (SeekFlags) Del

func (fs SeekFlags) Del(f SeekFlag) SeekFlags

func (SeekFlags) Has

func (fs SeekFlags) Has(f SeekFlag) bool

type SoftwareResampleContext added in v0.25.0

type SoftwareResampleContext struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structSwrContext.html

func (*SoftwareResampleContext) ConvertFrame added in v0.25.0

func (src_ *SoftwareResampleContext) ConvertFrame(src, dst *Frame) error

https://ffmpeg.org/doxygen/7.0/group__lswr.html#gac482028c01d95580106183aa84b0930c

type SoftwareScaleContext added in v0.13.0

type SoftwareScaleContext struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structSwsContext.html

func (*SoftwareScaleContext) DestinationResolution added in v0.13.0

func (ssc *SoftwareScaleContext) DestinationResolution() (width int, height int)

func (*SoftwareScaleContext) ScaleFrame added in v0.13.0

func (ssc *SoftwareScaleContext) ScaleFrame(src, dst *Frame) error

https://ffmpeg.org/doxygen/7.0/group__libsws.html#ga1c72fcf83bd57aea72cf3dadfcf02541

func (*SoftwareScaleContext) SetDestinationResolution added in v0.13.0

func (ssc *SoftwareScaleContext) SetDestinationResolution(w int, h int) error

func (*SoftwareScaleContext) SetSourceResolution added in v0.13.0

func (ssc *SoftwareScaleContext) SetSourceResolution(w int, h int) error

func (*SoftwareScaleContext) SourceResolution added in v0.13.0

func (ssc *SoftwareScaleContext) SourceResolution() (int, int)

type SoftwareScaleContextFlags added in v0.13.0

type SoftwareScaleContextFlags astikit.BitFlags

func NewSoftwareScaleContextFlags added in v0.13.0

func NewSoftwareScaleContextFlags(fs ...SoftwareScaleContextFlag) SoftwareScaleContextFlags

func (SoftwareScaleContextFlags) Add added in v0.13.0

func (SoftwareScaleContextFlags) Del added in v0.13.0

func (SoftwareScaleContextFlags) Has added in v0.13.0

type Stream

type Stream struct {
	// contains filtered or unexported fields
}

https://ffmpeg.org/doxygen/7.0/structAVStream.html

type StreamEventFlags

type StreamEventFlags astikit.BitFlags

func NewStreamEventFlags

func NewStreamEventFlags(fs ...StreamEventFlag) StreamEventFlags

func (StreamEventFlags) Add

func (StreamEventFlags) Del

func (StreamEventFlags) Has

type UnknownClasser added in v0.13.0

type UnknownClasser struct {
	// contains filtered or unexported fields
}

func (*UnknownClasser) Class added in v0.13.0

func (c *UnknownClasser) Class() *Class

Source Files

Jump to

Keyboard shortcuts

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