Pergunta

Preciso extrair os dados de áudio de um FLV e injetar -os em um MP3 com C#. Então, procuro uma biblioteca para isso ou como fazê -lo com a estrutura do RawData/Arquivo.

Foi útil?

Solução

Dar uma olhada em FLVEXTRATE. Um extrator de fluxo de áudio OSS FLV.

Editar: os arquivos de interesse estão sob o Library pasta. Para usá -los em seu projeto, tente o seguinte:

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);
}
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top