添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Stack Exchange Network

Stack Exchange network consists of 182 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Visit Stack Exchange

Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.

Sign up to join this community

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

One of our applications allow user to upload several audio formats like mp3, G711 u-law or a-law etc. and it uses ffmpeg to convert those formats to wav.

Convert mp3 to wav seems easy by using the following command. What parameters can I use to convert u-law or a-law to wav?

ffmpeg -i input.mp3 output.wav

Tried the following commands for g711 u-law and all got same errors:

ffmpeg.exe -i output.g711u -acodec u-law -ar 44100 -ac 1 output.wav
ffmpeg.exe -i output.g711u output.wav
  built with gcc 5.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 24.100 / 55. 24.100
  libavcodec     57. 45.100 / 57. 45.100
  libavformat    57. 37.101 / 57. 37.101
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 46.101 /  6. 46.101
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
**output.g711u: Invalid data found when processing input**

But it works by using sox with the following command.

sox --type raw --rate 44100 -e u-law output.g711u output_file3.wav
                What command have you tried already? Where did you get stuck? Are you getting any errors?
– slhck
                Aug 23, 2019 at 7:19
                Looks like you created two accounts. You need to merge the accounts following the instructions here: superuser.com/help/merging-accounts
– CaldeiraG
                Aug 23, 2019 at 9:40