Introduction
This article documents the usage of the Maivin GStreamer Docker container for various workflows, our example will demonstrate streaming H.264 video over RTSP to a PC running VLC.
Requirements
- Torizon for Maivin BSP 5.7.1.1 or newer.
- VideoLAN Client "VLC" installed on PC
Usage
The maivin/gstreamer:bullseye container provides the integrated Gstreamer environment along with NXP extensions to support the various hardware components found on the Maivin platform. By default a stream.sh is bundled and launched as the default entry point.
docker run -it --rm --privileged --network host maivin/gstreamer:bullseye
On the VLC side select Media->Open Network Stream then enter the IP or hostname of your Maivin using the following format (note the x are placeholders for your Maivin serial number).
rtsp://verdin-imx8mp-xxxxxxxx:8554/camera
Environment
The maivin/gstreamer container provides a few key environment variables which can be overridden to configure the stream.
- WIDTH
- Controls the width of the camera capture, defaults to 1920.
- HEIGHT
- Controls the height of the camera capture, defaults to 1080.
- PORT
- Controls the listening port for the TCP server, defaults to 8554.
- MIRROR
- Controls mirroring the camera capture, defaults to 1.
- FLIP
- Controls flipping the camera capture, defaults to 1.
Note: MIRROR/FLIP default to 1 to provide expected orientation on the Maivin when setup with the heat sink facing upwards.
Comments
0 comments
Please sign in to leave a comment.