Airrec

From M1Research

(Difference between revisions)
Jump to: navigation, search
(Build/Install/Configure)
(Build/Install/Configure)
Line 35: Line 35:
*4. Directory structure preparation:
*4. Directory structure preparation:
**<code>/opt/airrec</code> - programs and scripts dir.
**<code>/opt/airrec</code> - programs and scripts dir.
-
**<code>/var/spool/airrec/live</code> - directory for saving MPEG-2 fragments.
+
**<code>/var/spool/airrec/live</code> - directory for db file and live streams.
 +
**<code>/var/spool/airrec/live/ch0</code> - directory for saving MPEG-2 fragments for channel 0.
**<code>/var/spool/airrec/dvd/master</code> - built dvd storage
**<code>/var/spool/airrec/dvd/master</code> - built dvd storage
**<code>/var/spool/airrec/dvd/temp</code> - temparatiry storage for dvd building.
**<code>/var/spool/airrec/dvd/temp</code> - temparatiry storage for dvd building.
 +
*5. Copying file:
 +
<pre>#main executable
 +
cp /usr/local/src/airrec/src/airrec /opt/airrec
 +
# database file for storing info about fragments
 +
cp /usr/local/src/airrec/src/airrec.db /var/spool/airrec/live
 +
# mpeg coder setup scripts and srt file making scripts
 +
cp /usr/local/src/airrec/scripts/airrec_srt_creator.pl /opt/airrec
 +
cp /usr/local/src/airrec/scripts/airrec_srt_watcher.sh /opt/airrec
 +
cp /usr/local/src/airrec/scripts/ivtv.setup.CODEC.sh /opt/airrec
 +
cp /usr/local/src/airrec/scripts/ivtv.setup.INPUT.sh /opt/airrec
 +
*6. Configuration file for recorder (sample, 1 channel, 2x80GB stripe for video storing):
 +
<pre>db-file=/var/spool/airrec/live/airrec.db
 +
use-channel=0
 +
ident="M1 [main]"
 +
dev-pcm=/dev/video24
 +
dev-yuv=/dev/video32
 +
dev-mpeg=/dev/video0
 +
spool=/var/spool/airrec/live/ch0
 +
spool-limit=140000
 +
#noflip
 +
vsync=25
 +
syslog=6</pre>
 +
Some parameters explanations:
 +
<pre>db-file=<filename>              <i>database file name for storin info about fragments</i>
 +
fb-mode=<mode str>              <i>Setup FrameBuffer mode ( default "1024,768,32")</i>
 +
use-channel=<N>                  <i>Activate channel N and apply further options to that channel</i>
 +
ident=<N>                        <i>Channel ident</i>
 +
dev-pcm=<filename>
 +
dev-yuv=<filename>
 +
dev-mpeg=<filename>
 +
spool=<PATH>                    <i>Location where mpg file stored</i>
 +
spool-limit=<N>                  <i>Limit stored spool to <N> Megabytes</i>
 +
vsync=<N>                        <i>Try to redraw screen at <N> fps.</i>
 +
noflip                          <i>Disable surface flipping mode.</i>
 +
config=<filename>                <i>Use config file.</i>
 +
syslog=<N>                      <i>Use LOG_LOCAL<N> facility for syslogging.</i></pre>
==Licence==
==Licence==

Revision as of 12:25, 28 March 2006

Contents

Overview

This project was developed for air monitoring, video reports (on DVD media) preparation.

Software complex consists of two parts

  • 1. PVR - video recorder, video preview and audio level monitoring, rotating recorded video (delete older parts to keep spool size in fixed size).
  • 2. web-oriented application for DVD building.

Hardware requirements

PVR uses video capture card with hardware MPEG-2 encoder (see ivtv projects for details).

Recorder MPEG-2 stream saved to hard disk, the large disk space - the more video could be saved. :-))

DirectFB is used for GUI.

Downloads

Current version 1.0 (-r42):

Build/Install/Configure

  • 1. Download source code from link above and unpack.
cd /usr/local/src
wget http://research.m1stereo.tv/downloads/airrec/airrec-1.0-r42.tar.bz2
bzip2 -cd airrec-1.0-r42.tar.bz2 | tar xvf - 
  • 2. Make sure that installed additional packets:
    • DirectFB-devel
    • sqlite-devel-3.1.2-3
  • 3. Go to source code dir and compile
cd airrec
cd src
make

If DirectFB was installed from rpm you need fix INCLUDES variable in Makefile.

  • 4. Directory structure preparation:
    • /opt/airrec - programs and scripts dir.
    • /var/spool/airrec/live - directory for db file and live streams.
    • /var/spool/airrec/live/ch0 - directory for saving MPEG-2 fragments for channel 0.
    • /var/spool/airrec/dvd/master - built dvd storage
    • /var/spool/airrec/dvd/temp - temparatiry storage for dvd building.
  • 5. Copying file:
#main executable
cp /usr/local/src/airrec/src/airrec /opt/airrec
# database file for storing info about fragments
cp /usr/local/src/airrec/src/airrec.db /var/spool/airrec/live
# mpeg coder setup scripts and srt file making scripts
cp /usr/local/src/airrec/scripts/airrec_srt_creator.pl /opt/airrec
cp /usr/local/src/airrec/scripts/airrec_srt_watcher.sh /opt/airrec
cp /usr/local/src/airrec/scripts/ivtv.setup.CODEC.sh /opt/airrec
cp /usr/local/src/airrec/scripts/ivtv.setup.INPUT.sh /opt/airrec
*6. Configuration file for recorder (sample, 1 channel, 2x80GB stripe for video storing):
<pre>db-file=/var/spool/airrec/live/airrec.db
use-channel=0
ident="M1 [main]"
dev-pcm=/dev/video24
dev-yuv=/dev/video32
dev-mpeg=/dev/video0
spool=/var/spool/airrec/live/ch0
spool-limit=140000
#noflip
vsync=25
syslog=6

Some parameters explanations:

db-file=<filename>               <i>database file name for storin info about fragments</i>
fb-mode=<mode str>               <i>Setup FrameBuffer mode ( default "1024,768,32")</i>
use-channel=<N>                  <i>Activate channel N and apply further options to that channel</i>
ident=<N>                        <i>Channel ident</i>
dev-pcm=<filename>
dev-yuv=<filename>
dev-mpeg=<filename>
spool=<PATH>                     <i>Location where mpg file stored</i>
spool-limit=<N>                  <i>Limit stored spool to <N> Megabytes</i>
vsync=<N>                        <i>Try to redraw screen at <N> fps.</i>
noflip                           <i>Disable surface flipping mode.</i>
config=<filename>                <i>Use config file.</i>
syslog=<N>                       <i>Use LOG_LOCAL<N> facility for syslogging.</i>

Licence

    airrec
    (yet another PVR)
                                                                                                                                               
    Copyright (C) 2006 Maksym Veremeyenko.
    This file is part of airrec project (air monitoring/recording with
    video reports build system)
                                                                                                                                               
    airrec is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.
                                                                                                                                               
    airrec is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
                                                                                                                                               
    You should have received a copy of the GNU General Public License
    along with airrec; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
Personal tools