[FFmpeg-user] WAV to PCM conversion dosen't work on linux

Alexander Bieliaev alexanderb at callcabinet.com
Tue May 30 12:14:59 EEST 2023

I'm trying to convert wav audio file to pcm using this command:

*-i "unix:/tmp/..." -ar 8000 -f s16le "unix:/tmp/..." -y*

And it works fine on windows, but when I run it on linux I get the empty
output and this console output:

*ffmpeg version 4.4.1-static https://johnvansickle.com/ffmpeg/
<https://johnvansickle.com/ffmpeg/>  Copyright (c) 2000-2021 the FFmpeg
developers  built with gcc 8 (Debian 8.3.0-6)  configuration: --enable-gpl
--enable-version3 --enable-static --disable-debug --disable-ffplay
--disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig
--enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray
--enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf
--enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband
--enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis
--enable-libopus --enable-libtheora --enable-libvidstab
--enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid
--enable-libzvbi --enable-libzimg  libavutil      56. 70.100 / 56. 70.100
libavcodec     58.134.100 / 58.134.100  libavformat    58. 76.100 / 58.
76.100  libavdevice    58. 13.100 / 58. 13.100  libavfilter     7.110.100 /
 7.110.100  libswscale      5.  9.100 /  5.  9.100  libswresample   3.
 9.100 /  3.  9.100  libpostproc    55.  9.100 / 55.  9.100Input #0, wav,
Duration: N/A, bitrate: 13 kb/s  Stream #0:0: Audio: gsm_ms (1[0][0][0] /
0x0031), 8000 Hz, mono, s16, 13 kb/sStream mapping:  Stream #0:0 -> #0:0
(gsm_ms (native) -> pcm_s16le (native))Press [q] to stop, [?] for
helpOutput #0, s16le, to
Metadata:    encoder         : Lavf58.76.100  Stream #0:0: Audio:
pcm_s16le, 8000 Hz, mono, s16, 128 kb/s    Metadata:      encoder         :
Lavc58.134.100 pcm_s16lesize=       0kB time=00:00:00.00 bitrate=N/A speed=
  0x    size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
 video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknownOutput file is empty, nothing was encoded (check
-ss / -t / -frames parameters if used)*
Same thing is happening when I'm trying to convert to MP3. The original
audio file is just a normal wav file without any corruptions.

Any advice on how to fix it?

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. 
If you have received this email in error please notify the system manager. 
Please note that any views or opinions presented in this email are solely 
those of the author and do not necessarily represent those of the company. 
Finally, the recipient should check this email and any attachments for the 
presence of viruses. The company accepts no liability for any damage caused 
by any virus transmitted by this email. 

More information about the ffmpeg-user mailing list