【发布时间】:2009-10-17 20:21:14
【问题描述】:
我需要从 FLV 中提取音频数据并使用 C# 将其注入 MP3。所以我正在为此寻找一个库或如何使用 rawdata/file 结构。
【问题讨论】:
我需要从 FLV 中提取音频数据并使用 C# 将其注入 MP3。所以我正在为此寻找一个库或如何使用 rawdata/file 结构。
【问题讨论】:
看看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);
}
【讨论】:
using JDP; 添加到您要从中调用它的源文件中。