diff options
| -rw-r--r-- | README.md | 24 | ||||
| -rw-r--r-- | src/tools/sstv-encode.cpp | 4 |
2 files changed, 26 insertions, 2 deletions
@@ -1,2 +1,26 @@ # libsstv SSTV C encoder/decoder library for embedded systems. + +## Usage: +``` +./sstv-encode + -input (input image) type: string default: "" + -mode (SSTV mode for encoder) type: string default: "" + -output (output WAV file) type: string default: "" + -sample_rate (output audio sample rate) type: uint64 default: 48000 +``` + +## Install + +install dependencies (tested on devuan 4 chimaera - debian 11 bullseye based and debian 11 on raspberry pi): +``` +sudo apt update +sudo apt install libgoogle-glog-dev libgflags-dev libmagick++-dev libsndfile1-dev make cmake +``` +go to the `bin` folder, run cmake and then compile with make: +``` +cd bin +cmake .. +make +``` +now you can run `./sstv-encode` diff --git a/src/tools/sstv-encode.cpp b/src/tools/sstv-encode.cpp index b211e9f..9acbc57 100644 --- a/src/tools/sstv-encode.cpp +++ b/src/tools/sstv-encode.cpp @@ -18,7 +18,7 @@ /* * Command line flags */ -DEFINE_bool(logtostderr, false, "Only log to stderr"); +//DEFINE_bool(logtostderr, false, "Only log to stderr"); DEFINE_string(mode, "", "SSTV mode for encoder"); DEFINE_string(input, "", "input image"); DEFINE_string(output, "", "output WAV file"); @@ -227,4 +227,4 @@ int main(int argc, char **argv) /* all ok */ LOG(INFO) << "Successfuly exited"; return 0; -}
\ No newline at end of file +} |
