[FFmpeg-trac] #9397(undetermined:new): Allow any ADPCM block size to support XAudio2
FFmpeg
trac at avcodec.org
Sun Aug 29 17:14:01 EEST 2021
#9397: Allow any ADPCM block size to support XAudio2
-------------------------------------+-------------------------------------
Reporter: Thomas | Type:
Cashman | enhancement
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
Related to https://trac.ffmpeg.org/ticket/6585 and
https://github.com/MonoGame/MonoGame/issues/5662
Microsoft measures the size of a block in samples for XAudio2
(https://msdn.microsoft.com/de-
de/library/windows/desktop/ee415711(v=vs.85).aspx).
From Github thread:
FFMPEG forces the block size to be a power of 2 which appears to generate
invalid samples per block. A block size of 70 would be needed to generate
a valid 128 samples per block.
How to reproduce:
{{{
% ffmpeg.exe -y -i sample.ogg -vn -c:a adpcm_ms -block_size 70 -b:a 128000
-ar 36000 -f:a wav -strict experimental result.wav
ffmpeg version 4.4
Downloaded from https://github.com/BtbN/FFmpeg-Builds/releases
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9397>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list