[Android Apps and Games] taimei:
@bubbleguuum

I use the Audio decoding to PCM feature in BubbleUPnP Server.

When I play a 32bit file, it is decoded to 16bit. 24bit files do not have that problem.

The following ffmpeg log shows that -f s16le is specified in FFMpegUtils: ffmepg process.

FfmpegPCMDecodeServlet : decode info is outputs "bitsPerSample":16.

I would like to see 32bit files not downconverted to 16bit.

Can you fix this problem? Or is it a bug in ffmpeg?

BubbleUPnP Server : 0.9-update43

ffmpeg decode log (32bit/96kHz file)

INFO - 55:44:42.65 - .FfmpegPCMDecodeServlet : input url: http://xxx.xxx.x.x:xxxx/minimserver/*/32bit_sample_track.wav, format: wav, ext: wav, codec: pcm_s32le, samplerate:96000, bits: 32, channels: 2, duration: 209.586667s, ReplayGain (tags): false, ReplayGain (forced track gain): null, track peak: null
INFO - 55:49:43.458 - .FFMpegUtils : ffmpeg process started, timeout: 0s: ffmpeg -seekable 1 -ss 0.000000 -i http://xxx.xxx.x.x:xxxx/minimserver/*/32bit_sample_track.wav -i /Users/home/Library/MinimServer/filters/flat95/conv96.wav -vn -f s16le -ar 96000 -ac 2 -map 0:0 -filter_complex aresample=resampler=soxr:precision=28,volume=replaygain=track,afir=gtype=none -
INFO - 55:53:42.735 - .FfmpegPCMDecodeServlet : decode info: {"contentType":"audio/wav","samplerate":96000,"channels":2,"bitsPerSample":16,"duration":209.586667,"bytesPerSecond":384000,"decodeUrl":"http://xxx.xxx.x.x:xxxx/minimserver/*/32bit_sample_track.wav","hasReplaygainApplied":false,"isAudioChanged":true,"isShoutcast":false}

ffmpeg info

INFO - 0:00:08.765 - .Main : ffmpeg version 5.0-tessus https://evermeet.cx/ffmpeg/ Copyright (c) 2000-2022 the FFmpeg developers
built with Apple clang version 11.0.0 (clang-1100.0.33.17)
configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
libavutil 57. 17.100 / 57. 17.100
libavcodec 59. 18.100 / 59. 18.100
libavformat 59. 16.100 / 59. 16.100
libavdevice 59. 4.100 / 59. 4.100
libavfilter 8. 24.100 / 8. 24.100
libswscale 6. 4.100 / 6. 4.100
libswresample 4. 3.100 / 4. 3.100
libpostproc 56. 3.100 / 56. 3.100

INFO - 0:00:08.766 - .Main : ffmpeg supports SoX resampler
INFO - 0:00:08.841 - .Main : ffmpeg supports mp3 encoding (libmp3lame)
INFO - 0:00:08.842 - .Main : ffmpeg supports libvorbis encoder
INFO - 0:00:08.842 - .Main : ffmpeg supports opus encoder
INFO - 0:00:08.842 - .Main : ffmpeg supports ac3 encoder
INFO - 0:00:08.842 - .Main : ffmpeg supports eac3 encoder
INFO - 0:00:08.842 - .Main : ffmpeg supports flac encoder
INFO - 0:00:08.842 - .Main : ffmpeg supports libx264 software encoder
INFO - 0:00:08.842 - .Main : ffmpeg supports h264_videotoolbox hardware encoder
INFO - 0:00:08.843 - .Main : ffmpeg supports experimental aac encoder
INFO - 0:00:08.891 - .Main : ffmpeg doesn't support h264_vda hardware decoder
INFO - 0:00:08.934 - .Main : ffmpeg doesn't support VDA hwaccel
INFO - 0:00:08.979 - .Main : ffmpeg supports matroska encoding
INFO - 0:00:08.979 - .Main : ffmpeg supports mpegts encoding
INFO - 0:00:09.121 - .Main : ffmpeg supports -id3v2_version option
INFO - 0:00:09.122 - .Main : ffmpeg supports the -seekable option
INFO - 0:00:09.122 - .Main : ffmpeg supports the -codec option
INFO - 0:00:09.122 - .Main : ffmpeg supports the -ignore_unknown option
INFO - 0:00:09.191 - .Main : ffmpeg supports the scale video filter
INFO - 0:00:09.241 - .Main : ffmpeg supports the aac_adtstoasc bitstream filter