avformat: add DFPWM WAV container support

Multimedia / FFmpeg - Jack Bruienne [gmail.com] - 10 March 2022 13:11 UTC

This commit adds support for storing DFPWM audio in a WAV container. It uses the WAVEFORMATEXTENSIBLE structure, following these conventions: https://gist.github.com/MCJack123/90c24b64c8e626c7f130b57e9800962c The implementation is very simple: it just adds the GUID to the list of WAV GUIDs, and modifies the WAV muxer to always use WAVEFORMATEXTENSIBLE format with that GUID.

This creates a standard container format for DFPWM besides raw data. It will allow users to transfer DFPWM audio in a standard container format, with the sample rate and channel count contained in the file as opposed to being an external parameter as in the raw format.

This format is already supported in my AUKit library, which is the CC analog to libav (albeit much smaller). Support in other applications is TBD.

e6e3aae294 avformat: add DFPWM WAV container support
libavformat/riff.c | 3 +++
libavformat/riffenc.c | 4 ++--
libavformat/version.h | 2 +-
3 files changed, 6 insertions(+), 3 deletions(-)

  • Share