go-sstv

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2024 License: Apache-2.0

README

go SSTV

Encoding of images into audio using the SSTV standard (and its most popular encoding modes such as Martin, Robot and Scottie).

Usage

tv := sstv.NewMartin(sstv.Martin1, &audio.Format{
  SampleRate: 41000,
  NumChannels: 1,
})

// Or for the other modes:
// sstv.NewPasokon(sstv.Pasokon3, format)
// sstv.NewRobot(sstv.Robot36, format)
// sstv.NewScottie(sstv.Scottie1, format)
// sstv.NewWrasse(sstv.WrasseSC2180, format)
// For a full list of mode constants, refer to the package documentation

For a full list of mode constants, refer to the package documentation

Command Line Interface

The package includes a command line interface for testing purposes:

# Generate a Robot36 encoded image:
$ sstv-cli -r36 -sample-rate=41000 test2.png output.wav

# Generate a Scottie1 encoded image:
$ sstv-cli -s1 -sample-rate=41000 test2.png output.wav

# Display all modes:
$ sstv-cli -help

Sample decoded

To decode, you can use the Android app Robot36 or QSSTV on Linux. The following is a sample image of a Robot36 encoded image decoded using the Android app Robot36:

Sample)

License

Copyright [year] [name] <[email]>
and other copyright owners as documented in the project's IP log.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Directories

Path Synopsis
cmd
cli
* Copyright 2018 Johannes Donath <johannesd@torchmind.com> * and other copyright owners as documented in the project's IP log.
* Copyright 2018 Johannes Donath <johannesd@torchmind.com> * and other copyright owners as documented in the project's IP log.
internal
sstv
* Copyright 2018 Johannes Donath <johannesd@torchmind.com> * and other copyright owners as documented in the project's IP log.
* Copyright 2018 Johannes Donath <johannesd@torchmind.com> * and other copyright owners as documented in the project's IP log.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL