Try to fix UDP stream

This commit is contained in:
henryruhs
2025-05-28 21:32:11 +02:00
parent 1695e95ba5
commit 52c3391aa4
2 changed files with 2 additions and 2 deletions

View File

@@ -209,7 +209,7 @@ def set_video_duration(video_duration : Duration) -> Commands:
def capture_video() -> Commands: def capture_video() -> Commands:
return [ '-f', 'rawvideo' ] return [ '-f', 'rawvideo', '-pix_fmt', 'rgb24' ]
def ignore_video_stream() -> Commands: def ignore_video_stream() -> Commands:

View File

@@ -176,9 +176,9 @@ def open_stream(stream_mode : StreamMode, stream_resolution : str, stream_fps :
if stream_mode == 'v4l2': if stream_mode == 'v4l2':
device_directory_path = '/sys/devices/virtual/video4linux' device_directory_path = '/sys/devices/virtual/video4linux'
commands.extend(ffmpeg_builder.set_input('-')) commands.extend(ffmpeg_builder.set_input('-'))
commands.extend(ffmpeg_builder.set_stream_mode('v4l2')) commands.extend(ffmpeg_builder.set_stream_mode('v4l2'))
if is_directory(device_directory_path): if is_directory(device_directory_path):
device_names = os.listdir(device_directory_path) device_names = os.listdir(device_directory_path)