Modified version of SSTV Decoder
This version has no console output so it can be used in a bot.
$ pip install sstv@git+https://github.com/MaximeSharp/sstv.git
from sstv.decode import SSTVDecoder
wav_file = "my_wave_file.wav"
img_file = "my_img_file.png"
with SSTVDecoder(wav_file) as sstv:
img = sstv.decode(0.0)
if img is None:
print("Not a valid audio file")
try:
img.save(img_file)
print("Image saved successfully")
except:
print("Error while saving the image")
Original README.md
A command line slow-scan television decoder that works on audio files rather than reading a soundcard (like most other decoders). Currently supports the following modes:
- Martin 1, 2
- Scottie 1, 2, DX
- Robot 36, 72
$ git clone https://github.com/colaclanth/sstv.git
$ python setup.py install
$ sstv -d audio_file.wav -o result.png
- SSTV specification/timings - The Dayton Paper