From f9090ba9fe917693049834d51b24a7a91839cbd8 Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Mon, 7 Dec 2020 17:52:47 +0100 Subject: [PATCH] Convert to mp3 instead of opus --- FFMpegCore.Test/AudioTest.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/FFMpegCore.Test/AudioTest.cs b/FFMpegCore.Test/AudioTest.cs index aee8982..bd53541 100644 --- a/FFMpegCore.Test/AudioTest.cs +++ b/FFMpegCore.Test/AudioTest.cs @@ -42,13 +42,7 @@ public async Task Audio_FromRaw() var memoryStream = new MemoryStream(); await FFMpegArguments .FromPipeInput(new StreamPipeSource(file), options => options.ForceFormat("s16le")) - .OutputToPipe(new StreamPipeSink(memoryStream), options => - { - options.WithAudioSamplingRate(48000); - options.WithAudioCodec("libopus"); - options.WithCustomArgument("-ac 2"); - options.ForceFormat("opus"); - }) + .OutputToPipe(new StreamPipeSink(memoryStream), options => options.ForceFormat("mp3")) .ProcessAsynchronously(); }