#625 closed enhancement (fixed)
support 2/3/5bit IMA ADPCM
Reported by: | ami_stuff | Owned by: | |
---|---|---|---|
Priority: | wish | Component: | avcodec |
Version: | git-master | Keywords: | adpcm roundup |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
(issue 1598)
C:\>ffmpeg -i IMAADPCM_2bits.wav ffmpeg version N-34318-g8475ec1, Copyright (c) 2000-2011 the FFmpeg developers built on Oct 31 2011 17:50:05 with gcc 4.6.1 configuration: --enable-gpl --enable-version3 --enable-runtime-cpudetect --ena ble-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable- libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --ena ble-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --en able-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 51. 22. 0 / 51. 22. 0 libavcodec 53. 26. 0 / 53. 26. 0 libavformat 53. 18. 0 / 53. 18. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 45. 3 / 2. 45. 3 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 51. 2. 0 / 51. 2. 0 [adpcm_ima_wav @ 020A90C0] Only 4-bit ADPCM IMA WAV files are supported [wav @ 020A2320] parser not found for codec adpcm_ima_wav, packets or times may be invalid. [adpcm_ima_wav @ 020A90C0] Only 4-bit ADPCM IMA WAV files are supported Last message repeated 26 times [wav @ 020A2320] Could not find codec parameters (Audio: adpcm_ima_wav ([17][0][ 0][0] / 0x0011), 44100 Hz, 2 channels, 352 kb/s) IMAADPCM_2bits.wav: could not find codec parameters
Attachments (11)
Change History (39)
by , 13 years ago
Attachment: | IMAADPCM_2bits.wav added |
---|
by , 13 years ago
Attachment: | IMAADPCM_3bits.wav added |
---|
by , 13 years ago
Attachment: | IMAADPCM_5bits.wav added |
---|
comment:1 by , 13 years ago
Component: | undetermined → avcodec |
---|---|
Priority: | normal → wish |
Reproduced by developer: | set |
Status: | new → open |
Version: | unspecified → git-master |
comment:2 by , 13 years ago
Keywords: | adpcm added |
---|
comment:3 by , 12 years ago
Keywords: | roundup added |
---|
follow-up: 5 comment:4 by , 12 years ago
comment:5 by , 12 years ago
Replying to richardpl:
What created such files?
Adobe Audition
http://helpx.adobe.com/audition/kb/supported-file-formats-audition-3.html
by , 12 years ago
comment:7 by , 12 years ago
Useless, i need specification so I can know what tables are used for non 4-bit cases. And I'm not going to hunt for big applications that can encode/decode such files. So something small as dll that does actual decoding or even better specification is required.
comment:8 by , 12 years ago
here is some info about IMA 3bit
https://icculus.org/SDL_sound/downloads/external_documentation/wavecomp.htm
comment:9 by , 12 years ago
comment:10 by , 12 years ago
follow-up: 12 comment:11 by , 12 years ago
The last one is most useful. Could you also upload mono files (created with same tool)?
by , 12 years ago
comment:12 by , 12 years ago
follow-up: 14 comment:13 by , 12 years ago
I can't accept rar. Please use somthing more sane like xz/zip-7/gz/bzip
comment:14 by , 12 years ago
Replying to richardpl:
I can't accept rar. Please use somthing more sane like xz/zip-7/gz/bzip
I'm not sure what does it mean? You don't like rar archive or what? UnRAR is available for linux and AFAICT p7zip can decompress it as well.
comment:15 by , 12 years ago
I do not have it installed and do not want to install it, because it is not free.
by , 12 years ago
Attachment: | 2bit_mono.wav added |
---|
by , 12 years ago
Attachment: | 3bit_mono.wav added |
---|
by , 12 years ago
Attachment: | 5bit_mono.wav added |
---|
comment:16 by , 12 years ago
the stereo samples are really strange - layout does not match 4bit case.
follow-up: 18 comment:17 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
Mono files plays fine, for stereo only 2bit and others appears to be incorrectly encoded.
comment:18 by , 9 years ago
Replying to richardpl:
Mono files plays fine, for stereo only 2bit and others appears to be incorrectly encoded.
attached stereo 3/5bit files plays fine in Cool Edit Pro, would be nice to support this as well ;)
by , 9 years ago
Attachment: | out_IMAADPCM_2bits.wav added |
---|
by , 9 years ago
Attachment: | out_IMAADPCM_3bits.wav added |
---|
comment:19 by , 9 years ago
attached decoding output from (2bit/3bit):
http://www.fmjsoft.com/awavestudio.html
in case it will help in anything
at least with this software there is no noise in 3bit mode
by , 9 years ago
Attachment: | out_IMAADPCM_2bits.2.wav added |
---|
comment:21 by , 9 years ago
Yes, but the same happens with mono files, so there is a bug in decoder (it supports 100% correctly only 4-bit mode) - at least it proves that 3bit stereo sample could be decoded not only by cool edit/audition.
here is the mono output:
https://www.datafilehost.com/d/4b69a339
I can upload 36kb dvi plugin from cool edit if you want to investigate this issue.
comment:23 by , 9 years ago
Not interested, I already lost too much time on this, who knows how cool edit/audition stores samples into bitstream.
comment:25 by , 9 years ago
There is a mention of IMA 3bit here, but I don't know how to test it:
https://fossies.org/dox/oss-v4.2-build2011-src-gpl/ossplay_8h_source.html (AFMT_MS_IMA_ADPCM_3BITS)
Here is Cool Edit manual (DVI/IMA ADPCM):
http://dmt.zjlsedu.org/longresty/301/040/050/L000000000122370.pdf
and I found also this:
https://www.powerdeveloper.org/blog/grzegorz%20kraszewski/did-i-write-something-about-adpcm
comment:26 by , 9 years ago
Vox Studio can converrt 3bit stereo sample as well (IMAADPCM_3bits.wav), unfortunately no source code of conversion dll.
http://www.xentec.be/download/download.html
"Download the documentation which describes the calling syntax for the file conversion DLL built into Vox Studio since version 3.0. This also contains a program example. This is for experienced programmers only."
http://www.xentec.be/download/vcdlldoc.zip
It can also save 3bit IMA ADPCM, but only mono AFAICT.
What created such files?