Picamera和流媒体

时间:2014-01-31 23:33:50

标签: python stream camera video-streaming raspberry-pi

我有这个python脚本,这很好用: http://picamera.readthedocs.org/en/release-1.1/recipes1.html#capturing-to-a-network-stream

我想通过VLC或Windows Media播放器连接到此。 任何人都可以帮我修改脚本吗?

1 个答案:

答案 0 :(得分:0)

首先使用以下命令安装python-vlc模块:

pip install python-vlc

代码:

    import vlc
    playlist = ['Path to your file']
    player = vlc.MediaPlayer(playlist)
    player.play()

希望这会对您有所帮助。干杯!!!