我使用fluent-ffmpeg模塊來轉換音頻文件。我有我想要一個MP3播放文件轉換爲.WMAFluent-ffmpeg「不是一個合適的輸出格式」
這裏是什麼樣子:
var proc = new ffmpeg({
source: 'file.mp3',
nolog: false
}).toFormat('wma')
.saveToFile('file.wma', function(stdout, stderr)
{
console.log(stderr);
});
不幸的是,我得到的錯誤:
Requested output format 'wma' is not a suitable output format
這是整個錯誤日誌:
ffmpeg version 0.8.9-4:0.8.9-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
built on Nov 9 2013 19:25:10 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
Input #0, mp3, from 'song_downloads/You Suffer.mp3':
Metadata:
title : You Suffer
artist : Napalm Death
album : Scum
genre : Death Metal
track : 12
date : 1987
Duration: 00:00:04.98, start: 0.000000, bitrate: 381 kb/s
Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 193 kb/s
Requested output format 'wma' is not a suitable output format
我知道這是不是一個ffmpeg的問題,因爲
ffmpeg -i file.mp3 file.wma
工作正常。有任何想法嗎?
嘗試'wma'不'.wma'。 – user568109
對不起,我就是這麼做的。只是複製它錯了。 – Harangue