Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

One2Four ZT-XU

🏠
Working from home
Block or report user

Report or block ZT-XU

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jn0
jn0 / rtsp-rtp-sample.py
Created Dec 2, 2016
Sample Python script to employ RTSP/RTP to play a stream from an IP-cam (from stackoverflow)
View rtsp-rtp-sample.py
"""
http://stackoverflow.com/questions/28022432/receiving-rtp-packets-after-rtsp-setup
A demo python code that ..
1) Connects to an IP cam with RTSP
2) Draws RTP/NAL/H264 packets from the camera
3) Writes them to a file that can be read with any stock video player (say, mplayer, vlc & other ffmpeg based video-players)
Done for educative/demonstrative purposes, not for efficiency..!
You can’t perform that action at this time.