Raspbery Pi [streaming]: Stationary Recording/Playback Training Assistance System

Goal: 

To create a mini-system for sportsmen that allows:

  • to sportsmen (ex. wrestlers) to record their training routines with purpose to analyse it right after the routine completion by observing on a tv-screen. This is supposed to assist in fixing of the mistakes yet during the same training session.
  • to play pre-recorded training video-materials (requires large enough hard drive)

Additional requirements:

    • wireless communication between recording and playback of mini-system
    • using same remote control for recording and playback part

Components:

  • Camera:
  • MediaCenter for playback:
    • Raspberry Pi Model 2 (ebay)
    • USB PC Remote (ebay)
    • SONNICS 750GB EXTERNAL PORTABLE HARD DRIVE 2.5″ USB 2.0 (ebay)
    • Plastic DIY Box (ebay)
    • 5v Power Adapter (ebay)

Terminology:

LIRC – Linux Infrared Remote Control

SW:

https://github.com/intelmakers/training_session_recorder/blob/master/session_recorder.py

Recording:

IR interface stand-alone testing

by http://wiki.openelec.tv/index.php/OpenELEC_FAQ to ssh OpenElec:

 - user: root
 - password: openelec

at camera at /etc/fstab define mount of openelec

//192.168.1.35/videos /home/pi/videos_share cifs username=root,password=openelec,uid=0,gid=0,rw,file_mode=0777,dir_mode=0777,iocharset=utf8 0 0

20160102_092149

Assembled camera (RPi+PiCam+IR+WiFi)

20160102_113123

Recording using raspivid

raspivid -t 0 -o file.h264

Recording stop

pkill raspivid

Conversion to mp4 with MP4Box

sudo apt-get update
sudo apt-get install gpac
MP$Box -add file.h264 file.mp4

Playback:

Limitations: USB2 only drive might be used here (USB3 drives weren’t recognized by RPi)

20151010_145649 20151016_195547 20151010_164702

All together:

20160102_140059

 

AUXILIARY SUBSYSTEM: Video streaming to another floor through Wireless-LAN

Rpi Camera Wifi -> WLAN router->wire between floors->WLAN router->Rpi Rceiver -> HDMI TV Set

Based on: Getting started with RPi Camera

Video transmission from RPi camera through LAN to RPi connected to TV by HDMI:

This is to let parents observe the training from outside of the training-room

 

 

Comments are closed.