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