Opened 3 years ago

Closed 2 years ago

Last modified 2 years ago

#5602 closed defect (fixed)

wav: support decoding of "24.0 Floating Point (Legacy Audition Format)"

Reported by: ami_stuff Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: wav
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

"32-bit 24.0 float (type 1 – 24-bit)
If this option is selected, full 32-bit floats are actually saved (and in the range of +/-8million), but the
.wav BitsPerSample? field is set to 24 while BlockAlign? is still set to 4 bytes per channel."

already supported by libsndfile

https://www.datafilehost.com/d/af34a9c6

C:\>d:\ffmpeg -i C:\1\wav\fp_24_legacy_audition_format.wav d:\out.wav
ffmpeg version N-79947-gcd244fa Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib
modplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enabl
e-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable
-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --ena
ble-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx
264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable
-lzma --enable-decklink --enable-zlib
  libavutil      55. 24.100 / 55. 24.100
  libavcodec     57. 41.102 / 57. 41.102
  libavformat    57. 36.100 / 57. 36.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 45.100 /  6. 45.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, wav, from 'C:\1\wav\fp_24_legacy_audition_format.wav':
  Duration: 00:00:11.39, bitrate: 2116 kb/s
    Stream #0:0: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels,
 s32 (24 bit), 2116 kb/s
File 'd:\out.wav' already exists. Overwrite ? [y/N] y
[wav @ 0000000000521b20] Using AVStream.codec to pass codec parameters to muxers
 is deprecated, use AVStream.codecpar instead.
Output #0, wav, to 'd:\out.wav':
  Metadata:
    ISFT            : Lavf57.36.100
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16
 (24 bit), 1411 kb/s
    Metadata:
      encoder         : Lavc57.41.102 pcm_s16le
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s24le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Multiple frames in a packet from stream 0
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
[pcm_s24le @ 0000000000501120] Invalid PCM packet, data has size 4 but at least
a size of 6 was expected
Error while decoding stream #0:0: Invalid data found when processing input
size=     224kB time=00:00:01.29 bitrate=1411.7kbits/s speed=11.1x
video:0kB audio:224kB subtitle:0kB other streams:0kB global headers:0kB muxing o
verhead: 0.034039%
Exiting normally, received signal 2.
}}

Change History (7)

comment:1 Changed 3 years ago by richardpl

I don't think this is supported by libsndfile at all.

Could you upload normal 16 bit int and 32 bit int and 32 bit float sample as produced by same software?

comment:2 Changed 3 years ago by ami_stuff

Here is 16bit int, 32bit float and again 32bit 24.0 float:

http://www.megafileupload.com/k9lz/coole_32.7z

comment:3 Changed 3 years ago by ami_stuff

32bit int was hidden under "4-byte PCM":

http://www.megafileupload.com/oluO/32bit_int.wav

comment:5 Changed 3 years ago by cehoyos

  • Keywords wav added
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master

comment:6 Changed 2 years ago by richardpl

  • Resolution set to fixed
  • Status changed from open to closed

comment:7 Changed 2 years ago by cehoyos

Shown duration still seems wrong.

Note: See TracTickets for help on using tickets.