ffmpeg -f gdigrab -framerate 30 -i desktop -c:v h264_nvenc -qp 0 output.mkv
Hi there.
That's my shell command that capture data from screen.
My command is waiting for press q, and when i press q command stops.
For ex i want to run my command through subprocess.Popen and stop it in 5 seconds.
How can i do that?