AVCodecID

Identify the syntax and semantics of the bitstream. The principle is roughly: Two decoders with the same ID can decode the same streams. Two encoders with the same ID can encode compatible streams. There may be slight deviations from the principle due to implementation details.

If you add a codec ID to this list, add it so that 1. no value of an existing codec ID changes (that would break ABI), 2. it is as close as possible to similar codecs

After adding new codec IDs, do not forget to add an entry to the codec descriptor list and bump libavcodec minor version.

Values

ValueMeaning
AV_CODEC_ID_NONE0
AV_CODEC_ID_MPEG1VIDEO1
AV_CODEC_ID_MPEG2VIDEO2

< preferred ID for MPEG-1/2 video decoding

AV_CODEC_ID_H2613
AV_CODEC_ID_H2634
AV_CODEC_ID_RV105
AV_CODEC_ID_RV206
AV_CODEC_ID_MJPEG7
AV_CODEC_ID_MJPEGB8
AV_CODEC_ID_LJPEG9
AV_CODEC_ID_SP5X10
AV_CODEC_ID_JPEGLS11
AV_CODEC_ID_MPEG412
AV_CODEC_ID_RAWVIDEO13
AV_CODEC_ID_MSMPEG4V114
AV_CODEC_ID_MSMPEG4V215
AV_CODEC_ID_MSMPEG4V316
AV_CODEC_ID_WMV117
AV_CODEC_ID_WMV218
AV_CODEC_ID_H263P19
AV_CODEC_ID_H263I20
AV_CODEC_ID_FLV121
AV_CODEC_ID_SVQ122
AV_CODEC_ID_SVQ323
AV_CODEC_ID_DVVIDEO24
AV_CODEC_ID_HUFFYUV25
AV_CODEC_ID_CYUV26
AV_CODEC_ID_H26427
AV_CODEC_ID_INDEO328
AV_CODEC_ID_VP329
AV_CODEC_ID_THEORA30
AV_CODEC_ID_ASV131
AV_CODEC_ID_ASV232
AV_CODEC_ID_FFV133
AV_CODEC_ID_4XM34
AV_CODEC_ID_VCR135
AV_CODEC_ID_CLJR36
AV_CODEC_ID_MDEC37
AV_CODEC_ID_ROQ38
AV_CODEC_ID_INTERPLAY_VIDEO39
AV_CODEC_ID_XAN_WC340
AV_CODEC_ID_XAN_WC441
AV_CODEC_ID_RPZA42
AV_CODEC_ID_CINEPAK43
AV_CODEC_ID_WS_VQA44
AV_CODEC_ID_MSRLE45
AV_CODEC_ID_MSVIDEO146
AV_CODEC_ID_IDCIN47
AV_CODEC_ID_8BPS48
AV_CODEC_ID_SMC49
AV_CODEC_ID_FLIC50
AV_CODEC_ID_TRUEMOTION151
AV_CODEC_ID_VMDVIDEO52
AV_CODEC_ID_MSZH53
AV_CODEC_ID_ZLIB54
AV_CODEC_ID_QTRLE55
AV_CODEC_ID_TSCC56
AV_CODEC_ID_ULTI57
AV_CODEC_ID_QDRAW58
AV_CODEC_ID_VIXL59
AV_CODEC_ID_QPEG60
AV_CODEC_ID_PNG61
AV_CODEC_ID_PPM62
AV_CODEC_ID_PBM63
AV_CODEC_ID_PGM64
AV_CODEC_ID_PGMYUV65
AV_CODEC_ID_PAM66
AV_CODEC_ID_FFVHUFF67
AV_CODEC_ID_RV3068
AV_CODEC_ID_RV4069
AV_CODEC_ID_VC170
AV_CODEC_ID_WMV371
AV_CODEC_ID_LOCO72
AV_CODEC_ID_WNV173
AV_CODEC_ID_AASC74
AV_CODEC_ID_INDEO275
AV_CODEC_ID_FRAPS76
AV_CODEC_ID_TRUEMOTION277
AV_CODEC_ID_BMP78
AV_CODEC_ID_CSCD79
AV_CODEC_ID_MMVIDEO80
AV_CODEC_ID_ZMBV81
AV_CODEC_ID_AVS82
AV_CODEC_ID_SMACKVIDEO83
AV_CODEC_ID_NUV84
AV_CODEC_ID_KMVC85
AV_CODEC_ID_FLASHSV86
AV_CODEC_ID_CAVS87
AV_CODEC_ID_JPEG200088
AV_CODEC_ID_VMNC89
AV_CODEC_ID_VP590
AV_CODEC_ID_VP691
AV_CODEC_ID_VP6F92
AV_CODEC_ID_TARGA93
AV_CODEC_ID_DSICINVIDEO94
AV_CODEC_ID_TIERTEXSEQVIDEO95
AV_CODEC_ID_TIFF96
AV_CODEC_ID_GIF97
AV_CODEC_ID_DXA98
AV_CODEC_ID_DNXHD99
AV_CODEC_ID_THP100
AV_CODEC_ID_SGI101
AV_CODEC_ID_C93102
AV_CODEC_ID_BETHSOFTVID103
AV_CODEC_ID_PTX104
AV_CODEC_ID_TXD105
AV_CODEC_ID_VP6A106
AV_CODEC_ID_AMV107
AV_CODEC_ID_VB108
AV_CODEC_ID_PCX109
AV_CODEC_ID_SUNRAST110
AV_CODEC_ID_INDEO4111
AV_CODEC_ID_INDEO5112
AV_CODEC_ID_MIMIC113
AV_CODEC_ID_RL2114
AV_CODEC_ID_ESCAPE124115
AV_CODEC_ID_DIRAC116
AV_CODEC_ID_BFI117
AV_CODEC_ID_CMV118
AV_CODEC_ID_MOTIONPIXELS119
AV_CODEC_ID_TGV120
AV_CODEC_ID_TGQ121
AV_CODEC_ID_TQI122
AV_CODEC_ID_AURA123
AV_CODEC_ID_AURA2124
AV_CODEC_ID_V210X125
AV_CODEC_ID_TMV126
AV_CODEC_ID_V210127
AV_CODEC_ID_DPX128
AV_CODEC_ID_MAD129
AV_CODEC_ID_FRWU130
AV_CODEC_ID_FLASHSV2131
AV_CODEC_ID_CDGRAPHICS132
AV_CODEC_ID_R210133
AV_CODEC_ID_ANM134
AV_CODEC_ID_BINKVIDEO135
AV_CODEC_ID_IFF_ILBM136
AV_CODEC_ID_KGV1137
AV_CODEC_ID_YOP138
AV_CODEC_ID_VP8139
AV_CODEC_ID_PICTOR140
AV_CODEC_ID_ANSI141
AV_CODEC_ID_A64_MULTI142
AV_CODEC_ID_A64_MULTI5143
AV_CODEC_ID_R10K144
AV_CODEC_ID_MXPEG145
AV_CODEC_ID_LAGARITH146
AV_CODEC_ID_PRORES147
AV_CODEC_ID_JV148
AV_CODEC_ID_DFA149
AV_CODEC_ID_WMV3IMAGE150
AV_CODEC_ID_VC1IMAGE151
AV_CODEC_ID_UTVIDEO152
AV_CODEC_ID_BMV_VIDEO153
AV_CODEC_ID_VBLE154
AV_CODEC_ID_DXTORY155
AV_CODEC_ID_V410156
AV_CODEC_ID_XWD157
AV_CODEC_ID_CDXL158
AV_CODEC_ID_XBM159
AV_CODEC_ID_ZEROCODEC160
AV_CODEC_ID_MSS1161
AV_CODEC_ID_MSA1162
AV_CODEC_ID_TSCC2163
AV_CODEC_ID_MTS2164
AV_CODEC_ID_CLLC165
AV_CODEC_ID_MSS2166
AV_CODEC_ID_VP9167
AV_CODEC_ID_AIC168
AV_CODEC_ID_ESCAPE130169
AV_CODEC_ID_G2M170
AV_CODEC_ID_WEBP171
AV_CODEC_ID_HNM4_VIDEO172
AV_CODEC_ID_HEVC173
AV_CODEC_ID_FIC174
AV_CODEC_ID_ALIAS_PIX175
AV_CODEC_ID_BRENDER_PIX176
AV_CODEC_ID_PAF_VIDEO177
AV_CODEC_ID_EXR178
AV_CODEC_ID_VP7179
AV_CODEC_ID_SANM180
AV_CODEC_ID_SGIRLE181
AV_CODEC_ID_MVC1182
AV_CODEC_ID_MVC2183
AV_CODEC_ID_HQX184
AV_CODEC_ID_TDSC185
AV_CODEC_ID_HQ_HQA186
AV_CODEC_ID_HAP187
AV_CODEC_ID_DDS188
AV_CODEC_ID_DXV189
AV_CODEC_ID_SCREENPRESSO190
AV_CODEC_ID_RSCC191
AV_CODEC_ID_AVS2192
AV_CODEC_ID_Y41P0x8000
AV_CODEC_ID_AVRP32769
AV_CODEC_ID_012V32770
AV_CODEC_ID_AVUI32771
AV_CODEC_ID_AYUV32772
AV_CODEC_ID_TARGA_Y21632773
AV_CODEC_ID_V30832774
AV_CODEC_ID_V40832775
AV_CODEC_ID_YUV432776
AV_CODEC_ID_AVRN32777
AV_CODEC_ID_CPIA32778
AV_CODEC_ID_XFACE32779
AV_CODEC_ID_SNOW32780
AV_CODEC_ID_SMVJPEG32781
AV_CODEC_ID_APNG32782
AV_CODEC_ID_DAALA32783
AV_CODEC_ID_CFHD32784
AV_CODEC_ID_TRUEMOTION2RT32785
AV_CODEC_ID_M10132786
AV_CODEC_ID_MAGICYUV32787
AV_CODEC_ID_SHEERVIDEO32788
AV_CODEC_ID_YLC32789
AV_CODEC_ID_PSD32790
AV_CODEC_ID_PIXLET32791
AV_CODEC_ID_SPEEDHQ32792
AV_CODEC_ID_FMVC32793
AV_CODEC_ID_SCPR32794
AV_CODEC_ID_CLEARVIDEO32795
AV_CODEC_ID_XPM32796
AV_CODEC_ID_AV132797
AV_CODEC_ID_BITPACKED32798
AV_CODEC_ID_MSCC32799
AV_CODEC_ID_SRGC32800
AV_CODEC_ID_SVG32801
AV_CODEC_ID_GDV32802
AV_CODEC_ID_FITS32803
AV_CODEC_ID_IMM432804
AV_CODEC_ID_PROSUMER32805
AV_CODEC_ID_MWSC32806
AV_CODEC_ID_WCMV32807
AV_CODEC_ID_RASC32808
AV_CODEC_ID_FIRST_AUDIO0x10000

< A dummy id pointing at the start of audio codecs

AV_CODEC_ID_PCM_S16LE0x10000
AV_CODEC_ID_PCM_S16BE65537
AV_CODEC_ID_PCM_U16LE65538
AV_CODEC_ID_PCM_U16BE65539
AV_CODEC_ID_PCM_S865540
AV_CODEC_ID_PCM_U865541
AV_CODEC_ID_PCM_MULAW65542
AV_CODEC_ID_PCM_ALAW65543
AV_CODEC_ID_PCM_S32LE65544
AV_CODEC_ID_PCM_S32BE65545
AV_CODEC_ID_PCM_U32LE65546
AV_CODEC_ID_PCM_U32BE65547
AV_CODEC_ID_PCM_S24LE65548
AV_CODEC_ID_PCM_S24BE65549
AV_CODEC_ID_PCM_U24LE65550
AV_CODEC_ID_PCM_U24BE65551
AV_CODEC_ID_PCM_S24DAUD65552
AV_CODEC_ID_PCM_ZORK65553
AV_CODEC_ID_PCM_S16LE_PLANAR65554
AV_CODEC_ID_PCM_DVD65555
AV_CODEC_ID_PCM_F32BE65556
AV_CODEC_ID_PCM_F32LE65557
AV_CODEC_ID_PCM_F64BE65558
AV_CODEC_ID_PCM_F64LE65559
AV_CODEC_ID_PCM_BLURAY65560
AV_CODEC_ID_PCM_LXF65561
AV_CODEC_ID_S302M65562
AV_CODEC_ID_PCM_S8_PLANAR65563
AV_CODEC_ID_PCM_S24LE_PLANAR65564
AV_CODEC_ID_PCM_S32LE_PLANAR65565
AV_CODEC_ID_PCM_S16BE_PLANAR65566
AV_CODEC_ID_PCM_S64LE0x10800
AV_CODEC_ID_PCM_S64BE67585
AV_CODEC_ID_PCM_F16LE67586
AV_CODEC_ID_PCM_F24LE67587
AV_CODEC_ID_PCM_VIDC67588
AV_CODEC_ID_ADPCM_IMA_QT0x11000
AV_CODEC_ID_ADPCM_IMA_WAV69633
AV_CODEC_ID_ADPCM_IMA_DK369634
AV_CODEC_ID_ADPCM_IMA_DK469635
AV_CODEC_ID_ADPCM_IMA_WS69636
AV_CODEC_ID_ADPCM_IMA_SMJPEG69637
AV_CODEC_ID_ADPCM_MS69638
AV_CODEC_ID_ADPCM_4XM69639
AV_CODEC_ID_ADPCM_XA69640
AV_CODEC_ID_ADPCM_ADX69641
AV_CODEC_ID_ADPCM_EA69642
AV_CODEC_ID_ADPCM_G72669643
AV_CODEC_ID_ADPCM_CT69644
AV_CODEC_ID_ADPCM_SWF69645
AV_CODEC_ID_ADPCM_YAMAHA69646
AV_CODEC_ID_ADPCM_SBPRO_469647
AV_CODEC_ID_ADPCM_SBPRO_369648
AV_CODEC_ID_ADPCM_SBPRO_269649
AV_CODEC_ID_ADPCM_THP69650
AV_CODEC_ID_ADPCM_IMA_AMV69651
AV_CODEC_ID_ADPCM_EA_R169652
AV_CODEC_ID_ADPCM_EA_R369653
AV_CODEC_ID_ADPCM_EA_R269654
AV_CODEC_ID_ADPCM_IMA_EA_SEAD69655
AV_CODEC_ID_ADPCM_IMA_EA_EACS69656
AV_CODEC_ID_ADPCM_EA_XAS69657
AV_CODEC_ID_ADPCM_EA_MAXIS_XA69658
AV_CODEC_ID_ADPCM_IMA_ISS69659
AV_CODEC_ID_ADPCM_G72269660
AV_CODEC_ID_ADPCM_IMA_APC69661
AV_CODEC_ID_ADPCM_VIMA69662
AV_CODEC_ID_ADPCM_AFC0x11800
AV_CODEC_ID_ADPCM_IMA_OKI71681
AV_CODEC_ID_ADPCM_DTK71682
AV_CODEC_ID_ADPCM_IMA_RAD71683
AV_CODEC_ID_ADPCM_G726LE71684
AV_CODEC_ID_ADPCM_THP_LE71685
AV_CODEC_ID_ADPCM_PSX71686
AV_CODEC_ID_ADPCM_AICA71687
AV_CODEC_ID_ADPCM_IMA_DAT471688
AV_CODEC_ID_ADPCM_MTAF71689
AV_CODEC_ID_AMR_NB0x12000
AV_CODEC_ID_AMR_WB73729
AV_CODEC_ID_RA_1440x13000
AV_CODEC_ID_RA_28877825
AV_CODEC_ID_ROQ_DPCM0x14000
AV_CODEC_ID_INTERPLAY_DPCM81921
AV_CODEC_ID_XAN_DPCM81922
AV_CODEC_ID_SOL_DPCM81923
AV_CODEC_ID_SDX2_DPCM0x14800
AV_CODEC_ID_GREMLIN_DPCM83969
AV_CODEC_ID_MP20x15000
AV_CODEC_ID_MP386017

< preferred ID for decoding MPEG audio layer 1, 2 or 3

AV_CODEC_ID_AAC86018
AV_CODEC_ID_AC386019
AV_CODEC_ID_DTS86020
AV_CODEC_ID_VORBIS86021
AV_CODEC_ID_DVAUDIO86022
AV_CODEC_ID_WMAV186023
AV_CODEC_ID_WMAV286024
AV_CODEC_ID_MACE386025
AV_CODEC_ID_MACE686026
AV_CODEC_ID_VMDAUDIO86027
AV_CODEC_ID_FLAC86028
AV_CODEC_ID_MP3ADU86029
AV_CODEC_ID_MP3ON486030
AV_CODEC_ID_SHORTEN86031
AV_CODEC_ID_ALAC86032
AV_CODEC_ID_WESTWOOD_SND186033
AV_CODEC_ID_GSM86034

< as in Berlin toast format

AV_CODEC_ID_QDM286035
AV_CODEC_ID_COOK86036
AV_CODEC_ID_TRUESPEECH86037
AV_CODEC_ID_TTA86038
AV_CODEC_ID_SMACKAUDIO86039
AV_CODEC_ID_QCELP86040
AV_CODEC_ID_WAVPACK86041
AV_CODEC_ID_DSICINAUDIO86042
AV_CODEC_ID_IMC86043
AV_CODEC_ID_MUSEPACK786044
AV_CODEC_ID_MLP86045
AV_CODEC_ID_GSM_MS86046
AV_CODEC_ID_ATRAC386047
AV_CODEC_ID_APE86048
AV_CODEC_ID_NELLYMOSER86049
AV_CODEC_ID_MUSEPACK886050
AV_CODEC_ID_SPEEX86051
AV_CODEC_ID_WMAVOICE86052
AV_CODEC_ID_WMAPRO86053
AV_CODEC_ID_WMALOSSLESS86054
AV_CODEC_ID_ATRAC3P86055
AV_CODEC_ID_EAC386056
AV_CODEC_ID_SIPR86057
AV_CODEC_ID_MP186058
AV_CODEC_ID_TWINVQ86059
AV_CODEC_ID_TRUEHD86060
AV_CODEC_ID_MP4ALS86061
AV_CODEC_ID_ATRAC186062
AV_CODEC_ID_BINKAUDIO_RDFT86063
AV_CODEC_ID_BINKAUDIO_DCT86064
AV_CODEC_ID_AAC_LATM86065
AV_CODEC_ID_QDMC86066
AV_CODEC_ID_CELT86067
AV_CODEC_ID_G723_186068
AV_CODEC_ID_G72986069
AV_CODEC_ID_8SVX_EXP86070
AV_CODEC_ID_8SVX_FIB86071
AV_CODEC_ID_BMV_AUDIO86072
AV_CODEC_ID_RALF86073
AV_CODEC_ID_IAC86074
AV_CODEC_ID_ILBC86075
AV_CODEC_ID_OPUS86076
AV_CODEC_ID_COMFORT_NOISE86077
AV_CODEC_ID_TAK86078
AV_CODEC_ID_METASOUND86079
AV_CODEC_ID_PAF_AUDIO86080
AV_CODEC_ID_ON2AVC86081
AV_CODEC_ID_DSS_SP86082
AV_CODEC_ID_CODEC286083
AV_CODEC_ID_FFWAVESYNTH0x15800
AV_CODEC_ID_SONIC88065
AV_CODEC_ID_SONIC_LS88066
AV_CODEC_ID_EVRC88067
AV_CODEC_ID_SMV88068
AV_CODEC_ID_DSD_LSBF88069
AV_CODEC_ID_DSD_MSBF88070
AV_CODEC_ID_DSD_LSBF_PLANAR88071
AV_CODEC_ID_DSD_MSBF_PLANAR88072
AV_CODEC_ID_4GV88073
AV_CODEC_ID_INTERPLAY_ACM88074
AV_CODEC_ID_XMA188075
AV_CODEC_ID_XMA288076
AV_CODEC_ID_DST88077
AV_CODEC_ID_ATRAC3AL88078
AV_CODEC_ID_ATRAC3PAL88079
AV_CODEC_ID_DOLBY_E88080
AV_CODEC_ID_APTX88081
AV_CODEC_ID_APTX_HD88082
AV_CODEC_ID_SBC88083
AV_CODEC_ID_ATRAC988084
AV_CODEC_ID_FIRST_SUBTITLE0x17000

< A dummy ID pointing at the start of subtitle codecs.

AV_CODEC_ID_DVD_SUBTITLE0x17000
AV_CODEC_ID_DVB_SUBTITLE94209
AV_CODEC_ID_TEXT94210

< raw UTF-8 text

AV_CODEC_ID_XSUB94211
AV_CODEC_ID_SSA94212
AV_CODEC_ID_MOV_TEXT94213
AV_CODEC_ID_HDMV_PGS_SUBTITLE94214
AV_CODEC_ID_DVB_TELETEXT94215
AV_CODEC_ID_SRT94216
AV_CODEC_ID_MICRODVD0x17800
AV_CODEC_ID_EIA_60896257
AV_CODEC_ID_JACOSUB96258
AV_CODEC_ID_SAMI96259
AV_CODEC_ID_REALTEXT96260
AV_CODEC_ID_STL96261
AV_CODEC_ID_SUBVIEWER196262
AV_CODEC_ID_SUBVIEWER96263
AV_CODEC_ID_SUBRIP96264
AV_CODEC_ID_WEBVTT96265
AV_CODEC_ID_MPL296266
AV_CODEC_ID_VPLAYER96267
AV_CODEC_ID_PJS96268
AV_CODEC_ID_ASS96269
AV_CODEC_ID_HDMV_TEXT_SUBTITLE96270
AV_CODEC_ID_TTML96271
AV_CODEC_ID_FIRST_UNKNOWN0x18000

< A dummy ID pointing at the start of various fake codecs.

AV_CODEC_ID_TTF0x18000
AV_CODEC_ID_SCTE_3598305

< Contain timestamp estimated through PCR of program stream.

AV_CODEC_ID_BINTEXT0x18800
AV_CODEC_ID_XBIN100353
AV_CODEC_ID_IDF100354
AV_CODEC_ID_OTF100355
AV_CODEC_ID_SMPTE_KLV100356
AV_CODEC_ID_DVD_NAV100357
AV_CODEC_ID_TIMED_ID3100358
AV_CODEC_ID_BIN_DATA100359
AV_CODEC_ID_PROBE0x19000

< codec_id is not known (like AV_CODEC_ID_NONE) but lavf should attempt to identify it

AV_CODEC_ID_MPEG2TS0x20000

< _FAKE_ codec to indicate a raw MPEG-2 TS * stream (only used by libavformat)

AV_CODEC_ID_MPEG4SYSTEMS0x20001

< _FAKE_ codec to indicate a MPEG-4 Systems * stream (only used by libavformat)

AV_CODEC_ID_FFMETADATA0x21000

< Dummy codec for streams containing only metadata information.

AV_CODEC_ID_WRAPPED_AVFRAME0x21001

< Passthrough codec, AVFrames wrapped in AVPacket

Meta