Difference between revisions of "Live CD"

From ElphelWiki
Jump to: navigation, search
(Debs)
Line 1: Line 1:
 
{{Manual Header}}
 
{{Manual Header}}
The Live CD based on [http://knopper.net/knoppix/ Knoppix] which is based on [http://www.debian.org/ Debian].
+
The Live CD is based on [http://knopper.net/knoppix/ Knoppix] which is based on [http://www.debian.org/ Debian].
 
== Structure ==
 
== Structure ==
The Live CD contains multipurpose GNU/Linux software and a special software for elphel cameras.
+
The Live CD contains multipurpose GNU/Linux software and special software for elphel cameras.
 
The software is organized as debian packages.
 
The software is organized as debian packages.
 
Our debian packages are presented on our [http://sourceforge.net/projects/elphel/ SourceForge page] in
 
Our debian packages are presented on our [http://sourceforge.net/projects/elphel/ SourceForge page] in
 
the [http://sourceforge.net/project/showfiles.php?group_id=105686&package_id=130302 Live-CD] and [http://sourceforge.net/project/showfiles.php?group_id=105686&package_id=120785 Players] sections.
 
the [http://sourceforge.net/project/showfiles.php?group_id=105686&package_id=130302 Live-CD] and [http://sourceforge.net/project/showfiles.php?group_id=105686&package_id=120785 Players] sections.
  
Root file system of Knoppix is compressed and cloop kernel module is needed to decompress it on-fly when it is necessary.
+
The root file system of Knoppix is compressed and the cloop kernel module is needed to decompress it on-the-fly when it is necessary.
The CD contains compressed root file system, boot loader and flash tarballs for different modeles of our cameras.
+
The CD contains the compressed root file system, boot loader and flash tarballs for different models of our cameras.
  
If you already have installed Debian or Knoppix system, you can add some our debs to work with our cameras.
+
If you already have a Debian or Knoppix system installed, you can add some of our debs to work with our cameras.
  
<ul>We recommend to install following packages from our SourceForge page:
+
<ul>We recommend installing the following packages from our SourceForge page:
 
<li>[http://prdownloads.sourceforge.net/elphel/elphel-pack_1.4.0.4_i386.deb?download elphel-pack]
 
<li>[http://prdownloads.sourceforge.net/elphel/elphel-pack_1.4.0.4_i386.deb?download elphel-pack]
It has utilites to configure network specially for cameras (for rtp stream receiving), search cameras in the LAN, update flash and helper for Mozilla/Firefox to work with .sdp files.
+
has utilities to configure the network specifically for the cameras (for rtp stream receiving), search for cameras on the LAN, update flash, and a helper for Mozilla/Firefox to work with .sdp files.
 
<li>[http://prdownloads.sourceforge.net/elphel/netcardconfig-knoppix_0.5-20-elphel-3_all.deb?download netcardconfig-knoppix elphel clone]
 
<li>[http://prdownloads.sourceforge.net/elphel/netcardconfig-knoppix_0.5-20-elphel-3_all.deb?download netcardconfig-knoppix elphel clone]
to configure network card and to make a simple bridge from several cards.
+
to configure network cards and to make a simple bridge from several cards.
 
<li>[http://prdownloads.sourceforge.net/elphel/mplayer_1.0pre7-elphel-1_i386.deb?download patched MPlayer]
 
<li>[http://prdownloads.sourceforge.net/elphel/mplayer_1.0pre7-elphel-1_i386.deb?download patched MPlayer]
to watch and to record rtp stream from our cameras.
+
to watch and to record the rtp stream from our cameras.
 
</ul>
 
</ul>
  
To install selected package(s) you may use the following command:
+
To install the selected package(s) you may use the following command:
 
  # dpkg -i --force-overwrite <deb-file-name>
 
  # dpkg -i --force-overwrite <deb-file-name>
  
Our version of netcardconfig-knoppix is dependant of iputils-arping package.
+
Our version of netcardconfig-knoppix is dependant on the iputils-arping package.
You may to istall it with:
+
You may install it with:
 
  # apt-get install iputils-arping
 
  # apt-get install iputils-arping
  
Other our packages and applayed patches contains common minor improvements and bug fixes for the base distro.
+
Our other packages and applied patches contain common minor improvements and bug fixes for the base distro.
  
 
== Usage ==
 
== Usage ==
 
=== Boot and use ===
 
=== Boot and use ===
Currently we have Live CD only for i386 architecture.
+
Currently we have a Live CD only for the i386 architecture.
  
Boot CD allows to use Linux with necessary network settings and utilites for our cameras without any modification of data on your hard drive.
+
The Boot CD allows you to use Linux with the necessary network settings and utilities for our cameras without any modification of data on your hard drive.
  
Insert our CD in CD drive and let computer to boot from this CD.
+
Insert our CD in the CD drive and let the computer boot from this CD.
It is possible you need change some BIOS settings to do it.
+
It is possible you may need to change some BIOS settings to do it.
  
You may simply to wait until system will be ready.
+
You may simply wait until the system is ready.
  
First you will see Knoppix boot menu.
+
First you will see the Knoppix boot menu.
To continue boot you can wait some time or simply press Enter. The most common intervention during boot process is setting the screen resolution to match your monitor (details below - [[http://wiki.elphel.com/index.php?title=Live_CD#Knoppix_cheat_codes_.28boot_parameters.29]]):
+
To continue the boot you can wait longer or simply press Enter. The most common intervention during the boot process is setting the screen resolution to match your monitor (details below - [[http://wiki.elphel.com/index.php?title=Live_CD#Knoppix_cheat_codes_.28boot_parameters.29]]):
 
  knoppix screen=1600x1200
 
  knoppix screen=1600x1200
  
In most case Knoppix starts succesfully and automatically detects computer hardware.
+
In most cases Knoppix starts succesfully and automatically detects the computer hardware.
  
Then network cards will be configured.
+
Then network cards will next be configured.
Config script may ask you about to make a bridge if your computer has several network cards.
+
The config script may ask you whether to make a bridge if your computer has several network cards.
Press Enter or wait some time for default configuration.
+
Press Enter or wait longer for the default configuration.
  
Then it automatically searches for elphel cameras in your LAN and makes a static html page with links.
+
Then it automatically searches for elphel cameras on your LAN and makes a static html page with links.
  
After boot completes you will see the page with cameras.
+
After the boot completes you will see the page with cameras.
  
 
==== Knoppix cheat codes (boot parameters)====
 
==== Knoppix cheat codes (boot parameters)====
Special parameters can be set at boot prompt.
+
Special parameters can be set at the boot prompt.
<dl>The first word must be a name of boot variant.
+
<dl>The first word must be a name of a boot variant.
 
<dt>knoppix<dd>Default mode.
 
<dt>knoppix<dd>Default mode.
 
<dt>expert<dd>Verbose interactive mode.
 
<dt>expert<dd>Verbose interactive mode.
Line 64: Line 64:
 
<dt>memtest<dd>RAM test.
 
<dt>memtest<dd>RAM test.
 
</dl>
 
</dl>
<dl>Further some parameters divided by blanks can follow in any order.
+
<dl>Some further parameters separated by spaces can follow in any order.
<dt>screen=1280x1024<dd>Use this if you have monitor resolution bigger than 1024x768 pixels and autodetection does not work.
+
<dt>screen=1280x1024<dd>Use this if you have a monitor resolution higher than 1024x768 pixels and autodetection does not work.
<dt>lang=XX<dd>Specify the two-letter denotation of your language.
+
<dt>lang=XX<dd>Specify the two-letter designation of your language.
 
</dl>
 
</dl>
See file "KNOPPIX/knoppix-cheatcodes.txt" on the Live CD for more in-depth information. Or online - [http://www.knoppix.net/wiki/Cheat_Codes here]
+
See the file "KNOPPIX/knoppix-cheatcodes.txt" on the Live CD for more in-depth information. Or online - [http://www.knoppix.net/wiki/Cheat_Codes here]
  
 
=== Common software for video ===
 
=== Common software for video ===
Line 76: Line 76:
 
To watch an rtp stream from our cameras you may use the following command:
 
To watch an rtp stream from our cameras you may use the following command:
 
  mplayer rtsp://camera-ip:7070/
 
  mplayer rtsp://camera-ip:7070/
Where '''camera-ip''' is a ip address of the camera.
+
Where '''camera-ip''' is the ip address of the camera.
  
 
To play a file recorded with mencoder or any other videofile you may use the following command:
 
To play a file recorded with mencoder or any other videofile you may use the following command:
 
  mplayer path-to-file
 
  mplayer path-to-file
  
Or you may use KDE menu to run mplayer in dialog mode
+
Or you may use the KDE menu to run mplayer in dialog mode
  
You may use keyboard to control playing
+
You can use the keyboard to control playing
 
*'''space''' pause/continue
 
*'''space''' pause/continue
*'''Q''' shut
+
*'''Q''' quit
  
Look mplayer man page and [http://www.mplayerhq.hu/homepage/design7/info.html site] for more information.
+
See the mplayer man page and [http://www.mplayerhq.hu/homepage/design7/info.html site] for more information.
  
 
==== mencoder ====
 
==== mencoder ====
This program is included to mplayer package.
+
This program is included in the mplayer package.
It can transcode video and audio from different formats.
+
It can transcode video and audio to and from many different formats.
For more about this see the man page, type:
+
For more about this see the man page. Type:
 
  man mencoder
 
  man mencoder
To record rtp stream from our cameras it is better to use mencoder in copy mode (without reencoding):
+
To record the rtp stream from our cameras it is better to use mencoder in copy mode (without reencoding):
 
  mencoder rtsp://camera.ip:7070 -ovc copy -fps <fps> -o filename.avi
 
  mencoder rtsp://camera.ip:7070 -ovc copy -fps <fps> -o filename.avi
 
where:
 
where:
 
*'''camera.ip''' - DNS name or IP address of the camera;
 
*'''camera.ip''' - DNS name or IP address of the camera;
*'''<fps>''' - approximate value of the frames frequency (this parameter is mandatored);
+
*'''<fps>''' - approximate value of the frame frequency (this parameter is mandatory);
*'''filename.avi''' - name of an output file.
+
*'''filename.avi''' - the name of an output file.
 
Close the terminal window or press Ctrl+C to finish recording.
 
Close the terminal window or press Ctrl+C to finish recording.
  
The following program written in unix shell will split recording video on blocks with the specified number of frames:
+
The following program written in unix shell will split recording video into blocks with the specified number of frames:
 
  while true ; do
 
  while true ; do
 
  f=`date -Iseconds`
 
  f=`date -Iseconds`
 
  mencoder rtsp://camera.ip:7070 -ovc copy -fps <fps> -frames 1000 -o $f.avi
 
  mencoder rtsp://camera.ip:7070 -ovc copy -fps <fps> -frames 1000 -o $f.avi
 
  done
 
  done
You can enter this strings "as is" on command prompt.
+
You can enter this string "as is" on command prompt.
  
 
==== ElphelOgm ====
 
==== ElphelOgm ====
Receiver for multicast RTP stream. It generates ogg/mjpeg stream on stdout.
+
A receiver for the multicast RTP stream. It generates ogg/mjpeg stream on stdout.
You can use it with mplayer or other videoplayer to watch RTP stream from the camera:
+
You can use it with mplayer or another video player to watch the RTP stream from the camera:
 
  ElphelOgm -a <multicast address> -p <multicast port> | mplayer -nocache -
 
  ElphelOgm -a <multicast address> -p <multicast port> | mplayer -nocache -
 
Or to record stream to a file:
 
Or to record stream to a file:
Line 117: Line 117:
 
Other tested players: VLC(some performance).
 
Other tested players: VLC(some performance).
  
See also [[Recorder| detaled description and roadmap]]
+
See also [[Recorder| detailed description and roadmap]]
  
 
==== ogm2mov ====
 
==== ogm2mov ====
This program is to recode ogg/mjpeg file to QuickTime .mov format.
+
This program is used to recode ogg/mjpeg file to QuickTime .mov format.
 
Usage:
 
Usage:
 
  ogm2mov -o <output file name> <input_file_name or "-" for stdin>
 
  ogm2mov -o <output file name> <input_file_name or "-" for stdin>
The program can not write to pipe, only to file.
+
The program cannot write to a pipe, only to a file.
  
 
==== GenReS plugin for Firefox ====
 
==== GenReS plugin for Firefox ====
This is a plugin for Mozilla/Firefox to embedding external application as mplayer to browser window.
+
This is a plugin for Mozilla/Firefox to allow embedding of external applications like mplayer in the browser window.
  
 
See also [[GenReS|description for javascript programmers]].
 
See also [[GenReS|description for javascript programmers]].
Line 133: Line 133:
 
==== netcardconfig ====
 
==== netcardconfig ====
 
netcardconfig is an improved version of knoppix network configurator.
 
netcardconfig is an improved version of knoppix network configurator.
It needs root priveleges.
+
It needs root privileges.
 
It has two modes: interactive and batch.
 
It has two modes: interactive and batch.
  
 
...
 
...
  
It is called from startup script on our Live CD.
+
It is called from the startup script on our Live CD.
If you have installed netcardconfig-knoppix not on our distro, it is possible you need to insert call to the script in a system startup script.
+
If you have installed netcardconfig-knoppix not from our distro, it is possible you need to insert a call to the script in a system startup script.
Our version uses arping to check IP address.
+
Our version uses arping to check the IP address.
  
 
==== netcamconfig ====
 
==== netcamconfig ====
 
Run "netcamconfig" as user "root" to apply additional network settings and some kernel parameters.
 
Run "netcamconfig" as user "root" to apply additional network settings and some kernel parameters.
  
This script adds aliases for the network card with most popular LAN ip adresses,
+
This script adds aliases for network cards with the most popular LAN ip adresses,
 
adds route records for multicast ip addresses
 
adds route records for multicast ip addresses
and changes kernel parameters to prevent long i/o operations with hard drive,  
+
and changes kernel parameters to prevent long i/o operations blocking the hard drive,  
  
It is called from startup script on our Live CD after netcardconfig.
+
It is called from the startup script on our Live CD after netcardconfig.
If you have installed elphel-pack not on our distro, possible you need to insert call for the script in a system startup script.
+
If you have installed elphel-pack not from our distro, you possibly need to insert a call for the script in a system startup script.
 
==== camsearch ====
 
==== camsearch ====
 
This shell script scans the LAN using broadcast ping and detects elphel cameras.
 
This shell script scans the LAN using broadcast ping and detects elphel cameras.
It creates file "cameras.html" in the current directory with links to found cameras and information about
+
It creates the file "cameras.html" in the current directory with links to found cameras and information about
 
software versions.
 
software versions.
It is called from system startup script after network configuration and can be restarted using "Find cameras again" link on the KDE desktop.
+
It is called from the system startup script after network configuration and can be restarted using the "Find cameras again" link on the KDE desktop.
  
 
==== flashit ====
 
==== flashit ====
This program uses Axis low-level Ethernet packets [http://developer.axis.com/doc/old/software/tools/network_boot.html see "Theory"](some detailes do not apply to the camera) to communicate withe a network boot loader hard-wired in the CPU internal ROM. That makes firmware upgrade a safe process - even if the process was interrupted and the camera was left in non-bootable state, it is always possible to start over again.
+
This program uses Axis low-level Ethernet packets [http://developer.axis.com/doc/old/software/tools/network_boot.html see "Theory"](some details do not apply to the camera) to communicate with a network bootloader hard-wired in the CPU internal ROM. This makes firmware upgrade a safe process - even if the process was interrupted and the camera was left in non-bootable state, it is always possible to start over again.
  
When the program is started without arguments (i.e. by just clicking the icon on the desktop) it offers a choice of the images available on the DVD. You may also download flash image files (elphel3?3*-flash.tar.bz2) from the files section on [https://sourceforge.net/projects/elphel Elphel project page at SourceForge.net], save them and use as an argument to flashit (i.e. drag-and-drop file icon over the flashit).
+
When the program is started without arguments (e.g. by just clicking the icon on the desktop) it offers a choice of images available on the DVD. You may also download flash image files (elphel3?3*-flash.tar.bz2) from the files section on [https://sourceforge.net/projects/elphel Elphel project page at SourceForge.net], save them and use as an argument to flashit (i.e. drag-and-drop the file icon over flashit).
  
To use flashit utility camera should be started in the firmware updgrade mode - a green button on the back panel should be held pressed when the power is applied to the camera. You may do it in any sequence - if the program was started first, you will see the program output messages immediately after the camera is started in this special mode. Flashing process takes several minutes - both LEDs on the network connector stay on until it is over.
+
To use the flashit utility, the camera should be started in firmware updgrade mode - the green button on the back panel should be held pressed down when the power is applied to the camera. You may do this in any sequence - if the program was started first, you will see the program output messages immediately after the camera is started in this special mode. The flashing process takes several minutes - both LEDs on the network connector stay on until it is over.
  
 
==== sdp-helper ====
 
==== sdp-helper ====
This script is for call from a browser. It accept temporary "sdp" file downloaded from camera and calls [[#mplayer|mplayer]] to watch stream or [[#mencoder|mencoder]] to record it.
+
This script is designed for calling from a browser. It accepts a temporary "sdp" file downloaded from camera and calls [[#mplayer|mplayer]] to view the stream or [[#mencoder|mencoder]] to record it.
In the CD it process files with mime type text/sdp. Script deletes given temporary file.
+
On the CD it processes files with the mime type text/sdp. The script deletes the given temporary file.
  
=== Install to hard drive ===
+
=== Installing to hard drive ===
=== Work with packages  ===
+
=== Working with packages  ===
Knoppix is based on Debian. So it uses debian package system.
+
Knoppix is based on Debian. So it uses the debian package system.
To list installed packages use:
+
To list the installed packages use:
 
  dpkg -l [<shell-like-template>]
 
  dpkg -l [<shell-like-template>]
To install new package from file:
+
To install a new package from file:
 
  dpkg -i <deb-filename>
 
  dpkg -i <deb-filename>
 
To install from servers:
 
To install from servers:
 
  apt-get install <package-name>
 
  apt-get install <package-name>
To remove package:
+
To remove a package:
 
  dpkg -r <package-name>
 
  dpkg -r <package-name>
To get description:
+
To get a description:
 
  dpkg -s <package-name>
 
  dpkg -s <package-name>
When boot from CD/DVD you can to install/remove packages, but all changes will be temporary till reboot.
+
When booting from CD/DVD you can install/remove packages, but all changes will be temporary until reboot.
Due to unionfs with ramfs you may temporary change any file in compressed filesystem,
+
Due to use of unionfs with ramfs you may temporarily change any file in the compressed filesystem,
 
but changes are stored in RAM.
 
but changes are stored in RAM.
  
You can get package file from any installed package:
+
You can get a package file from any installed package:
 
  dpkg-repack <package-name>
 
  dpkg-repack <package-name>
And convert it to tar.gz format which used in Slackware and easy for install to any GNU/Linux system without package manager:
+
And convert it to tar.gz format which is used in Slackware, and for easy install to any GNU/Linux system without a package manager:
 
  alien -t <file-name.deb>
 
  alien -t <file-name.deb>
  
== How to Make New CD Image ==
+
== How to Make a New CD Image ==
Here will be described usage of Live CD maker which can be downloaded from our SourceForge page.
+
Here we describe the usage of the Live CD maker which can be downloaded from our SourceForge page.
Tar archive contain several shell scripts and directories with patches and files for CD.
+
The tar archive contains several shell scripts and directories with patches and files for the CD.
 
=== Debs ===
 
=== Debs ===
This directory contains packages to install in new CD and files with list of package and file names to remove.
+
This directory contains packages to install on the new CD and files with a list of packages and file names to remove.
Script recognizes deb rpm and compressed tar archives.
+
The script recognizes deb, rpm, and compressed tar archives.
Usage of debs is preferred.
+
Use of debs is preferred.
  
Files '''"00remove-debs"''' and '''"00remove-files"''' contans respectively a lists of debian packages and files to remove '''''before''''' install and update new packages.
+
Files '''"00remove-debs"''' and '''"00remove-files"''' contain, respectively, a list of debian packages, and files to remove '''''before''''' installing and updating new packages.
 
Files '''"zzremove-debs"''' and '''"zzremove-files"''' are used similarly only '''''after''''' installation of new packages.
 
Files '''"zzremove-debs"''' and '''"zzremove-files"''' are used similarly only '''''after''''' installation of new packages.
  
When result is DVD remastering script uses some filenames but with -DVD suffixes.
+
When the result is a DVD remastering the script uses some filenames but with -DVD suffixes.
  
 
=== Patches ===
 
=== Patches ===
there are objects of 4 types:
+
there are 4 types of objects:
* diff patches, to be applyed with patch to knoppix root;
+
* diff patches, to be applied as patches to the knoppix root;
* tar.bz2 archives, to unpack in knoppix root file system;
+
* tar.bz2 archives, to be unpacked in the knoppix root file system;
* executable files which will run with knoppix root as current directory;
+
* executable files which will run with knoppix root as the current directory;
* directories are ignored by the script, can contain data for executable.
+
* directories which are ignored by the script, and can contain data for the executables.
Before applyed initrd image inpacked to knoppix root and repacked after.
+
Before application the initrd image is unpacked to the knoppix root and repacked after.
So patches can modify content of initrd.
+
So patches can modify the content of initrd.
  
Diff patches are tested before apply: it tryed with --dry-run and -p0 and p1 options.
+
Diff patches can be tested before application: they can be tried with --dry-run and -p0 and p1 options.
  
Executables at first runs with --dry-run, on this option it must check posibility but not modify files.
+
Executables are first run with --dry-run, with this option the files will be checked but it will not modify files.
  
 
=== Files to Be Placed on CD ===
 
=== Files to Be Placed on CD ===
Directory "newcd" contains files wich will be placed on CD as is.
+
The directory "newcd" contains files wich will be placed on the CD as is.
 
Put here new flash tarballs and HTML files which can be accessed without booting from the CD.
 
Put here new flash tarballs and HTML files which can be accessed without booting from the CD.
  

Revision as of 10:28, 28 December 2005

Elphel Network Cameras Manual

353/363 | Using the cameras | Camera software | Live CD | Camera hardware | Diagnostic & repair | Development documentation | 333 prices | Information | FAQ | About Elphel, Inc


The Live CD is based on Knoppix which is based on Debian.

Structure

The Live CD contains multipurpose GNU/Linux software and special software for elphel cameras. The software is organized as debian packages. Our debian packages are presented on our SourceForge page in the Live-CD and Players sections.

The root file system of Knoppix is compressed and the cloop kernel module is needed to decompress it on-the-fly when it is necessary. The CD contains the compressed root file system, boot loader and flash tarballs for different models of our cameras.

If you already have a Debian or Knoppix system installed, you can add some of our debs to work with our cameras.

    We recommend installing the following packages from our SourceForge page:
  • elphel-pack has utilities to configure the network specifically for the cameras (for rtp stream receiving), search for cameras on the LAN, update flash, and a helper for Mozilla/Firefox to work with .sdp files.
  • netcardconfig-knoppix elphel clone to configure network cards and to make a simple bridge from several cards.
  • patched MPlayer to watch and to record the rtp stream from our cameras.

To install the selected package(s) you may use the following command:

# dpkg -i --force-overwrite <deb-file-name>

Our version of netcardconfig-knoppix is dependant on the iputils-arping package. You may install it with:

# apt-get install iputils-arping

Our other packages and applied patches contain common minor improvements and bug fixes for the base distro.

Usage

Boot and use

Currently we have a Live CD only for the i386 architecture.

The Boot CD allows you to use Linux with the necessary network settings and utilities for our cameras without any modification of data on your hard drive.

Insert our CD in the CD drive and let the computer boot from this CD. It is possible you may need to change some BIOS settings to do it.

You may simply wait until the system is ready.

First you will see the Knoppix boot menu. To continue the boot you can wait longer or simply press Enter. The most common intervention during the boot process is setting the screen resolution to match your monitor (details below - [[1]]):

knoppix screen=1600x1200

In most cases Knoppix starts succesfully and automatically detects the computer hardware.

Then network cards will next be configured. The config script may ask you whether to make a bridge if your computer has several network cards. Press Enter or wait longer for the default configuration.

Then it automatically searches for elphel cameras on your LAN and makes a static html page with links.

After the boot completes you will see the page with cameras.

Knoppix cheat codes (boot parameters)

Special parameters can be set at the boot prompt.

The first word must be a name of a boot variant.
knoppix
Default mode.
expert
Verbose interactive mode.
debug
Debug mode.
failsafe
Boot without hardware autodetection.
memtest
RAM test.
Some further parameters separated by spaces can follow in any order.
screen=1280x1024
Use this if you have a monitor resolution higher than 1024x768 pixels and autodetection does not work.
lang=XX
Specify the two-letter designation of your language.

See the file "KNOPPIX/knoppix-cheatcodes.txt" on the Live CD for more in-depth information. Or online - here

Common software for video

mplayer

This is a movie player. It can play files and streams with many different video and audio formats.

To watch an rtp stream from our cameras you may use the following command:

mplayer rtsp://camera-ip:7070/

Where camera-ip is the ip address of the camera.

To play a file recorded with mencoder or any other videofile you may use the following command:

mplayer path-to-file

Or you may use the KDE menu to run mplayer in dialog mode

You can use the keyboard to control playing

  • space pause/continue
  • Q quit

See the mplayer man page and site for more information.

mencoder

This program is included in the mplayer package. It can transcode video and audio to and from many different formats. For more about this see the man page. Type:

man mencoder

To record the rtp stream from our cameras it is better to use mencoder in copy mode (without reencoding):

mencoder rtsp://camera.ip:7070 -ovc copy -fps <fps> -o filename.avi

where:

  • camera.ip - DNS name or IP address of the camera;
  • <fps> - approximate value of the frame frequency (this parameter is mandatory);
  • filename.avi - the name of an output file.

Close the terminal window or press Ctrl+C to finish recording.

The following program written in unix shell will split recording video into blocks with the specified number of frames:

while true ; do
f=`date -Iseconds`
mencoder rtsp://camera.ip:7070 -ovc copy -fps <fps> -frames 1000 -o $f.avi
done

You can enter this string "as is" on command prompt.

ElphelOgm

A receiver for the multicast RTP stream. It generates ogg/mjpeg stream on stdout. You can use it with mplayer or another video player to watch the RTP stream from the camera:

ElphelOgm -a <multicast address> -p <multicast port> | mplayer -nocache -

Or to record stream to a file:

ElphelOgm -a <multicast address> -p <multicast port> -f <fps> > video.ogm

Other tested players: VLC(some performance).

See also detailed description and roadmap

ogm2mov

This program is used to recode ogg/mjpeg file to QuickTime .mov format. Usage:

ogm2mov -o <output file name> <input_file_name or "-" for stdin>

The program cannot write to a pipe, only to a file.

GenReS plugin for Firefox

This is a plugin for Mozilla/Firefox to allow embedding of external applications like mplayer in the browser window.

See also description for javascript programmers.

Special software

netcardconfig

netcardconfig is an improved version of knoppix network configurator. It needs root privileges. It has two modes: interactive and batch.

...

It is called from the startup script on our Live CD. If you have installed netcardconfig-knoppix not from our distro, it is possible you need to insert a call to the script in a system startup script. Our version uses arping to check the IP address.

netcamconfig

Run "netcamconfig" as user "root" to apply additional network settings and some kernel parameters.

This script adds aliases for network cards with the most popular LAN ip adresses, adds route records for multicast ip addresses and changes kernel parameters to prevent long i/o operations blocking the hard drive,

It is called from the startup script on our Live CD after netcardconfig. If you have installed elphel-pack not from our distro, you possibly need to insert a call for the script in a system startup script.

camsearch

This shell script scans the LAN using broadcast ping and detects elphel cameras. It creates the file "cameras.html" in the current directory with links to found cameras and information about software versions. It is called from the system startup script after network configuration and can be restarted using the "Find cameras again" link on the KDE desktop.

flashit

This program uses Axis low-level Ethernet packets see "Theory"(some details do not apply to the camera) to communicate with a network bootloader hard-wired in the CPU internal ROM. This makes firmware upgrade a safe process - even if the process was interrupted and the camera was left in non-bootable state, it is always possible to start over again.

When the program is started without arguments (e.g. by just clicking the icon on the desktop) it offers a choice of images available on the DVD. You may also download flash image files (elphel3?3*-flash.tar.bz2) from the files section on Elphel project page at SourceForge.net, save them and use as an argument to flashit (i.e. drag-and-drop the file icon over flashit).

To use the flashit utility, the camera should be started in firmware updgrade mode - the green button on the back panel should be held pressed down when the power is applied to the camera. You may do this in any sequence - if the program was started first, you will see the program output messages immediately after the camera is started in this special mode. The flashing process takes several minutes - both LEDs on the network connector stay on until it is over.

sdp-helper

This script is designed for calling from a browser. It accepts a temporary "sdp" file downloaded from camera and calls mplayer to view the stream or mencoder to record it. On the CD it processes files with the mime type text/sdp. The script deletes the given temporary file.

Installing to hard drive

Working with packages

Knoppix is based on Debian. So it uses the debian package system. To list the installed packages use:

dpkg -l [<shell-like-template>]

To install a new package from file:

dpkg -i <deb-filename>

To install from servers:

apt-get install <package-name>

To remove a package:

dpkg -r <package-name>

To get a description:

dpkg -s <package-name>

When booting from CD/DVD you can install/remove packages, but all changes will be temporary until reboot. Due to use of unionfs with ramfs you may temporarily change any file in the compressed filesystem, but changes are stored in RAM.

You can get a package file from any installed package:

dpkg-repack <package-name>

And convert it to tar.gz format which is used in Slackware, and for easy install to any GNU/Linux system without a package manager:

alien -t <file-name.deb>

How to Make a New CD Image

Here we describe the usage of the Live CD maker which can be downloaded from our SourceForge page. The tar archive contains several shell scripts and directories with patches and files for the CD.

Debs

This directory contains packages to install on the new CD and files with a list of packages and file names to remove. The script recognizes deb, rpm, and compressed tar archives. Use of debs is preferred.

Files "00remove-debs" and "00remove-files" contain, respectively, a list of debian packages, and files to remove before installing and updating new packages. Files "zzremove-debs" and "zzremove-files" are used similarly only after installation of new packages.

When the result is a DVD remastering the script uses some filenames but with -DVD suffixes.

Patches

there are 4 types of objects:

  • diff patches, to be applied as patches to the knoppix root;
  • tar.bz2 archives, to be unpacked in the knoppix root file system;
  • executable files which will run with knoppix root as the current directory;
  • directories which are ignored by the script, and can contain data for the executables.

Before application the initrd image is unpacked to the knoppix root and repacked after. So patches can modify the content of initrd.

Diff patches can be tested before application: they can be tried with --dry-run and -p0 and p1 options.

Executables are first run with --dry-run, with this option the files will be checked but it will not modify files.

Files to Be Placed on CD

The directory "newcd" contains files wich will be placed on the CD as is. Put here new flash tarballs and HTML files which can be accessed without booting from the CD.

Scripts

download-debs

livecd-make

Other Files

Diagnostic

Road map

see LiveCD Realease Notes


Free Software and Open Hardware. Elphel, Inc., 2005