8000 GitHub - avilleret/FourFor: Software for FourFor show
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

avilleret/FourFor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10000  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FourFor

Software for FourFor show

Lidar Chaignotte

The Chaignottes are connected to a Raspberry Pi that forward sensor value to the main computer thanks to a python script. Unfortunately I didn't take the time to make script starts automatically. So one need to ssh to the RPi and start the script manually. Since there are two sensors, we need 2 ssh sessions (or just one with a screen inside).

ssh lidar

The script is inside the /opt/FourFor/LidarSlip folder.

cd /opt/FourFor/LidarSlip

And the script take USB device as argument. Usually it is :

./ReadUSBSimple.py ttyUSB0

and

./ReadUSBSimple.py ttyUSB1

Compilation

export PATH=/opt/cross-pi-gcc/bin:$PATH
mkdir -p build-rpi
cd build-rpi
cmake .. -GNinja -DCMAKE_TOOLCHAIN_FILE=${PWD}/../../ofnode/of/dev/arm-linux-gnueabihf.cmake -DCMAKE_SYSROOT=`realpath "${PWD}/../../ofnode/sysroot"` -DCMAKE_INSTALL_PREFIX=${PWD}/FourFor -DOF_ROOT="${PWD}/../../ofnode/of"
ninja
ninja install

Synchronize install folder with RPi

ninja install && rsync -hvrPtl  FourFor/ pi@raspberrypi.local:/opt/FourFor

rsync -hvrPtl LidarSlip pi@lidar.local:/opt/FourFor

Transcode video for Raspberry Pi

ffmpeg -i ${file} -vcodec libx264 -profile:v high -preset fast -crf 18 -b-pyramid none -vf scale=-1:720 -acodec ac3 -ab 1536k -scodec copy encoded/${file}

Quickly display image on RPi

sudo fbi -d /dev/fb0 -T 1 -a il1.jpg

Batch resize jpg

for img in alto*.jpg; do convert $img -resize 1920x1080 $img; done
for img in tenor*.jpg; do convert $img -resize 1920x1080 $img; done
for img in basse*.jpg; do convert $img -resize 1920x1080 $img; done

Get crash dump

coredumpctl dump > score.dump

Remove audio from videos

for vid in videos_with_audio/*.mp4; do ffmpeg -i $vid -af "volume=0.0" -vcodec copy videos/${vid##*/}; done

NOTE : ${vid##*/} retains part of $vid after the last /.

About

Software for FourFor show

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
42ED
0