[英]Picamera and streaming
I have this python script and this works fine: http://picamera.readthedocs.org/en/release-1.1/recipes1.html#capturing-to-a-network-stream 我有这个python脚本,并且可以正常运行: http : //picamera.readthedocs.org/en/release-1.1/recipes1.html#capturing-to-a-network-stream
I would like to connect to this with VLC or Windows Media player. 我想使用VLC或Windows Media Player连接到此。 Anyone can help me to modify the script for this?
有人可以帮我修改脚本吗?
First install the python-vlc module using this command: 首先使用以下命令安装python-vlc模块:
pip install python-vlc
Code: 码:
import vlc
playlist = ['Path to your file']
player = vlc.MediaPlayer(playlist)
player.play()
Hope this will help you. 希望这会帮助你。 Cheers!!!
干杯!!!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.