아미(아름다운미소)

ffmpeg Audio Types 본문

서버/리눅스

ffmpeg Audio Types

유키공 2018. 8. 22. 09:30

ffmpeg -formats 명령으로 지원되는 샘플 형식 목록을 볼 수 있습니다.

$ ffmpeg -formats | grep PCM
 DE alaw            PCM A-law
 DE f32be           PCM 32-bit floating-point big-endian
 DE f32le           PCM 32-bit floating-point little-endian
 DE f64be           PCM 64-bit floating-point big-endian
 DE f64le           PCM 64-bit floating-point little-endian
 DE mulaw           PCM mu-law
 DE s16be           PCM signed 16-bit big-endian
 DE s16le           PCM signed 16-bit little-endian
 DE s24be           PCM signed 24-bit big-endian
 DE s24le           PCM signed 24-bit little-endian
 DE s32be           PCM signed 32-bit big-endian
 DE s32le           PCM signed 32-bit little-endian
 DE s8              PCM signed 8-bit
 DE u16be           PCM unsigned 16-bit big-endian
 DE u16le           PCM unsigned 16-bit little-endian
 DE u24be           PCM unsigned 24-bit big-endian
 DE u24le           PCM unsigned 24-bit little-endian
 DE u32be           PCM unsigned 32-bit big-endian
 DE u32le           PCM unsigned 32-bit little-endian
 DE u8              PCM unsigned 8-bit
사용예
 ffmpeg -f pcm_s32le input_filename.raw output.wav
 ffmpeg -f u16le -ar 44100 -ac 1 -i input.raw output.wav
 ffmpeg -i input -c:a pcm_s32le output.wav
 ffmpeg -i input -f s16le -c:a pcm_s16le output.raw
Comments