こんにちは私はそれを実行するためのスクリプトを取得することはできませんHTTP上でライブ私の画面をスチームすることですが、私は修正することはできませんエラーが発生します。Pythonのサブプロセスエラーそのようなファイルやディレクトリがありません
#!/bin/python
import subprocess
import threading
try:
subprocess.Popen("rm out.mpg")
except OSError:
pass
subprocess.Popen("ffmpeg -f x11grab -framerate 60 -video_size 1366x768 -i :0.0 out.mpg")
subprocess.Popen("python -m SimpleHTTPServer 8000 out.mpg")
エラーがPopen
ためのコマンド引数は、文字列の順序でなければなりません
Traceback (most recent call last):
File "Streaming.py", line 11, in <module>
subprocess.Popen("ffmpeg -f x11grab -framerate 60 -video_size 1366x768 -i :0.0 out.mpg")
File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
ので誤差は何ですか? – 101