1
我試着用下面的命令:如何使用ffmpeg轉換爲Nellymoser 16kHz?
ffmpeg -i Fairytale.mp3 -acodec nellymoser -ar 16000 -ac 1 output.flv
,並得到一個錯誤
Input #0, mp3, from 'Fairytale.mp3':
Duration: 00:03:03.64, start: 0.000000, bitrate: 96 kb/s
Stream #0.0: Audio: mp3, 44100 Hz, 2 channels, s16, 96 kb/s
[nellymoser @ 0x7fa8c0]flv does not support that sample rate, choose from (44100, 22050, 11025).
Output #0, flv, to 'output.flv':
Stream #0.0: Audio: nellymoser, 16000 Hz, 1 channels, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Could not write header for output file #0 (incorrect codec parameters ?)
我知道肯定,即FLV +是Nellymoser做supprt 16千赫,但應設置獨立的格式爲零率(任意Nellymoser格式爲6,而16kHz爲4)。
是否可以在ffmpeg中分別設置聲音重採樣參數與頭部填充?
答案,順便說一句,不要@notify其他答案的海報,FYI –