转换RTSP.C到RTSP
rtsp-curl的Python项目详细描述
将rtsp.c转换为rtsp_curl.py
一个基本的rtsp传输rtsp.c
示例:
stream_uri = 'rtsp://127.0.0.1:554/video.mp4'
rtsp = Rtsp_Curl()
rtsp.init(stream_uri, 'username:password')
rtsp.auth()
rtsp.rtsp_describe()
control = rtsp.get_media_control_attribute()
rtsp.rtsp_setup(transport, control)
rtsp.rtsp_play(stream_uri)
time.sleep(5)
rtsp.rtsp_teardown()
rtsp.rtsp_curl_close()
安装需要
pip install scanf
pip install pycurl
/\
||_____-----_____-----_____
|| O O \
|| O\\ ___ //O /
|| \\ / \// \
|| |_O O_| /
|| ^ | ^ \
|| // UUU \\ /
|| O// \\O \
|| O O /
||_____-----_____-----_____\
||
||.