3
我需要從FLV中提取音頻數據,然後用C#將它注入到MP3中。所以我正在尋找這個庫或者如何用rawdata/file結構來做到這一點。從FLV中提取音頻數據並注入MP3
我需要從FLV中提取音頻數據,然後用C#將它注入到MP3中。所以我正在尋找這個庫或者如何用rawdata/file結構來做到這一點。從FLV中提取音頻數據並注入MP3
看看FLVExtract。 oss flv音頻流提取器。
編輯: 感興趣的文件在Library
文件夾下。要在您的項目中使用它們,請嘗試以下操作:
using (FLVFile flvFile = new FLVFile(fileName))
{
// first param is whether or not to extract audio streams (true)
// second param is whether or not to extract video streams (false)
// third param is whether or not to extract timecodes (false)
// fourth param is the delegate that gets called in case of an overwrite prompt (leave null in case you want to overwrite automatically)
flvFile.ExtractStreams(true, false, false, null);
}
我發現這是幾天前,我查看了源代碼,但它非常令人困惑(對於C#而言,我有點新鮮)。我只想FLV到MP3 FLVExtract比這更復雜。 – Lienau 2009-10-17 20:32:20
FLV可以包含除MP3之外的其他音頻流。因此,要麼提取音頻流,要麼轉換它。如果你想提取它,FLVExtractor是你最好的選擇。 – 2009-10-17 20:46:08
Allrighty然後... – Lienau 2009-10-17 20:51:29