Introduction
This article documents the usage of the Maivin GStreamer Docker container for various workflows, our example will demonstrate streaming H.265 video over TCP 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 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 -p 9000:9000 maivin/gstreamer
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).
tcp://verdin-imx8mp-xxxxxxxx:9000
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 9000.
- 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.