GithubHelp home page GithubHelp logo

poeschl / pixel-recorder Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 261 KB

A snapshot recorder operating on the Pixelflut protocol.

License: Apache License 2.0

Kotlin 97.71% Dockerfile 2.29%
pixelflut dumper image-processing kotlin pixelflut-client

pixel-recorder's Introduction

Pixel-Recorder

A PixelFlut canvas dumper written in Kotlin.

It connects to a running Pixelflut server and takes a one-time or periodic snapshot of the canvas. This way snapshots can be made on a event for example (as done on rC3).

Commandline parameters

Example:

java -jar /app/pixel-recorder.jar --host 123.456.789.123 single

docker run ghcr.io/poeschl/pixel-recorder --host 123.456.789.123 single

To get a programmatic argument help use --help as parameter.

Mode

The mode must be one of single or record. (Default: single)

Single takes one full snapshot and exits. Record will make continious snapshots every 10 seconds (period can be changes with --period).

--host <host>

Specify the host of the targeted Pixelflut server. (Default: localhost)

-p, --port <port>

Specify the port of the targeted Pixelflut server. (Default: 1234)

-c, --connections <number>

Specify number of used connections. (Default: 3)

--period

Sets the period in seconds for snapshots on record mode. (Default: 10)

-d, --debug

Enables the debugging log output

Docker

The application can also be run as docker container.

To execute the docker container run docker run ghcr.io/poeschl/pixel-recorder <commandline parameters>. All the generated files are created in the /app/output folder. To access it, create a volume mapping. A sample docker-compose is available in the repository.

pixel-recorder's People

Contributors

dependabot[bot] avatar poeschl avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

pixel-recorder's Issues

Improve threading

Right now every update area has it's own thread. This might be not the best idea.

Also when the connection to the server is lost, the thread stops and never get restarted

Robust against pixelflut disconnects

Make the recorder more robust when the pixelflut-server is not available.

Wait for the first connection on start and afterwards if the server closes the connection, ignore an update on the image buffer.
Continue the updating when the connection can be established again.

Make sure the application don't crash on a closed connection!

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.