微信公开课
如何看待微信公开课小程序热门讨论「小程序录音上传转换问题」
摘要:小程序录音上传转换问题
展开:windows下微信开发者工具,录音然后上传到服务器通过silkv3decoder进行转换成WAV,转换正常,播放正常。但mac下的微信开发者工具录音后转换报错,点预览,用手机访问录音后上传转换也报错。。请教大神们是什么原因啊windows的微信开发者工具录音后上传到服务器转换:[OK]Convert/zxs/fxzw_pc/apachetomcat8.5.16/webapps/shout/voice/RedPacket_20171213143029172.slkto/zxs/fxzw_pc/apachetomcat8.5.16/webapps/shout/voice/RedPacket_20171213143029172.wavsuccess,butnotasilkv3encodedfile苹果下的微信开发者工具和手机上录音后上传服务器转换:[Warning]Convert/zxs/fxzw_pc/apachetomcat8.5.16/webapps/shout/voice/RedPacket_20171213140706554.slkfalse,maybenotasilkv3encodedfile.$cur_dir/silk/decoder$1$1.pcm/dev/null21if[!f$1.pcm];thenffmpegyi$1fwavar16000ac1${1%.}.$2/dev/null21ffmpeg_pid$!whilekill0$ffmpeg_pid;dosleep1;done/dev/null21[f${1%.}.$2]echoe${GREEN}[OK]${RESET}Convert$1to${1%.}.$2success22222,${YELLOW}butnotasilkv3encodedfile.${RESET}exitechoe${YELLOW}[Warning]${RESET}Convert$1false22222,maybenotasilkv3encodedfile.exitfiechoeenterintotransferffmpegyfs16leac1i$1.pcmfwavar16000b:a16ac1${1%.}.$2/dev/null21ffmpeg_pid$!whilekill0$ffmpeg_pid;dosleep1;done/dev/null21rm$1.pcm[!f${1%.}.$2]echoe${YELLOW}[Warning]${RESET}Convert$1false,maybeffmpegnoformathandlerfor$2.exitechoe${GREEN}[OK]${RESET}Convert$1To${1%.}.$2Finish.exit了解更多