+ ffmpeg -y -i sample.wav -c:a flac -compression_level 12 -f flac sample.flac ffmpeg version N-92962-g2e8b044 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.2.0 (Alpine 8.2.0) configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --disable-debug libavutil 56. 25.100 / 56. 25.100 libavcodec 58. 43.101 / 58. 43.101 libavformat 58. 25.100 / 58. 25.100 libavdevice 58. 6.101 / 58. 6.101 libavfilter 7. 47.100 / 7. 47.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc 55. 4.100 / 55. 4.100 Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, wav, from 'sample.wav': Duration: 00:02:06.63, bitrate: 1411 kb/s Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s Stream mapping: Stream #0:0 -> #0:0 (pcm_s16le (native) -> flac (native)) Press [q] to stop, [?] for help Output #0, flac, to 'sample.flac': Metadata: encoder : Lavf58.25.100 Stream #0:0: Audio: flac, 44100 Hz, stereo, s16, 128 kb/s Metadata: encoder : Lavc58.43.101 flac size= 8706kB time=00:02:06.62 bitrate= 563.2kbits/s speed=16.3x video:0kB audio:8698kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.093057% + ffmpeg -y -i sample.flac -f s16le - ffmpeg version N-92962-g2e8b044 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.2.0 (Alpine 8.2.0) configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --disable-debug libavutil 56. 25.100 / 56. 25.100 libavcodec 58. 43.101 / 58. 43.101 libavformat 58. 25.100 / 58. 25.100 libavdevice 58. 6.101 / 58. 6.101 libavfilter 7. 47.100 / 7. 47.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc 55. 4.100 / 55. 4.100 Input #0, flac, from 'sample.flac': Metadata: ENCODER : Lavf58.25.100 Duration: 00:02:06.63, start: 0.000000, bitrate: 563 kb/s Stream #0:0: Audio: flac, 44100 Hz, stereo, s16 Stream mapping: Stream #0:0 -> #0:0 (flac (native) -> pcm_s16le (native)) Press [q] to stop, [?] for help Output #0, s16le, to 'pipe:': Metadata: encoder : Lavf58.25.100 Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s Metadata: encoder : Lavc58.43.101 pcm_s16le [NULL @ 0x7f76d7f62640] sample/frame number mismatch in adjacent frames size= 21564kB time=00:02:05.17 bitrate=1411.2kbits/s speed= 272x video:0kB audio:21564kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000% + ffmpeg -y -i sample.wav -f s16le - ffmpeg version N-92962-g2e8b044 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.2.0 (Alpine 8.2.0) configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --disable-debug libavutil 56. 25.100 / 56. 25.100 libavcodec 58. 43.101 / 58. 43.101 libavformat 58. 25.100 / 58. 25.100 libavdevice 58. 6.101 / 58. 6.101 libavfilter 7. 47.100 / 7. 47.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc 55. 4.100 / 55. 4.100 Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, wav, from 'sample.wav': Duration: 00:02:06.63, bitrate: 1411 kb/s Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s Stream mapping: Stream #0:0 -> #0:0 (pcm_s16le (native) -> pcm_s16le (native)) Press [q] to stop, [?] for help Output #0, s16le, to 'pipe:': Metadata: encoder : Lavf58.25.100 Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s Metadata: encoder : Lavc58.43.101 pcm_s16le size= 21813kB time=00:02:06.62 bitrate=1411.2kbits/s speed= 558x video:0kB audio:21813kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000% + cmp sample.wav.pcm sample.flac.pcm cmp: EOF on sample.flac.pcm + echo decode failed, bug reproduced decode failed, bug reproduced