From bc3e869d119978fbae03a2bbba05b4063b2df5cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E5=BD=AA?= <1315508912@qq.com> Date: Wed, 3 Jan 2024 13:16:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=8F=82=E6=95=B0=E5=AF=BC=E8=87=B4ffmpeg?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E8=80=8C=E5=AF=BC=E8=87=B4=E7=9A=84=E8=BD=AF?= =?UTF-8?q?=E4=BB=B6=E9=97=AA=E9=80=80=E9=97=AE=E9=A2=98=20Fixes=20#14?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DownKyi.Core/FFMpeg/FFMpeg.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DownKyi.Core/FFMpeg/FFMpeg.cs b/DownKyi.Core/FFMpeg/FFMpeg.cs index ecff8d9..58baceb 100644 --- a/DownKyi.Core/FFMpeg/FFMpeg.cs +++ b/DownKyi.Core/FFMpeg/FFMpeg.cs @@ -64,7 +64,7 @@ public class FFMpeg arguments .NotifyOnError(s => LogManager.Debug(Tag, s)) - .ProcessSynchronously(); + .ProcessSynchronously(false); try { if (audio != null) @@ -98,7 +98,7 @@ public class FFMpeg /// public void Delogo(string video, string destVideo, int x, int y, int width, int height, Action action) { - var arg = FFMpegArguments + FFMpegArguments .FromFileInput(video) .OutputToFile( destVideo, @@ -107,7 +107,7 @@ public class FFMpeg .WithCustomArgument($"-vf delogo=x={x}:y={y}:w={width}:h={height}:show=0 -hide_banner")) .NotifyOnOutput(action.Invoke) .NotifyOnError(action.Invoke) - .ProcessSynchronously(); + .ProcessSynchronously(false); } /// @@ -129,7 +129,7 @@ public class FFMpeg ) .NotifyOnOutput(action.Invoke) .NotifyOnError(action.Invoke) - .ProcessSynchronously(); + .ProcessSynchronously(false); } /// @@ -150,6 +150,6 @@ public class FFMpeg .DisableChannel(Channel.Audio)) .NotifyOnOutput(action.Invoke) .NotifyOnError(action.Invoke) - .ProcessSynchronously(); + .ProcessSynchronously(false); } } \ No newline at end of file