satnogs-cruft/scripts/spacecruft-decode-all

85 lines
2.8 KiB
Bash
Executable File

#!/bin/bash
redstone-ogg2raw "$1"
echo
multimon-ng \
-q \
-t raw \
-a AFSK1200 \
-a AFSK2400 \
-a AFSK2400_2 \
-a AFSK2400_3 \
-a CCIR \
-a CLIPFSK \
-a DTMF \
-a DUMPCSV \
-a DZVEI \
-a EAS \
-a EEA \
-a EIA \
-a FLEX \
-a FMSFSK \
-a FSK9600 \
-a HAPN4800 \
-a MORSE_CW \
-a POCSAG512 \
-a POCSAG1200 \
-a POCSAG2400 \
-a PZVEI \
-a UFSK1200 \
-a X10 \
-a ZVEI1 \
-a ZVEI2 \
-a ZVEI3 \
-m \
"`basename $1 .ogg`".raw | \
sed -e "s/^FSK9600: //g" | \
grep -a -v ^fm \
> \
"`basename $1 .ogg`".txt
cat "`basename $1 .ogg`".txt
rm "`basename $1 .ogg`".raw
echo
exit 0
Available demodulators: POCSAG512 POCSAG1200 POCSAG2400 FLEX EAS UFSK1200 CLIPFSK FMSFSK AFSK1200 AFSK2400 AFSK2400_2 AFSK2400_3 HAPN4800 FSK9600 DTMF ZVEI1 ZVEI2 ZVEI3 DZVEI PZVEI EEA EIA CCIR MORSE_CW DUMPCSV X10 SCOPE
Usage: multimon-ng [file] [file] [file] ...
If no [file] is given, input will be read from your default sound
hardware. A filename of "-" denotes standard input.
-t <type> : Input file type (any other type than raw requires sox)
-a <demod> : Add demodulator
-s <demod> : Subtract demodulator
-c : Remove all demodulators (must be added with -a <demod>)
-q : Quiet
-v <level> : Level of verbosity (e.g. '-v 3')
For POCSAG and MORSE_CW '-v1' prints decoding statistics.
-h : This help
-A : APRS mode (TNC2 text output)
-m : Mute SoX warnings
-r : Call SoX in repeatable mode (e.g. fixed random seed for dithering)
-n : Don't flush stdout, increases performance.
-e : POCSAG: Hide empty messages.
-u : POCSAG: Heuristically prune unlikely decodes.
-i : POCSAG: Inverts the input samples. Try this if decoding fails.
-p : POCSAG: Show partially received messages.
-f <mode> : POCSAG: Disables auto-detection and forces decoding of data as <mode>
(<mode> can be 'numeric', 'alpha' and 'skyper')
-b <level> : POCSAG: BCH bit error correction level. Set 0 to disable, default is 2.
Lower levels increase performance and lower false positives.
-C <cs> : POCSAG: Set Charset.
-o : CW: Set threshold for dit detection (default: 500)
-d : CW: Dit length in ms (default: 50)
-g : CW: Gap length in ms (default: 50)
-x : CW: Disable auto threshold detection
-y : CW: Disable auto timing detection
--timestamp: Add a time stamp in front of every printed line
--label : Add a label to the front of every printed line
Raw input requires one channel, 16 bit, signed integer (platform-native)
samples at the demodulator's input sampling rate, which is
usually 22050 Hz. Raw input is assumed and required if piped input is used.