Skip to content

System.IO.IOException : Stream was too long. #574

@dfengpo

Description

@dfengpo

using var outputStream = new MemoryStream();
var processor = FFMpegArguments.FromFileInput(filePath)
.OutputToPipe(new StreamPipeSink(outputStream), opt =>
{
opt.WithAudioSamplingRate(sampleRate);
opt.ForceFormat("s16le");
});
processor.ProcessSynchronously();

The line processor.ProcessSynchronously() throw System.IO.IOException Stream was too long.
But my audio.mp3 size is 330mb.
How solve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions