python调用vlc拉rtsp流
#!/usr/bin/python3
#coding=utf-8
import os
import _thread
import time
isFinished = True
def startvlc(threadName, delay):
print('启动线程A')
#修改vlc安装地址, 访问的rtsp就可以直接用了
os.system(
本文介绍了一个使用Python脚本调用VLC播放器来播放RTSP流的示例。通过创建两个线程,一个用于启动VLC并播放指定的RTSP流,另一个在一段时间后终止VLC进程,实现了对流媒体的定时播放和停止。
#!/usr/bin/python3
#coding=utf-8
import os
import _thread
import time
isFinished = True
def startvlc(threadName, delay):
print('启动线程A')
#修改vlc安装地址, 访问的rtsp就可以直接用了
os.system(
2517
916
2586

被折叠的 条评论
为什么被折叠?