You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CubeSatSim/groundstation/sstv_decode.sh

34 lines
696 B

#!/bin/bash
# script to decode SSTV using rtl_fm and QSSTV from the C
echo "Script to decode SSTV from the CubeSatSim for ARISS Radio Pi"
echo
sudo systemctl stop openwebrx
sudo modprobe snd-aloop
sudo killall -9 qsstv &>/dev/null
sudo systemctl stop rtl_tcp
pkill -o chromium &>/dev/null
sudo killall -9 rtl_tcp &>/dev/null
sudo killall -9 java &>/dev/null
sudo killall -9 rtl_fm &>/dev/null
sudo killall -9 CubicSDR &>/dev/null
qsstv &
sleep 5
#rtl_fm -M fm -f 434.9M -s 48k | aplay -D hw:2,0,0 -r 48000 -t raw -f S16_LE -c 1 &
rtl_fm -M fm -f 434.9M -s 48k | tee >(aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1) | aplay -D hw:0,0 -r 48000 -t raw -f S16_LE -c 1
$SHELL

Powered by TurnKey Linux.