Multi camera system operation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
==Recording== | ==Recording== | ||
Example for 2 cameras (2 X-Cams) - list comma-separated addresses in the GET line: | # Example for 2 cameras (2 X-Cams) - list comma-separated addresses in the GET line: | ||
http://192.168.0.39/multicam/?ip=192.168.0.39,192.168.0.38 | http://192.168.0.39/multicam/?ip=192.168.0.39,192.168.0.38 | ||
# LWIR + XCAM | |||
http://192.168.0.36/multicam/?ip=192.168.0.36,192.168.0.38 | |||
* tests button to get some diagnostics | |||
* record button - starts recording on raw paritions (camera internal) | * record button - starts recording on raw paritions (camera internal) | ||
* snapshot button - saves a zip archive to host pc | * snapshot button - saves a zip archive to host pc | ||
==Recording manual LWIR+XCAM== | |||
LWIR camera: | |||
1. http://192.168.0.36/camogmgui.php | |||
2. Format-tab, select mov, enter /mnt/sda1/, click OK | |||
3. click recording | |||
XCam | |||
1. http://192.168.0.38/camogmgui.php | |||
2. (optinal?) select fast recording, click OK | |||
3. click recording | |||
===Howto=== | |||
====Basic==== | |||
# Power on | |||
# Refresh multicam gui to get camogm started | |||
# Record-button the recording will be started from the '''Current LBA''' (in /mnt/sda1/camogm.disk) | |||
====Start from the beginning of raw partition==== | |||
# Power on | |||
# Remove /mnt/sda1/camogm.disk on each camera (a new one is created by camogm on recording start) | |||
# Refresh multicam gui to get camogm started | |||
# Record-button | |||
Note: Steps 2 and 3 can be swapped. Camogms will recreate camogm.disks on recording start. The free space in the multicam gui will also update to correct value on recording start. | |||
==Download footage== | ==Download footage== | ||
| Line 12: | Line 41: | ||
Device Start LBA Current LBA End LBA | Device Start LBA Current LBA End LBA | ||
/dev/sda2 12500992 38196200 250068992 | /dev/sda2 12500992 38196200 250068992 | ||
How much is written: | |||
''(Current - Start)*512/2^30'' GB | |||
===scripts for downloading from internal SSD (via eSATA)=== | ===scripts for downloading from internal SSD (via eSATA)=== | ||
* Get [https://git.elphel.com/Elphel/elphel-tools-x393 int_ssd_download.py]: | * Get [https://git.elphel.com/Elphel/elphel-tools-x393 int_ssd_download.py]: | ||
~$ | ~$ ssh-copy-id root@192.168.0.39 | ||
~$ ssh-copy-id root@192.168.0.38 | |||
~$ python2 int_ssd_download.py -h | |||
# Download 100GB from each | # Download 100GB from each | ||
~$ | ~$ python2 int_ssd_download.py -c root@192.168.0.39 -n 10 /path | ||
~$ | ~$ python2 int_ssd_download.py -c root@192.168.0.38 -n 10 /path | ||
This script: | |||
* creates a UID (/path/UID) directory, where UID - ID of the SSD | |||
* switched the SSD to eSATA port | |||
Note: Essentially the script does ''dd''. If there is no eSATA cable it's possible to run dd over network. Something like: | |||
ssh root@192.168.0.39 "dd if=/dev/sda2 bs=20M count=10 | gzip -1 -" | dd of=image.bin.gz | |||
===scripts for extraction=== | ===scripts for extraction=== | ||
Latest revision as of 00:23, 4 August 2020
Recording
# Example for 2 cameras (2 X-Cams) - list comma-separated addresses in the GET line: http://192.168.0.39/multicam/?ip=192.168.0.39,192.168.0.38 # LWIR + XCAM http://192.168.0.36/multicam/?ip=192.168.0.36,192.168.0.38
- tests button to get some diagnostics
- record button - starts recording on raw paritions (camera internal)
- snapshot button - saves a zip archive to host pc
Recording manual LWIR+XCAM
LWIR camera: 1. http://192.168.0.36/camogmgui.php 2. Format-tab, select mov, enter /mnt/sda1/, click OK 3. click recording XCam 1. http://192.168.0.38/camogmgui.php 2. (optinal?) select fast recording, click OK 3. click recording
Howto
Basic
- Power on
- Refresh multicam gui to get camogm started
- Record-button the recording will be started from the Current LBA (in /mnt/sda1/camogm.disk)
Start from the beginning of raw partition
- Power on
- Remove /mnt/sda1/camogm.disk on each camera (a new one is created by camogm on recording start)
- Refresh multicam gui to get camogm started
- Record-button
Note: Steps 2 and 3 can be swapped. Camogms will recreate camogm.disks on recording start. The free space in the multicam gui will also update to correct value on recording start.
Download footage
- /dev/sda1 - ext4
- /dev/sda2 - raw
raw partition write pointer position
root@elphel393:~# cat /mnt/sda1/camogm.disk Device Start LBA Current LBA End LBA /dev/sda2 12500992 38196200 250068992
How much is written:
(Current - Start)*512/2^30 GB
scripts for downloading from internal SSD (via eSATA)
- Get int_ssd_download.py:
~$ ssh-copy-id root@192.168.0.39 ~$ ssh-copy-id root@192.168.0.38 ~$ python2 int_ssd_download.py -h # Download 100GB from each ~$ python2 int_ssd_download.py -c root@192.168.0.39 -n 10 /path ~$ python2 int_ssd_download.py -c root@192.168.0.38 -n 10 /path
This script:
- creates a UID (/path/UID) directory, where UID - ID of the SSD
- switched the SSD to eSATA port
Note: Essentially the script does dd. If there is no eSATA cable it's possible to run dd over network. Something like:
ssh root@192.168.0.39 "dd if=/dev/sda2 bs=20M count=10 | gzip -1 -" | dd of=image.bin.gz
scripts for extraction
- Get split_mov_jp4.php. It takes channel shift as argv[1] when splitting. Example:
~$ cd /path/UID-of-192.168.0.39 ~$ /path-to-script/split_mov_jp4.php 0 ~$ cd /path/UID-of-192.168.0.38 ~$ /path-to-script/split_mov_jp4.php 4