CamSimulate: Python app to stream Videos from files to video devices on computer
github.com
github.com
ffmpeg_command = f"ffmpeg -re -i {input_file} -f v4l2 {selected_device}"
stdscr.clear()
stdscr.addstr(0, 0, f"Running command: {ffmpeg_command}")
stdscr.refresh()
subprocess.call(ffmpeg_command.split())
No. Just, no. subprocess.call(["ffmpeg", "-re", "-i", input_file, "-f", "v4l2", selected_device])
Is how you spell that in a way that won't immediately break with a file name with a space in it. gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video10