I've tested your code with a random wave file and it worked perfectly. Then I downloaded a stereo 32-bit float data wave sample from here and I got the same error as you: ERROR: Ensure that samples are integers (e.g. not floating-point numbers) Then I debugged the code and following...
I just needed to replace the demuxer with a parsar, which is (apparently) necessary. Derp. I used flacparse, of course.
I recently had a ASP.NET MVC 5 application where I needed to convert .mp4 to .webm and this worked successfully, so this is an idea to apply the same concept that worked with video files but in this instance they would be audio files. First, you would download the FFMPEG...
Both will make the same decoded output Make FLAC from WAV: $ ffmpeg -i input.wav ffmpeg.flac $ flac -o flac.flac input.wav Compare MD5 hashes of each decoded file: The input file: $ ffmpeg -v 1 -i input.wav -f md5 - MD5=1a567b5d97e62a6656283d24850b707f ffmpeg output: $ ffmpeg -v 1 -i ffmpeg.flac -f...