3 ms·
ffmpeg_command = f"ffmpeg -re -i {input_file} -f v4l2 {selected_device}" stdscr.clear() stdscr.addstr(0, 0, f"Running command: {ffmpeg_command}") st
by cwillu 3y ago
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.
- exe34 3y agoI think it's nice that some kid or novice has figured out how to do something cool and decided to package it in a way that they think others might find useful. For those of us who need it, we can discover the ffmpeg call and use that directly. Others will think this is very trivial and not worth mentioning and yet others will see it as a revelation. That's okay, we're all at different stages.