This page dedicated to bringing up and validation of RMS and CVR use case with PipeWire.
RMS: The RDKC Media Server is much more than a multi-format, multi-protocol server that delivers your media rich content across multiple screens and platforms. The RDK camera software runs on RPi-0/RPI-3 device. we can able to play live streaming content in VLC player or browser page or Mobile Application.
CVR: It using PipeWire callback to receive frames from v4l2 and also it's using AWS Kinesis Video Stream( KVS ) to perform 24/7 video recording with AWS IOT credential.
Build and Flash Procedure
Refer below link to build camera image
Fresh Bootup Setup
Can validate this use case with Ethernet network or WiFi network.
Below networking process is only applicable for WiFi network, For Ethernet network only need to connect Ethernet cable to RPI target.
Please add your WiFi network username and password to this SSID and PSK in /etc/wpa_supplicant.conf file like below format
AWS Account and IoT credential creation steps
1.AWS account is needed for to validate CVR use case. So, refer below link to create AWS account.
2.After the AWS account creation, Refer same link to create Access key ID ,Secret Access Key and Region Name of your AWS account.
3.After the AWS account creation, Need to create IoT credential with AWS CLI interface to validate CVR use case.
4.Refer below link to install AWS CLI interface package for to create AWS IoT credential.
Please install this AWS CLI package in your local linux pc. We can interact AWS account through our local linux pc with this AWS CLI interface.
Follow the below command to create config and credentials file in your local PC to interact AWS account
Once you done this aws configure in your local PC, then automatically below files will be create with below content. so, please cross check whether that is created or not.
Refer below link to create AWS IoT credential
After creation of IoT credential, we can get below list of details
Stream Name, Default Region, IoT Credential Endpoint, Certificate key, Private Kay, Role Alias and certificate key
Have to copy certificate.pem,private.pem.key and cacert.pem keys into your RPI /etc/ssl/certs/ directory
Update your AWS STREAM_NAME, AWS_DEFAULT_REGION, IOT_GET_CREDENTIAL_ENDPOINT and ROLE_ALIAS values in RPI /usr/local/cvr/cvr.conf file
Reboot the Target
After Reboot no need to follow steps 1 to 4.
Note : Step 1 to 4 is only applicable for fresh target boot-up with new image.
RMS & CVR Validation
Ethernet or WiFi ip's are must needed for this use case validation, So please confirm Ethernet/WiFi network IP availability in RPi target with "ifconfig"command.
- If there is no Ip in etho or in wlan0, Then please confirm ethernet cable connectivity in RPI for etho IP or else follow up fresh boot-up setup steps again and check wlan0 IP.
- Again if ip not generated, then check running status of wpa_supplicant service with below command
- systemctl status wpa_supplicant
Please ensure loaded camera module bcm2835-v4l2 with "lsmod"
- If bcm2834-v4l2 camera module not loaded in RPI, then try to load this module with modprobe and then check "lsmod" status
- modprobe bcm2835-v4l2
Please confirm camera device availability within /dev directory
- If video0 device not there within /dev directory, Then please check camera connectivity in both RPI target end and RPI camera end.
- Reboot the system once you modified the camera connection.
Can view RTSP live streaming in VLC player.
To view video in VLC player need to go to media→Open Network stream option in VLC and then need to give rtsp URL like below.
We can able to see live stream content in VLC Player.
Note: VLC player running system and RPI target should be in same network.
Please go to the AWS account and then select your video stream service and press "Media Playback" to view video frames.
Can view decoded video buffers in AWS