gkbrk / apt-encoder Goto Github PK
View Code? Open in Web Editor NEWEncode images as APT audio signals
License: GNU Affero General Public License v3.0
Encode images as APT audio signals
License: GNU Affero General Public License v3.0
I was just trying to build it but it just doesn't work. It just says Assertion failed: buf[0] == 'P', file apt-encode.cpp, line 78 and if I delete that line, another error just pops up. I even tried installing another c++ compiler and it still doesn't work. I don't have make installed though.
the output file gives 0 bytes when encoded
using: "apt-encode ~/img.pgm > encode.raw"
Great Program, but where are the Minute-Markers? When I decode the processed image, the telemetry is clearly visible but the black and white stripes on the right side of the image are missing! There is only a black and a white bar continuosly.
Hi! I'm having an error when I try to feed my images in to the program...
Here's the commands I used
convert testcard.png -flatten -resize 909x511 testcard.pgm
convert testcard.png -flatten -resize 909x511 testcard2.pgm
./apt-encode testcard.pgm testcard2.pgm > encode.raw
And here's the error I get:
apt-encode: apt-encode.cpp:79: void Image::load(): Assertion `buf[1] == '2'' failed.
Aborted
Could you run me through how I am supposed to "make" the software?
I cant figure out how to build on Windows but I tried running "make" on my raspberry pi 4 and I got this output:
g++`` -Wall -Wextra -Werror -pedantic -std=c++17 -Os -flto -s -o apt-encode apt-en code.cpp
apt-encode.cpp: In constructor ‘Image::Image(const char*)’: apt-encode.cpp:72:13: error: format ‘%lu’ expects argument of type ‘long unsigne d int*’, but argument 3 has type ‘size_t*’ {aka ‘unsigned int*’} [-Werror=format =] fscanf(f, "%lu %lu %lu", &width, &m_height, &maxValue); ^~~~~~~~~~~~~ ~~~~~~
apt-encode.cpp:72:13: error: format ‘%lu’ expects argument of type ‘long unsigne d int*’, but argument 4 has type ‘size_t*’ {aka ‘unsigned int*’} [-Werror=format =] apt-encode.cpp:72:13: error: format ‘%lu’ expects argument of type ‘long unsigne d int*’, but argument 5 has type ‘size_t*’ {aka ‘unsigned int*’} [-Werror=format =] cc1plus: all warnings being treated as errors make: *** [Makefile:5: apt-encode] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.