Код: Выделить всё
await FFMpegArguments
.FromPipeInput(new StreamPipeSource(fileStream.OpenReadStream()))
.OutputToPipe(new StreamPipeSink(outputStream), options => options.WithCustomArgument("-af loudnorm=print_format=json"))
.ProcessAsynchronously();
Код: Выделить всё
System.IO.IOException: 'Pipe is broken.'
This exception was originally thrown at this call stack:
System.IO.Pipes.PipeStream.PipeValueTaskSource.GetResult(short)
System.IO.Pipes.PipeStream.PipeValueTaskSource.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(short)
System.IO.Stream.CopyToAsync.__Core|27_0(System.IO.Stream, System.IO.Stream, int, System.Threading.CancellationToken) in Stream.cs
FFMpegCore.Arguments.InputPipeArgument.ProcessDataAsync(System.Threading.CancellationToken)
FFMpegCore.Arguments.PipeArgument.During(System.Threading.CancellationToken)
FFMpegCore.FFMpegArguments.During(System.Threading.CancellationToken)
FFMpegCore.FFMpegArgumentProcessor.Process(Instances.ProcessArguments, System.Threading.CancellationTokenSource)
FFMpegCore.FFMpegArgumentProcessor.ProcessAsynchronously(bool, FFMpegCore.FFOptions)
Код: Выделить всё
ffmpeg -i "file.flac" -af loudnorm=print_format=json -f null -
Код: Выделить всё
{
"input_i" : "-21.87",
"input_tp" : "-7.13",
"input_lra" : "5.00",
"input_thresh" : "-32.04",
"output_i" : "-24.76",
"output_tp" : "-10.36",
"output_lra" : "4.10",
"output_thresh" : "-34.84",
"normalization_type" : "dynamic",
"target_offset" : "0.76"
}
Подробнее здесь: https://stackoverflow.com/questions/790 ... re-library