senseye_cameras.output package¶
Submodules¶
senseye_cameras.output.audio_file module¶
-
class
senseye_cameras.output.audio_file.
AudioFile
(**kwargs)[source]¶ Bases:
senseye_cameras.output.file.File
Records audio to a file.
- Args:
path (str): Output path of audio. config (dict): Configuration dictionary. Accepted keywords:
channels (int): number of audio channels samplerate (int): audio sample rate subtype (str): audio type
senseye_cameras.output.file module¶
-
class
senseye_cameras.output.file.
File
(path=None, **kwargs)[source]¶ Bases:
senseye_cameras.output.output.Output
Records byte streams to a file.
senseye_cameras.output.h264_pipe module¶
-
class
senseye_cameras.output.h264_pipe.
H264Pipe
(**kwargs)[source]¶ Bases:
senseye_cameras.output.output.Output
Converts raw video to a h264 stream. h264 data can be accessed by passing a callback to the config that access the data positional argument.
- for example:
- def my_callback(data):
- print(f’My h264 bytestream data: {data}’)
h264_pipe = H264Pipe(config={‘callback’: my_callback})
- Args:
- config (dict): Configuration dictionary. Accepted keywords:
- callback (func): user passed in function that gives the user access to the h264 data.
- Accepts the data positional argument.
block_size (int): amount of h264 bytes to read in the callback func. fps: (int) pixel_format (str): pixel format of the inputted raw video (eg: rgb24)
senseye_cameras.output.output module¶
senseye_cameras.output.output_factory module¶
senseye_cameras.output.video_file module¶
-
class
senseye_cameras.output.video_file.
VideoFile
(**kwargs)[source]¶ Bases:
senseye_cameras.output.file.File
Records video to a file.
Automatically detects the correct codec to use based on the path suffix. Supported suffixes:
.avi
,.mp4
,.mkv
,.yuv
,.raw
- Args:
path (str): Output path of video. config (dict): Configuration dictionary. Accepted keywords:
fps (int) pixel_format (str): pixel format of the incoming raw video codec (str) format (str): defaults to ‘rawvideo’ res (tuple)