From 9a4d20048348442654f8f6a0743424c7eda3977d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=91=D0=B0=D0=B3?= =?UTF-8?q?=D1=80=D1=8F=D0=BD=D1=86=D0=B5=D0=B2?= Date: Mon, 27 Apr 2020 19:47:56 +0300 Subject: [PATCH] Updated RawVideoPipeSource.cs --- FFMpegCore/FFMPEG/Pipes/RawVideoPipeSource.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/FFMpegCore/FFMPEG/Pipes/RawVideoPipeSource.cs b/FFMpegCore/FFMPEG/Pipes/RawVideoPipeSource.cs index 5e28647..c6f3b27 100644 --- a/FFMpegCore/FFMPEG/Pipes/RawVideoPipeSource.cs +++ b/FFMpegCore/FFMPEG/Pipes/RawVideoPipeSource.cs @@ -31,11 +31,11 @@ public string GetFormat() { if (!framesEnumerator.MoveNext()) throw new InvalidOperationException("Enumerator is empty, unable to get frame"); - - StreamFormat = framesEnumerator.Current.Format; - Width = framesEnumerator.Current.Width; - Height = framesEnumerator.Current.Height; } + StreamFormat = framesEnumerator.Current.Format; + Width = framesEnumerator.Current.Width; + Height = framesEnumerator.Current.Height; + return $"-f rawvideo -r {FrameRate} -pix_fmt {StreamFormat} -s {Width}x{Height}"; }