Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Children Display

Table of Contents

Introduction

  • This page dedicated to bringing up and validation of CVR functionality in R-Pi Zero.
  • CVR supporting 24/7 video recording support.It will store capturing content into local rpi device in TS format.

Required Equipment

  • Raspberry Pi 0 Device
  • SD Card
  • Power Cable
  • OTG Cable
  • Standard USB keyboard
  • Mini HDMI connector
  • HDMI Cable
  • Television set/monitor with HDMI input

System Setup

Build Procedure

$ repo init -u "https://code.rdkcentral.com/r/rdkcmf/manifests" -m rdkc-nosrc.xml -b master

$ repo sync

$ source meta-cmf-raspberrypi/setup-environment

select meta-cmf-raspberrypi/conf/machine/raspberrypi0-rdk-camera.conf

$ bitbake rdk-generic-camera-image

Image Flash Procedure

$ sudo dd if="Image Name" of="Device Name" bs=4M

Example:

sudo dd if=rdk-generic-camera-image_default_20200130060729.rootfs.rpi-sdimg of=/dev/sdb bs=4M

CVR Validation Procedure

STEP 1:

Add require SSID and PSK in /etc/wpa_supplicant.conf file in below format

network={

ssid="username"

psk="password"

}


STEP 2:

Reboot the Target

After Reboot don't do step 1 and 2.

Note : Step 1 & 2 is only applicable for fresh target boot-up with new image.


STEP 3:

WiFi connection is must needed for CVR validation for to move TS content from RPI device into local PC for to play TS content in VLC Player.

Check WiFi connection by using below command.

ifconfig


STEP 4:

check loaded module by using below command

lsmod


STEP 5:

check camera device there or not by using below command

ls /dev/video0


STEP 6:

check mediastreamer binary running status in RPI by using below command

ps -Af | grep mediastreamer


STEP 7:

Run CVR binary in background by using below command.

cvr_daemongst_kvs &


STEP 8:

Check .ts file is available or not in /tmp/cvr folder in RPI device.


STEP 9:

Move .ts file from /tmp/cvr/ folder into local PC with WiFi connection by using below command and Play .ts file in VLC player

scp root@WiFI_IP:/tmp/cvr/TS_FileName .

Example : scp root@192.168.2.70:/tmp/cvr/2020-03031:12:24:27.ts .

Demo - RDK Camera Continuous Video Recording (CVR) Support in RPI - 2020 - M3

Limitations

  • Continuous Video Recording ( CVR ) feature can record content locally on R-Pi target.
  • Need to support content upload feature to AWS.