Skip to main content

Convert rtsp.c to rtsp_curl.py

Project description

Convert rtsp.c to rtsp_curl.py

A basic RTSP transfer rtsp.c


Example:

import time
from madyel import Rtsp_Curl

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(control)
rtsp.rtsp_play(stream_uri)

time.sleep(5)

rtsp.rtsp_teardown()
rtsp.rtsp_curl_close()

Install_requires
pip install scanf 
pip install pycurl
/\
||_____-----_____-----_____
||   O                  O  \
||    O\\    ___    //O    /
||       \\ /   \//        \
||         |_O O_|         /
||          ^ | ^          \
||        // UUU \\        /
||    O//            \\O   \
||   O                  O  /
||_____-----_____-----_____\
||
||.           

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rtsp-curl, version 0.7
Filename, size File type Python version Upload date Hashes
Filename, size rtsp_curl-0.7.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page