mirror of
https://github.com/facefusion/facefusion.git
synced 2026-11-26 03:33:54 +01:00
Try to fix UDP stream
This commit is contained in:
1 parent
1695e95ba5
commit
52c3391aa4
2 files changed
+2
-2
No files matched your search
@@ -209,7 +209,7 @@ def set_video_duration(video_duration : Duration) -> Commands:
|
||||
|
||||
|
||||
def capture_video() -> Commands:
|
||||
return [ '-f', 'rawvideo' ]
|
||||
return [ '-f', 'rawvideo', '-pix_fmt', 'rgb24' ]
|
||||
|
||||
|
||||
def ignore_video_stream() -> Commands:
|
||||
|
||||
@@ -176,9 +176,9 @@ def open_stream(stream_mode : StreamMode, stream_resolution : str, stream_fps :
|
||||
|
||||
if stream_mode == 'v4l2':
|
||||
device_directory_path = '/sys/devices/virtual/video4linux'
|
||||
|
||||
commands.extend(ffmpeg_builder.set_input('-'))
|
||||
commands.extend(ffmpeg_builder.set_stream_mode('v4l2'))
|
||||
|
||||
if is_directory(device_directory_path):
|
||||
device_names = os.listdir(device_directory_path)
|
||||
|
||||
|
||||
Reference in new issue
Block a user