从FLV中提取音频数据并注入MP3

时间:2009-10-17 20:21:14

标签: c# audio mp3 flv raw-data

我需要从FLV中提取音频数据并将其注入带有C#的MP3。所以我要找一个这样的库,或者如何用rawdata / file结构来做。

1 个答案:

答案 0 :(得分:3)

看看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);
}