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:


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()

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.

Source Distribution

rtsp_curl-0.4.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file rtsp_curl-0.4.tar.gz.

File metadata

  • Download URL: rtsp_curl-0.4.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for rtsp_curl-0.4.tar.gz
Algorithm Hash digest
SHA256 0981a770a1e462fe8e10ad870c4f4679716c04a95a8f9e257889e2e5a6aeca34
MD5 1c6da7e3e5a821dcf2ef80021ad5786c
BLAKE2b-256 bb90f0724282bac5b27e89b289ef26d971583c9e9ea6f533781fff1ebdda5f6b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page