X-Git-Url: http://git.scottworley.com/srec/blobdiff_plain/930b014b6739bd6b8839e88cfe802621b609e412..HEAD:/srec.py diff --git a/srec.py b/srec.py index 7421c74..962c147 100644 --- a/srec.py +++ b/srec.py @@ -111,9 +111,14 @@ def on_start_recording(_: Gtk.Button, stack: Gtk.Stack) -> None: stack.set_visible_child_name("recording") if is_sharing_enabled(stack): + out_opts = [ + '-f', 'v4l2', '-framerate', '25', '-codec:v', 'rawvideo', + '-pix_fmt', 'yuv420p', + ] sharing = Stream.start( - ['ffmpeg', '-i', '/dev/video0', '-f', 'v4l2', '-framerate', '25', - '-codec:v', 'rawvideo', '-pix_fmt', 'yuv420p', '/dev/video9']) + ['ffmpeg', '-i', '/dev/video0'] + + out_opts + ['/dev/video8'] + + out_opts + ['/dev/video9']) time.sleep(3) # Bad!! We should not be sleeping in this thread! recording = Stream.start(