Skip to content

Instantly share code, notes, and snippets.

@crayfishapps
crayfishapps / rtsp_authentication.py
Last active October 3, 2023 17:29 — forked from mike-zhang/rtspTcpClient_DSS.py
RTSP client with basic and digest authentication
#! /usr/bin/python
import socket,time,string,base64,hashlib,xml.etree.ElementTree as ET
m_Vars = {
"bufLen" : 1024,
"defaultServerIp" : "172.172.172.172",
"defaultServerPort" : 554,
"defaultTestUri" : "/video.mp4",
"defaultUserAgent" : "RTSP Client",