triplepoint.rtsp_camera
Introduction
Set up and install the V4L2 RTSP camera streaming service available at: https://github.com/mpromonet/v4l2rtspserver
Check the comments in the defaults/main.yml
file for details on how to configure it.
This setup uses two main tools: v4l2-ctl
for camera configuration, and v4l2rtspserver
for managing the RTSP stream.
You can find more information about v4l2-ctl
here:
https://www.mankier.com/1/v4l2-ctl
For details about v4l2rtspserver
, visit:
https://github.com/mpromonet/v4l2rtspserver#usage
Requirements
There are no specific requirements.
Variables for Configuration
Refer to the comments in the default variables file (defaults/main.yml
) for details on settings and options.
Dependencies
There are no dependencies.
Example Playbook
Here’s how to use it in a playbook:
- hosts: whatever
roles:
- triplepoint.rtsp_camera
Role Testing
The role is tested using molecule
, and pipenv
is used to manage dependencies and the Python environment.
Setting Up Your Environment
To get started, install pipenv
:
pip install pipenv
After installing pipenv
, create a virtual environment for execution:
pipenv install --dev
Running Tests
With your environment ready, you can run tests with:
pipenv run molecule test
Updating the Lock File
You may not need to do this often, but if you change package requirements using pipenv install {some_package}
or by editing the Pipfile
, or if found dependencies are outdated, you may need to update the Pipfile.lock
:
pipenv update --dev
Remember to commit the updated Pipfile.lock
after this process.
License
MIT License
Additional Information
- For more information, visit: https://zoneminder.blogspot.com/p/rasbpeery-pi-zero-camera.html
ansible-galaxy install triplepoint.rtsp_camera