Skip to content

Instantly share code, notes, and snippets.

@danigb
Last active July 26, 2024 11:32
Show Gist options
  • Save danigb/e015f58e5e56119059d3bf54cdb7a13f to your computer and use it in GitHub Desktop.
Save danigb/e015f58e5e56119059d3bf54cdb7a13f to your computer and use it in GitHub Desktop.
ffmpeg sample formats
Source: https://forum.videohelp.com/threads/373264-FFMpeg-List-of-working-sample-formats-per-format-and-encoder
---------------------------------------------------------------------------------------------------------------
MP3 - MPEG Layer 3 Audio - Libmp3lame
sample_fmt="s16p,s32p,fltp"
AAC - Advanced Audio Coding - AAC (Advanced Audio Coding)
sample_fmt="fltp"
OGG - Ogg Vorbis Audio - Libvorbis
sample_fmt="fltp"
OGG - Ogg Vorbis Audio - Vorbis
sample_fmt="fltp"
WMA - Windows Media Audio - Windows Media Audio 2
sample_fmt="fltp"
WMA - Windows Media Audio - Windows Media Audio 1
sample_fmt="fltp"
OPUS - Opus Interactive Audio Codec - Opus (Opus Interactive Audio Codec)
sample_fmt="s16,flt"
RA - RealAudio 1.0 - RealAudio 1.0 (14.4K)
sample_fmt="s16,s16p"
MP2 - MPEG audio layer 2 - mp2
sample_fmt="s16"
MP2 - MPEG audio layer 2 - libtwolame
sample_fmt="s16,flt,s16p,fltp"
AC3 - Dolby Digital - ac3
sample_fmt="fltp"
AC3 - Dolby Digital - ac3_fixed
sample_fmt="s16p"
EAC3 - Dolby Digital Plus - eac3
sample_fmt="fltp"
DTS-DCA - (DTS Coherent Acoustics) - dca
sample_fmt="s32"
AMR - Adaptive Multi-Rate Audio Codec - AMR-NB (Adaptive Multi-Rate NarrowBand)
sample_fmt="s16,s16p"
AMR-WB - Adaptive Multi-Rate Wideband - AMR-WB (Adaptive Multi-Rate WideBand
sample_fmt="s16,s16p"
SPX - Speex - spx
sample_fmt="s16"
iLBC - (Internet Low Bitrate Codec) - libilbc
sample_fmt="s16,s16p"
FLAC - Free Lossless Audio Codec - FLAC (Free Lossless Audio Codec)
sample_fmt="s16,s32"
ALAC - (Apple Lossless Audio Codec) - ALAC (Apple Lossless Audio Codec)
sample_fmt="s16p,s32p"
WV - Wavpack - Wavpack
sample_fmt="u8p,s16p,s32p,fltp"
WV - Wavpack - Libwavpack
sample_fmt="s32"
WAV - Waveform Audio - PCM A-law G.711 A-law
sample_fmt="s16"
WAV - Waveform Audio - PCM mu-law G.711 mu-law
sample_fmt="s16"
WAV - Waveform Audio - PCM 32-bit floating point big-endian
sample_fmt="flt"
WAV - Waveform Audio - PCM 32-bit floating point little-endian
sample_fmt="flt"
WAV - Waveform Audio - PCM 64-bit floating point big-endian
sample_fmt="dbl"
WAV - Waveform Audio - PCM 64-bit floating point little-endian
sample_fmt="dbl"
WAV - Waveform Audio - PCM signed 16-bit big-endian
sample_fmt="s16"
WAV - Waveform Audio - PCM signed 16-bit big-endian planar
sample_fmt="s16p"
WAV - Waveform Audio - PCM signed 16-bit little-endian
sample_fmt="s16"
WAV - Waveform Audio - PCM signed 16-bit little-endian planar
sample_fmt="s16p"
WAV - Waveform Audio - PCM signed 24-bit big-endian
sample_fmt="s32"
WAV - Waveform Audio - PCM D-Cinema audio signed 24-bit
sample_fmt="s16"
WAV - Waveform Audio - PCM signed 24-bit little-endian
sample_fmt="s32"
WAV - Waveform Audio - PCM signed 24-bit little-endian planar
sample_fmt="s32p"
WAV - Waveform Audio - PCM signed 32-bit big-endian
sample_fmt="s32"
WAV - Waveform Audio - PCM signed 32-bit little-endian
sample_fmt="s32"
WAV - Waveform Audio - PCM signed 32-bit little-endian planar
sample_fmt="s32p"
WAV - Waveform Audio - PCM signed 8-bit
sample_fmt="u8"
WAV - Waveform Audio - PCM signed 8-bit planar
sample_fmt="u8p"
WAV - Waveform Audio - PCM unsigned 16-bit big-endian
sample_fmt="s16"
WAV - Waveform Audio - PCM unsigned 16-bit little-endian
sample_fmt="s16"
WAV - Waveform Audio - PCM unsigned 24-bit big-endian
sample_fmt="s32"
WAV - Waveform Audio - PCM unsigned 24-bit little-endian
sample_fmt="s32"
WAV - Waveform Audio - PCM unsigned 32-bit big-endian
sample_fmt="s32"
WAV - Waveform Audio - PCM unsigned 32-bit little-endian
sample_fmt="s32"
WAV - Waveform Audio - PCM unsigned 8-bit
sample_fmt="u8"
WAV - Waveform Audio - SEGA CRI ADX ADPCM
sample_fmt="s16"
WAV - Waveform Audio - G.722 ADPCM
sample_fmt=""
WAV - Waveform Audio - G.726 ADPCM
sample_fmt=""
WAV - Waveform Audio - ADPCM IMA QuickTime
sample_fmt="s16p"
WAV - Waveform Audio - ADPCM IMA WAV
sample_fmt="s16p"
WAV - Waveform Audio - ADPCM Microsoft
sample_fmt="s16"
WAV - Waveform Audio - ADPCM Shockwave Flash
sample_fmt=""
WAV - Waveform Audio - ADPCM Yamaha
sample_fmt="s16"
WAV - Waveform Audio - MP3 (MPEG audio layer 3)
sample_fmt="s16p,s32p,fltp"
WAV - Waveform Audio - GSM Microsoft variant
sample_fmt=""
CAF - Core Audio Format - PCM A-law G.711 A-law
sample_fmt="s16"
CAF - Core Audio Format - PCM mu-law G.711 mu-law
sample_fmt="s16"
CAF - Core Audio Format - PCM 32-bit floating point big-endian
sample_fmt="flt"
CAF - Core Audio Format - PCM 32-bit floating point little-endian
sample_fmt="flt"
CAF - Core Audio Format - PCM 64-bit floating point big-endian
sample_fmt="dbl"
CAF - Core Audio Format - PCM 64-bit floating point little-endian
sample_fmt="dbl"
CAF - Core Audio Format - PCM signed 16-bit big-endian
sample_fmt="s16"
CAF - Core Audio Format - PCM signed 16-bit little-endian
sample_fmt="s16"
CAF - Core Audio Format - PCM signed 24-bit big-endian
sample_fmt="s32"
CAF - Core Audio Format - PCM signed 24-bit little-endian
sample_fmt="s32"
CAF - Core Audio Format - PCM signed 32-bit big-endian
sample_fmt="s32"
CAF - Core Audio Format - PCM signed 32-bit little-endian
sample_fmt="s32"
CAF - Core Audio Format - PCM signed 8-bit
sample_fmt="u8"
CAF - Core Audio Format - ADPCM IMA QuickTime
sample_fmt="s16p"
CAF - Core Audio Format - ADPCM IMA WAV
sample_fmt="s16p"
CAF - Core Audio Format - ADPCM Microsoft
sample_fmt="s16"
CAF - Core Audio Format - MP3 (MPEG audio layer 3)
sample_fmt="s16p,s32p,fltp"
AIFF - Audio Interchange File Format - PCM A-law G.711 A-law
sample_fmt="s16"
AIFF - Audio Interchange File Format - PCM mu-law G.711 mu-law
sample_fmt="s16"
AIFF - Audio Interchange File Format - PCM 32-bit floating point big-endian
sample_fmt="flt"
AIFF - Audio Interchange File Format - PCM 64-bit floating point big-endian
sample_fmt="dbl"
AIFF - Audio Interchange File Format - PCM signed 16-bit big-endian
sample_fmt="s16"
AIFF - Audio Interchange File Format - PCM signed 16-bit little-endian
sample_fmt="s16"
AIFF - Audio Interchange File Format - PCM signed 24-bit big-endian
sample_fmt="s32"
AIFF - Audio Interchange File Format - PCM signed 32-bit big-endian
sample_fmt="s32"
AIFF - Audio Interchange File Format - PCM signed 8-bit
sample_fmt="u8"
AIFF - Audio Interchange File Format - PCM unsigned 8-bit
sample_fmt="u8"
AIFF - Audio Interchange File Format - ADPCM IMA QuickTime
sample_fmt="s16p"
AU - SUN AU Format - PCM A-law G.711 A-law
sample_fmt="s16"
AU - SUN AU Format - PCM mu-law G.711 mu-law
sample_fmt="s16"
AU - SUN AU Format - PCM 32-bit floating point big-endian
sample_fmt="flt"
AU - SUN AU Format - PCM 64-bit floating point big-endian
sample_fmt="dbl"
AU - SUN AU Format - PCM signed 16-bit big-endian
sample_fmt="s16"
AU - SUN AU Format - PCM signed 24-bit big-endian
sample_fmt="s32"
AU - SUN AU Format - PCM signed 32-bit big-endian
sample_fmt="s32"
AU - SUN AU Format - PCM signed 8-bit
sample_fmt="u8"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment