Giter Club home page Giter Club logo

sturmflut's Introduction

Sturmflut

Sturmflut is a very fast pixelflut client with full IPv6 support written entirely in C. It can handle both ordinary image files and animations.

Compiling

Dependencies

  • pkg-config
  • pthread
  • ImageMagick
  • MagickWand

On debian-based systems all required dependencies can be installed using

apt-get install build-essential pkg-config libmagick++-dev libmagickwand-dev

Use make.

Usage

./sturmflut <host> [file to send] [-p <port>] [-a <source ip address>] [-i <0|1>] [-t <number of threads>] [-m] [-o <offset-spec>] [-O] [-s <percentage>] [-S] [-h]

host: IP address of pixelflut server
file to send: Image/Animation to show

-p: Server port
-i: Ignore broken broken pipe
-t: Number of threads used for flooding
-m: Monochrome mode (send only 0|1 instead of RRGGBBAA)
-o: Offset at which to draw, format: <x-offset>:<y-offset>
-O: Optimize animations, send only pixels that have changed between frames
-s: Sparse mode, send only <percentage> of pixels
-S: Data saver mode, transmit every frame of an animation only once instead of flooding it
-h: Show usage

Example

./sturmflut 127.0.0.1 animation.gif

Searching for a fast pixelflut server? Check out shoreline

sturmflut's People

Contributors

manawyrm avatar tobleminer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sturmflut's Issues

Weird "Operation not permitted" error

real world example

Will send 'image.png' to IP:PORT
Loading animation...
1/1 frames loaded                                     
Animation loaded
Shuffling animation...
1/1 frames shuffled                                   
Shuffling complete
Converting animation to pixelflut commands...
1/1 frames converted                                  
Conversion finished
Starting to flut
Failed to connect: Operation not permitted
Failed to connect: Operation not permitted
Failed to connect: Operation not permitted
Failed to connect: Operation not permitted
Failed to connect: Operation not permitted
Failed to connect: Operation not permitted
Exiting...

Errors compiling Sturmflut

Quick rundown of what i tried:

  • CentOS, Fedora, Ubuntu and Debian
  • Always running into the exact same Magickwand error
  • Tried numerous versions of Imagemagick from both their website and repo's
  • Tried removing version check

Nothing helped. Am i doing something wrong?

rm -f sturmflut /bin/sh: 1: pkg-config: not found gcc -Ofast -Wall -march=native -DIMAGICK= image.c network.c main.c progress.c -lpthread pkg-config --cflags --libs MagickWand-o sturmflut /bin/sh: 1: pkg-config: not found In file included from image.c:9: image.h:6:13: error: operator '<' has no left operand #if IMAGICK < 7 ^ image.h:9:11: fatal error: MagickWand/MagickWand.h: No such file or directory #include <MagickWand/MagickWand.h> ^~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. In file included from network.c:21: image.h:6:13: error: operator '<' has no left operand #if IMAGICK < 7 ^ image.h:9:11: fatal error: MagickWand/MagickWand.h: No such file or directory #include <MagickWand/MagickWand.h> ^~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. In file included from network.h:10, from main.h:4, from main.c:20: image.h:6:13: error: operator '<' has no left operand #if IMAGICK < 7 ^ image.h:9:11: fatal error: MagickWand/MagickWand.h: No such file or directory #include <MagickWand/MagickWand.h> ^~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:10: sturmflut] Error 1

Kind Regards,
Paul

Compiling-Instructions for macos

Not really an issue, because I found the solution, but when trying to build on MacOS, the build failes, because MacOS doesn't have sys/sendfile.h.

I was still able to compile sturmflut aufter replacing sys/sendfile.hwith importing sys/types.h, sys/socket.h and sys/uio.h.
I haven't looked much into the code, so I don't know which of those three are really necessary, but it does work on MacOS now.

UDP support

Does this utility support pixelflut over UDP?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.