Skip to content

Instantly share code, notes, and snippets.

View s-afanasiev's full-sized avatar
🧩
Working from home

safanasiev s-afanasiev

🧩
Working from home
View GitHub Profile
@s-afanasiev
s-afanasiev / rtsp_authentication.py
Created April 25, 2023 19:22 — forked from crayfishapps/rtsp_authentication.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",