I’d like to use a python program to send different videos to different devices.
My plan is to use ffmpeg to control the video and the destination (I can do this for one destination using os.system) but I’m not sure how to write concurrent ffmpeg commands so that 6 videos are playing at the same time on different devices.
Initially I thought I could use tmux but I can’t find a solution for how to control/access different tmux windows within my python program. Am I missing something obvious?
>Solution :
You can use the python subprocess module for that: https://docs.python.org/3/library/subprocess.html