dongzantai7570 2019-05-27 13:39
浏览 117

如何使用PHP FFMPEG更改音频二进制标头字节偏移

I use the following method to create a WNB file that is flashable to my Electric Unicycle Ninebot Z10

First audacity to make the file raw pcm 16khz 16bit mono littleendian Then wnb-slicer golang app to convert that raw file into wnb.

Today i did the same with ffmpeg

ffmpeg -i $1 -acodec pcm_s16le -f s16le -ac 1 -ar 16000 -acodec pcm_s16le $1.raw
../wnb-slicer-master/wnb-slicer -file-name $1.raw

where $1 is the original file

About an hour ago i did the ffmpeg part with php-ffmpeg but i can't have golang run on a webserver.

So i thought if ffmpeg does bytes manipulation like the golang app does here

Thank you in advance!

p.s. this project will help all electric unicycle owners of the Z series wheels to change audio voices/sounds on their wheels!!

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 关于#python#的问题:求帮写python代码
    • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
    • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
    • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
    • ¥15 perl MISA分析p3_in脚本出错
    • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
    • ¥15 ubuntu虚拟机打包apk错误
    • ¥199 rust编程架构设计的方案 有偿
    • ¥15 回答4f系统的像差计算
    • ¥15 java如何提取出pdf里的文字?