utils.video module

Video recording library

Configuration for this module + fixture: .. code-block:: yaml

logging:
video:
enabled: True dir: video display: ”:99” quality: 10
class utils.video.Recorder(filename, display=None, quality=None)[source]

Bases: object

Recorder class

Usage:

with Recorder(filename):
    # do something

# or
r = Recorder(filename)
r.start()
# do something
r.stop()

The first way is preferred, obviously

start()[source]
stop()[source]
utils.video.process_running(pid)[source]

Check whether specified process is running