Try to fix UDP stream
This commit is contained in:
@@ -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