gopro から PC にストリーミングするために Python で小さなスクリプトを作成しようとしています。
from selenium import webdriver
from subprocess import call
import subprocess, sys
import time
import urllib
import urllib2
pid = subprocess.Popen([sys.executable, "Sel.py"])
call(["ffplay", "-fflags", "nobuffer", "udp://:8554"])
driver = webdriver.Firefox(executable_path='/usr/bin/geckodriver')
while True:
time.sleep(10)
driver.get("http://10.5.5.9/gp/gpControl/execute?p1=gpStream&a1=proto_v2&c1=restart")
私はPythonにあまり詳しくありません。私の目的は、これらのオプションでffplayを開き、プログラムの残りの部分を実行することです(10秒ごとにページをリロードします)。スクリプトを実行すると、そのシステムコールが継続的に行われます。Python コードの実行から ffplay の実行を切り離す方法はありますか?