Ang-YC / wx-voice

Convert audio files between Tencent apps (Weixin / Wechat, QQ) and Silk codec with other general formats such as MP3 and M4A
MIT License
146 stars 32 forks source link

转成silk后,在转会mp3报错 #3

Closed zxy198717 closed 7 years ago

zxy198717 commented 7 years ago

我在mac上是可以的,一切正常。录制的mp3转成silk通过微信发送,可以成功,并且可以播放。 迁移到Ubuntu 16.04后,录制的mp3能转成silk, 也能发送成功,但是点播放,没有任何声音。

我在Ubuntu上尝试了以下操作,转化之后的silk,在转回mp3的时候会报错,所以我怀疑mp3在转silk的时候有点问题。能给点什么建议吗?

非常感谢。

wx-voice encode 62b628c00d72fe9168a00d78.mp3 ./62b628c00d72fe9168a00d78.silk silk
[wx-voice]  ⠧ Running command: encode
[wx-voice]  encode success
wx-voice decode 62b628c00d72fe9168a00d78.silk ./aaaa.mp3 mp3
[wx-voice]  ⠴ Running command: decode
[wx-voice]  ERROR  decode not successful, file not supported

环境信息: ubuntu 16.04 ffmpeg version 3.3.4-1~16.04.york0 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609 configuration: --prefix=/usr --extra-version='1~16.04.york0' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 / 6. 82.100 libavresample 3. 5. 0 / 3. 5. 0 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 libpostproc 54. 5.100 / 54. 5.100 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Ang-YC commented 7 years ago

已经制造了同样的问题,确定了是 bug,完成后会更新

Ang-YC commented 7 years ago

新版本已经解决了这个问题,可透过下列代码更新

npm install wx-voice@latest --save
npm install wx-voice@latest -g
wx-voice compile

谢谢支持 =)

Ang-YC commented 7 years ago

想确认下目前没问题了吧?