Coder Social home page Coder Social logo

dividuum / info-beamer-nodes Goto Github PK

View Code? Open in Web Editor NEW
123.0 123.0 34.0 3.5 MB

Example nodes for info-beamer pi. Get it here:

Home Page: https://info-beamer.com/pi

License: Other

Lua 55.05% Shell 0.22% Python 42.96% GLSL 1.64% Makefile 0.12%

info-beamer-nodes's People

Contributors

dividuum avatar stkdiretto 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

info-beamer-nodes's Issues

Resume/restart playback of a video from first frame?

Hello.
I'm using Info-beamer on a RaspberryPi Zero and everything is ok.
But right now I'd like to solve two issues:

  1. after pausing a video, I'd like to resume playing it from the beginning, not from the frame next to when I stopped it.
  2. I'd like to play a video in a loop but just for a given number of repetitions.

At the moment the only solution I'm aware of is to reload the video.. but it seems to me useless to reload a video that should already be in memory in some form or another..
so what I am looking for is a function like rewind before start.

For example I have this code which checks if a video has finished playing.

    if watch_more and watch_more:state() == 'finished' and blank_before_more == 0 then
        -- play watch more
        print("watch more finished " .. count_watch_more)

        --decrement
        count_watch_more = count_watch_more - 1

        if count_watch_more == 0 then
            watch_more:dispose()
            watch_more = nil
            -- do other things
            continue_main_loop()
        else
            -- play again ??? how without reloading
        end
    end

This should play the watch_more video count_watch_more times, until the counter reaches zero. How can I achieve this without writing watch_more = raw.load_video("watch-more.mp4", false, false)

Btw, I'm using as a starting point the intermissions-many example.

Thanks
W

Cant add new images

Hi
Raspberry Pi 3 running Jessie
Using the imagewall example

All is running fine but I'm getting the following error when adding a new image into the directory:

`
[image.c] [0x1be43c0/imagewall/3.jpg] looks like 1920x1080 RGB jpg
[image.c] [0x1bdbb60/imagewall/1.jpg] looks like 1200x900 RGB jpg
[image.c] [0x1bdc2e8/imagewall/2.jpg] looks like 1200x900 RGB jpg
[image.c] [0x1bda9f8/imagewall/3.jpg] looks like 1920x1080 RGB jpg
[image.c] [0x1bdd558/imagewall/1.jpg] looks like 1200x900 RGB jpg
[image.c] [0x1bdd668/imagewall/2.jpg] looks like 1200x900 RGB jpg
[image.c] [0x1bdb5e0/imagewall/3.jpg] looks like 1920x1080 RGB jpg
[image.c] [0x1bcf780/imagewall/1.jpg] looks like 1200x900 RGB jpg
[image.c] [0x1be33e0/imagewall/2.jpg] looks like 1200x900 RGB jpg
[image.c] [0x1bcf890/imagewall/3.jpg] looks like 1920x1080 RGB jpg
[image.c] [0x1be3e18/imagewall/1.jpg] looks like 1200x900 RGB jpg

uptime 50s, cpu 9s+1s, rss 7932kb, 20 objs, 72'C
mem fps width height cpu flags name (alias)

215kb 21.8 1920 1080 1.2% R-S- '- imagewall (-)

[image.c] [0x1bdb2d0/imagewall/2.jpg] looks like 1200x900 RGB jpg
[image.c] [0x1bdbdf0/imagewall/3.jpg] looks like 1920x1080 RGB jpg
[image.c] [0x1be3110/imagewall/1.jpg] looks like 1200x900 RGB jpg
[image.c] [0x1bdc888/imagewall/2.jpg] looks like 1200x900 RGB jpg
[imagewall] update +4.jpg.filepart (write closed)
[imagewall] update -4.jpg.filepart (deleted)

[image.c] [0x1be4270/imagewall/3.jpg] looks like 1920x1080 RGB jpg
[image.c] [0x1bdc3f8/imagewall/1.jpg] looks like 1200x900 RGB jpg
[image.c] [0x1be37e0/imagewall/2.jpg] looks like 1200x900 RGB jpg
[image.c] [0x1bdaff8/imagewall/3.jpg] looks like 1920x1080 RGB jpg
[image.c] [0x1bdbf00/imagewall/1.jpg] looks like 1200x900 RGB jpg
[image.c] [0x1bdd408/imagewall/2.jpg] looks like 1200x900 RGB jpg
[image.c] [0x1be43c0/imagewall/3.jpg] looks like 1920x1080 RGB jpg
[image.c] [0x1bdcfe0/imagewall/1.jpg] looks like 1200x900 RGB jpg

uptime 60s, cpu 11s+2s, rss 7932kb, 20 objs, 72'C
mem fps width height cpu flags name (alias)

222kb 21.8 1920 1080 1.4% R-S- '- imagewall (-)

[image.c] [0x1bdc2e8/imagewall/2.jpg] looks like 1200x900 RGB jpg
[image.c] [0x1bdd558/imagewall/3.jpg] looks like 1920x1080 RGB jpg
[image.c] [0x1bda9f8/imagewall/1.jpg] looks like 1200x900 RGB jpg
[image.c] [0x1bdd0f0/imagewall/2.jpg] looks like 1200x900 RGB jpg
[image.c] [0x1bdb5e0/imagewall/3.jpg] looks like 1920x1080 RGB jpg
[image.c] [0x1bcf780/imagewall/1.jpg] looks like 1200x900 RGB jpg
[image.c] [0x1be33e0/imagewall/2.jpg] looks like 1200x900 RGB jpg
[image.c] [0x1bcf890/imagewall/3.jpg] looks like 1920x1080 RGB jpg
[main.c] terminating (escape pressed)...
[main.c] That's all. Have a nice day
`

If i stop and then restart the script 4.jpg is then displayed correctly.

Any tips on adding images without having to stop and restart the script..?

Database connection Sqlite3

We are trying to play a video files, where in the names are stored in sqlite database.

Tried connecting to sqlite db from node.lua but throws 'a nil value' ran into all sorts of errors. Whilst the same works on command line lua interpreter.

Is there any sample snippets where info-beamer can connect to sqite db.

Kindly help.

Digital clock

I'm trying to figure out how to make a digital clock that works on both the pi version and the opensource version. An example would be much appreciated.

info-beamer-nodes-seamless pi only?

Trying to run the open source version out on ubuntu, but when trying out the seamless sample you have(which works on the pi) gives me the following:

info-beamer pi version required

Is there a version of this for the non-pi info-beamer?

Thanks

Mp4 file stutters when 3 images + 1 text label are displayed

Hello,

I've built a node based on the intermission example. At the moment when nothing happens a loop MP4 file is played (loaded via raw video). Sometimes an external actions causes the video to pause and to display on the monitor 2 images and a label (one is full screen), and on top of that another "priority" image (2048 max). Everything works as expected.

But sometimes while the 4 items (3 images + a text label) are displayed, an audio file need to be played. It's actually an MP4 file, with a static image and mono audio. The audio starts correctly but after a few seconds the audio lags horrendously, and slows down 2x or 3x..

If I display only the 3 items without the priority image, the audio plays smoothly.
I'm running on a RaspberryPiZero powered by USB from another RaspberryPi 3B.

Is it a power issue? Should I power the raspberry independently? I could not try since I lack a power adapter right now, but this is the first thing that came to my mind.

Is it a processor issue? Too many things are displayed? Should I lower the resolution of some image, since my monitor is only fullHD and I can reduce safely the sizes to 1/4 (1080x1080)?

Any other idea?
THanks

Walter

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.