문제

I need to extract the audio data from a FLV and inject it into a MP3 with C#. So I'm look for either a library for this or how to do it with the rawdata/file structure.

도움이 되었습니까?

해결책

Take a look at FLVExtract. An oss flv audio stream extractor.

Edit: The files of interest are under the Library folder. To use them in your project try this:

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);
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top