[chronojump] webcam play preview on windows with -pixel_format



commit 1851baa9b6d73e3a796fef5874860bfd469d88d8
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Jul 11 13:08:42 2019 +0200

    webcam play preview on windows with -pixel_format

 src/webcam/webcamFfmpeg.cs | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/webcam/webcamFfmpeg.cs b/src/webcam/webcamFfmpeg.cs
index 917240b8..dc1c2e8d 100644
--- a/src/webcam/webcamFfmpeg.cs
+++ b/src/webcam/webcamFfmpeg.cs
@@ -235,6 +235,9 @@ public class WebcamFfmpeg : Webcam
                if(videoDevicePixelFormat != "" && os == UtilAll.OperatingSystems.LINUX) {
                        parameters.Insert (i ++, "-input_format");
                        parameters.Insert (i ++, videoDevicePixelFormat);
+               } else if(videoDevicePixelFormat != "" && os == UtilAll.OperatingSystems.WINDOWS) {
+                       parameters.Insert (i ++, "-pixel_format");
+                       parameters.Insert (i ++, videoDevicePixelFormat);
                }
 
                if(os == UtilAll.OperatingSystems.LINUX)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]