当我尝试时:
sox file.wav -c 1 file.wav
我有:
sox WARN wav: Premature EOF on .wav input file
当我尝试时:
ffmpeg -i file.wav -ac 1 file.wav
我有:
[pcm_s16le @ 0x2997880] Invalid PCM packet, data has size 2 but at least a size of 4 was expected
Error while decoding stream #0:0: Invalid data found when processing input
答案1
问题在于使用同一个文件作为输入和输出。