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.

...

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

Image Removed

Please refer below link for RPI-0 Environment setup

EMS Flow - Environment Setup Diagram

Image Removed

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 supporting 24/7 video recording support.It will store capturing content into local rpi device in TS format.

Build and Flash Procedure

Refer below link to build camera image

Morty:

RDK-C Build Instruction for RPI-0

RDK-C Build Instruction for RPI-3


Dunfell:

RDK-C rdk-next Yocto 3.1 dunfell build for Raspberrypi


CVR

...

Validation Procedure

STEP 1:

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

...

ssid="username"

psk="password"

}

Image RemovedImage Added


STEP 2:

Reboot the Target

...

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


STEP 3:

Modify needed resolution in ems configuration file

Supported Resolution:

SD:

Width - 640 , Height - 480

Width - 720 , Height - 576

HD:

Width - 1280 , Height - 720

FULL HD  :

...

Modify resolution in below configuration file

cd /usr/bin/evo/bin

vi ems.conf

Image Removed

After resolution modification need to reboot the target.

Note: This step is not necessary,it is depends on your resolution validation.

STEP 4:

WiFi connection is must needed for EMS validationCVR 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

Image RemovedImage Added


STEP 54:

check loaded module by using below command

lsmod

Image RemovedImage Added


STEP 65:

check camera device there or not by using below command

ls /dev/video0

Image Added


STEP 6:

check mediastreamer binary running status in RPI by using below command

ps -Af | grep mediastreamer

Image AddedImage Removed


STEP 7:

On Bowser of PC:
http://dh-livevid-dev.comcast.com/bryan/demov3/evoplayersTest.html
Need to modify roomid as rpi0

Image Removed

Press "PLAY" button in WebBrowser page.

Image Removed

...

Run CVR binary in background by using below command.

cvr_daemongst_kvs &

Image Added


STEP 8:

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

Image Added


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.