I have the following command in linux pkill -f ffmpeg which works on my Raspberry Pi's terminal. However it doesn't work in my Python code.
This is what I've tried:
subprocess.run('pkill -f ffmpeg', shell=True)
and
subprocess.run('pkill -f ffmpeg', shell=True)
and
os.system('pkill -f ffmpeg')
However they don't seem t work.