-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does this lib just support channels = 2? #17
Comments
At this point the library only handles 1 or 2 channels, although it would probably wouldn't be too hard to fix that. However, the reason I probably never implemented that is that I have never heard of the format supporting more than 2 channels. For example, if I try to encode a multichannel WAV file into
Of course it would be possible to just force a higher number of channels, but the resulting files probably would not be playable by any existing software. Have you seen multichannel IMA ADPCM files in the wild? What do you have in mind? Thanks! |
This is my testing command with
It seems that However, I think it's more reasonable to keep the number of channels unchanged The Thanks for you reply :-D |
For more details about 6 channels (aka 5.1 channel) audio file, refer to https://en.wikipedia.org/wiki/5.1_surround_sound |
I just tried the latest FFmpeg and can verify what you're seeing: FFmpeg converts a 5.1 file to stereo and drops the LFE. This happens whether I try to generate an ADPCM wav file or a stereo PCM wav file. Dropping the LFE sounds like a bug to me, but often the FFmpeg devs will claim that's the intended behavior. But the takeaway is that IMA ADPCM files can only be mono or stereo, so FFmpeg doesn't really have a choice but to mix down, and your suggestion of keeping the number of channels unchanged is impossible unless you want invalid ADPCM files that no software will play. |
It would great if this supported, FMOD (dominant sound engine for games) for example support compressing multichannel (4.0 or 5.1) wav with IMA. Many sound editor including audacity and wavosaur support plain PCM multichannel wav but get stuck if IMA used. |
I have noticed that:
and piece of code in
adpcm_converter
:Is it possible to support channels =
{4, 6, 8}
as input?The text was updated successfully, but these errors were encountered: