【发布时间】:2015-10-28 05:13:55
【问题描述】:
我正在尝试使用 Raspberry PI (OS Raspbian) 中的 Flask 从家里流式传输内部 IP 摄像机。
在Python端cameras.py,我用过
from camera_pi import Camera
@app.route('/cameras/')
def index_cameras():
"""Video streaming home page"""
return render_template('cameras.html')
在cameras.hmtl 一侧我使用了
<img src='http://192.168.10.1/videostream.cgi?stream=1'>
在我的内部网络中,它运行良好。但是,在外部它不会流式传输。我不允许使用 DDNS。此外,要求是流由 Flask 应用程序处理。
我应该怎么做才能流到外面?
【问题讨论】:
标签: python flask stream raspberry-pi video-streaming