Skip to content
Automatically exported from
C++ Python
Branch: master
Clone or download

Latest commit

Michael McCandless
Michael McCandless Merge pull request #3 from daveselinger/add_stop_rtsp
Add stopRTSP command
Latest commit cd4ce90 Jul 3, 2017


Type Name Latest commit message Commit time
Failed to load latest commit information.
README.txt tweak README Feb 6, 2014 Added comments documenting the issue with shutdown callbacks in the p… Jan 25, 2017
module.cpp module now supports up to 1000 clients, and fixes the seg fault upon … Jan 25, 2017 Fix missing library path in live555 Feb 3, 2016


Mike McCandless, mikemccand at

This contains a small Python wrapper around the Live555 Streaming
Media APIs, so that you can load video frames.  It only wraps a tiny,
tiny subset of all of Live555's APIs, specifically the APIs necessary
to pull frames via RTSP/RTP from an IP camera.

I've only tested on Linux with Python 3, with the surprisingly
excellent Lorex LNB2151/LNB2153 cameras, with H264 video.  Please
report back if you succeed with other cameras.


  * First, download and compile/install the Live555 library from, and unzip/tar it and run:

    * ./genMakefiles linux
    * export CPPFLAGS=-fPIC CFLAGS=-fPIC
    * make
    * [optional: make install]

  * If you unzip/tar'd Live555 in this directory (the pylive555
    checkout), to the sub-directory "live", then you can skip this
    step; otherwise, edit INSTALL_DIR in to point the live
    headers and libraries.

  * Build the python bindings: python3 build; make sure
    there are no errors.

  * Copy the resulting .so (from build/lib/*.so) to somewhere onto
    your PYTHONPATH.

  * Run the example

      python3 1 10 out.264
    That will record 10 seconds of H264 video from the camera at, channel 1, saving it to the file out.264.
You can’t perform that action at this time.