[FFmpeg-devel] [PATCH v7 3/3] libavformat: Added DFPWM WAV container support

Jack Bruienne jackbruienne at gmail.com
Tue Mar 8 05:30:24 EET 2022


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.

Signed-off-by: Jack Bruienne <jackbruienne at gmail.com>
---
  libavformat/riff.c    | 3 +++
  libavformat/riffenc.c | 4 ++--
  2 files changed, 5 insertions(+), 2 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v7-0003-libavformat-Added-DFPWM-WAV-container-support.patch
Type: text/x-patch
Size: 2551 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20220307/a4c51aa5/attachment.bin>


More information about the ffmpeg-devel mailing list