Quantcast
Channel: Kodi Community Forum - Screensavers and visualisations
Viewing all 120 articles
Browse latest View live

Sony Bravia TV display off screensaver

$
0
0
I developed a screensaver plugin for Sony Bravia Smart TV's which will turn the display off when the screensaver kicks in. This will reduce the power consumption in my case to about 18W instead of normally 30-60W
Tested on a 2015 Sony Android TV. In this case, you probably have Kodi running on the TV which makes it hard to fill in the pairing code. You can use the Kore remote app or something else that won't directly talk to the TV. I found it's also possible to do the pairing on another device with Kodi.

The plugin can be found here: https://github.com/ksya/kodi.screensaver.sonyscreenoff

I know I can probably improve my code, which I will do later..Or just submit a pull request!

Let me know what works and not.

Binary vs Python implemented visualizations

$
0
0
Hi All,

Just a quick question. It seems that all the visualizations are implemented as bynary add-ons rather than python add-ons. Is this mandatory? Could i write my own visualization as a python add-on? If so, are there any examples of this i can look at?

No visualisations available in kodi?

$
0
0
It has "none" so no available - I like milkdrop. How do I get and install? using confluence on Kryton.

Visualization.spectrum Client returned bad status (4)

$
0
0
Hi,

I'm trying to package the spectrum addon for Fedora and am encountering an issue that I'm finding difficult to debug. So I'm building from version 1.1.1 of the addon from this commit: https://github.com/notspiff/visualizatio...631c2f8115 .

The build goes smoothly and shows no errors, however when I load it up in Kodi I get an unknown error. Literally the only thing in the debug log is this line: "22:07:03.628 T:140040623103808 ERROR: ADDON: Dll Spectrum - Client returned bad status (4) from Create and is not usable"

All libraries and resources are getting pulled into the package:
Code:
[root@kodi01-dev01 temp]# ls /usr/share/kodi/addons/visualization.spectrum
addon.xml  addon.xml.in  icon.png  resources

[root@kodi01-dev01 temp]# ls /usr/lib64/kodi/addons/visualization.spectrum
visualization.spectrum.so  visualization.spectrum.so.1.1.1  visualization.spectrum.so.17.1

All permissions seem correct:
Code:
[root@kodi01-dev01 temp]# getfacl /usr/lib64/kodi/addons/visualization.spectrum/*
getfacl: Removing leading '/' from absolute path names
# file: usr/lib64/kodi/addons/visualization.spectrum/visualization.spectrum.so
# owner: root
# group: root
user::rwx
group::r-x
other::r-x

# file: usr/lib64/kodi/addons/visualization.spectrum/visualization.spectrum.so.1.1.1
# owner: root
# group: root
user::rwx
group::r-x
other::r-x

# file: usr/lib64/kodi/addons/visualization.spectrum/visualization.spectrum.so.17.1
# owner: root
# group: root
user::rwx
group::r-x
other::r-x

I'm really not sure how to begin debugging this - I'm really keen to figure this out myself, but could someone give me a few pointers as to where I might begin?

This is the build segment from my spec:
Code:
cmake \
  -DCMAKE_INSTALL_PREFIX=%{_libdir}/kodi/addons/ \
  -DCMAKE_BUILD_TYPE=Release \
  -DBUILD_SHARED_LIBS=1 \
  -DUSE_LTO=1

Thanks

Visualization differences between soundcards

$
0
0
Hello!
I've just catch a very strange behaviour of kodi (16.1).

The visualization Waveform does not show the same if I use two different soundcards... (it is in fact the same problem with all vizualisation addons...).

With my edirol UA-20, the waveforms are just what they need to be, with my C-Media card, the waveforms are strange and glitchy.

With a little Addon, I've successed to read the pAudioData from the AudioData functions...
and they are different if I changed the soundcard!

Do you have some similar problem?
Could it be link to stereo or 7.1 soundcards difference?

I hope you can help me!

amand.

Cant keep visual.. help please

$
0
0
I found a certain visualization in a certain list. I set the visualization. Everything seems fine... but then it changes. No matter what I do, I can not keep that visualization. I think I missed a setting somewhere to permanently keep the visualization (even after music has been stopped for a few days). Basically, I want to set it up so it never changes that visualization. Can anyone help me with this? Sad

Increased CPU load while running a custom screensaver

$
0
0
I've written a simple Python screensaver for H3-based boards (using it on a NanoPI M1 with OpenElec and Kodi 16.1) to disable the video while idle, allowing the attached monitor to power down. It works perfectly except that the CPU load as seen with 'top' rises significantly when it kicks in.
I'm using the reFocus skin and while having 'top' running on a SSH session I can see that, with some music file playing, the normal load is under 8% but as soon as the screensaver kicks in it rises to around 25%. This causes the CPU clocks to speed up and the temperature on the CPU to rise quite a bit.
I've read somewhere that one/several screensavers disable the renderer when they kick in to lower the CPU / GPU load. My questions are:

1. Is there API support for this when using Python ?
2. Is there another possible cause for this behaviour ? That can be fixed on the Python side ?

Below is the code for the screensaver.

Code:
import xbmcaddon
import xbmcgui
import xbmc
import os
import struct
import fcntl

addon = xbmcaddon.Addon()
addon_name = addon.getAddonInfo('name')
addon_path = addon.getAddonInfo('path')

class Screensaver(xbmcgui.WindowXMLDialog):

    class ExitMonitor(xbmc.Monitor):

        def __init__(self, exit_callback):
            self.exit_callback = exit_callback

        def onScreensaverDeactivated(self):
            self.exit_callback()

    def onInit(self):
        self.log('onInit')
        buffer = struct.pack('LLLL',0,1,0,0)
        dev = os.open('/dev/disp', os.O_RDWR)
        try:
            fcntl.ioctl(dev, 0x0C, buffer)
        finally:
            os.close(dev)
        self.exit_monitor = self.ExitMonitor(self.exit)

    def exit(self):
        self.abort_requested = True
        self.exit_monitor = None
        buffer = struct.pack('LLLL',0,0,0,0)
        dev = os.open('/dev/disp', os.O_RDWR)
        try:
            fcntl.ioctl(dev, 0x0C, buffer)
        finally:
            os.close(dev)
        self.log('exit')
        self.close()

    def log(self, msg):
        xbmc.log(u'H3Blank hdmi screensaver: %s' % msg)


if __name__ == '__main__':
    screensaver = Screensaver(
        'script-%s-main.xml' % addon_name,
        addon_path,
        'default',
    )
    screensaver.doModal()
    del screensaver
    sys.modules.clear()

Visualization for latest Kodi using Shield

$
0
0
On last Kodi there is only one visualization and that is spectrum. Can someone please just explain how I can add more on my shield.

I cannot find any guides here or on google other than for ubutu. Are there none and do I have to sideload or?

Any asistant, explanation are most welcomed.

Finished projectM build but no projectM.vis in result

$
0
0
I have successfully built the projectM plugin with this command line:

Code:
cmake . -DCMAKE_BUILD_TYPE=Release -DPACKAGE_ZIP=1 -DPROJECT_INCLUDE_DIRS=/usr/local/include/libprojectM -DPROJECTM_LIBRARIES=/usr/local/lib/libprojectM.a

make
make package

The zip file was successfully installed in Kodi 17.0b4 but does not work. Kodi wants to find projectM.vis but is unable to find it.

Here is a directory listing for the plugin. The "resources" directory is fully populated with the presets, etc. The key here is that there is no projectM.vis in this tree to be found, which Kodi seems to want when I install this addon.

Code:
total 784
-rw-r--r-- 1 root root  34282 Oct 25 16:51 addon.xml
-rw-r--r-- 1 root root  11675 Oct 25 16:51 icon.png
drwxr-xr-x 4 root root   4096 Oct 25 20:14 resources
lrwxrwxrwx 1 root root     30 Oct 25 20:14 visualization.projectm.so -> visualization.projectm.so.17.0
-rwxr-xr-x 1 root root 748384 Oct 25 19:08 visualization.projectm.so.1.0.17
lrwxrwxrwx 1 root root     32 Oct 25 20:14 visualization.projectm.so.17.0 -> visualization.projectm.so.1.0.17

Kodi 17.0b4 and Kodi Platform have both been built with a prefix of /usr/local.

I'm sure I'm doing something fundamentally wrong here. Can someone help me out? I worked on this for about eight hours yesterday, so as you can tell, I'm not a natural. Smile I finally found that I was doing the process totally wrong. I think I'm on the right track, but I'm still not there yet.

Thanks very much!

Visualization displayed offeset from screen

$
0
0
After following this thread, LINK, to get my visualizations working, I have now run into another problem. All the visualizations, Goom, ProjectM, and ShaderToy, display off-center to the TV screen. They are all displaying to left and down by quite a bit, about 1/2" on a 40" TV. I have looked for a way to change this in their settings, but there is not a way to adjust this. The playback of videos such as movies and TV shows is fine. It is just the visualizations that are not displaying properly. I am running Linux Mint Cinnamon 18 64 bit with Kodi 16.1 (Git:c327c53) compiled on April 24, 2016 as its main "Desktop Environment". Any ideas on how to recenter the display of these visualizations?

Thanks!

(UPDATE)

It also seems that when I run a visualization during music playback, Kodi will reset itself after about 5 minutes. Nothing is shown when checking the logs for a cause.

Visualisation stops after several songs

$
0
0
Hello!

I am using kodi 17 beta 5 (linux), and any viz always stops after 4 or 5 songs played.
Kodi continues to play, but without viz.
This problem does not seem to occur with a kodi version without the patch to correct the problem with different soundcards...

Do you have the same problem?

Linux - projectM when background music visualizations enabled in menus

$
0
0
Fedora 24 (and also Arch Linux running in VirtualBox)

I recently compiled the projectM visualization for Kodi 17.0b5. Kodi either freezes or crashes when I allow the visualization to run in the background of the menu. If I disable this, the visualization will run fine. When the menus are just plain, no visualization, everything works. This only seems to occur with projectM. Other visualizations run fine in the menu background and do not cause a problem for Kodi.

I have been trying to capture the error in a log but the logging is not capturing the errors I need. I have the debug logging enabled. Is there any other component logging that I have to enable to get the visualization errors to show up?

Thanks for any help. For now, I'll just leave the background visuals turned off.

No 3d visualizations for Pi?

$
0
0
I just installed KODI on a Raspberry Pi 3 and I noticed that there are no 3d visualizations. Is this not supported on the pi?

Kodi menu page

$
0
0
Hi, can anyone help me out of a problem which i have done myself. I was going through the apps to find out which one will work, i think that i click onto a I Stream app. When i click onto the app it change my Kodi menu page, which shows you, kids, systems, addons, etc. I still get the Kodi page when it first starts up but when i highlight the Kodi app which is on the left side of the screen but i does not show me the Kodi menu page. How can i get this back?

Kind regards,
Rasher. [/size]

Atari Video Music - The great-great-granddaddy of Music Visualisation


visualization.projectm from git crashes

$
0
0
Hi guys, hopefully somebody here can point me in the right direction. I'm on Ubuntu 16.10 running Kodi RC3 (Git:20170119-nogitfound). There are no packages in ppa for visualizations on Yakkety (other than spectrum), so I tried my hand at building one.

Cloned the latest from http://github.com/notspiff/visualization.projectm (commit 8064b36 from 01/05/2017), ran cmake, make & make install, enabled in Kodi and went to play a song... Kodi crashed to desktop.

Here's my terminal log of the build: http://paste.ubuntu.com/23908786/

Here's a debug log, nothing grabbed my attention there, but I'm a little out of my depth: http://paste.ubuntu.com/23908748/

An interesting/challenging idea for a visualization

$
0
0
I was listening to the Fall of Hyperion audiobook this evening and Milkdrop was running. It is set as the default visualization. For some reason I started thinking about Winamp and the crazy visualizations that came out for it. Milkdrop was there if I recall correctly but I remember dancing girls and crazy stuff like that.

Anyhow, that lead me to thinking about somehow having a face on the screen as a visualization. The audio would drive the face's lips to animate them "reading" the audio books. Other animations like blinking etc could be in there.

That idea kept escalating until I was envisioning a scene like an old gentleman reading by a fire lol. I kept thinking of different scenes and scenarios based on the genre. I was imagining Skyrim looking scenes with an old wizard reading to me and smoking a pipe.

I thought I would share that idea. Unfortunately, I don't know how program visualizations. I DO know how to 3D model and animate tho. I've made a lot of things for Skyrim actually. So, that's why Slur in entered my head.

No visualisation no install option

$
0
0
Hi all,
just installed a fresh Kodi 17 Krypton. Everything works fine except music playback visualisation.
There is none installed and there is no "Get more..." button anymore.
Went through all menus and can't find any spot to install a Visualistion.
Searched here but did not find a thread addressing this.
Any idea?
Best regards,
Sun

Milkdrop 2 - When there's no fanart...

$
0
0
For songs that there aren't any fanart backgrounds to cycle through, MilkDrop 2 defaults to displaying 4-6 (blank) dark alpha transparency backgrounds on top of the 3D graphics visualization. How can set MilkDrop 2 to NOT display these dark transparency backgrounds if there arent any fanart backgrounds to display?

Thanks in advance!

[Image: Screenshot.jpg]

Bing Wallpaper Screensaver

$
0
0
Hi there,

here I release my new project "Bing Pictures Screensaver". Inspired form BigPictures I made a modified version to show the wallpaper from the Bing archive. I added also a mode to keep the pictures over the time and let the screensaver loop over it. In the setting you can choose using the last 8 days or all caches pictures (growing). Also you can choose you region like EN, FR and so on....

I hope you like this release.

Download through my repro:

Mark's Repro

[Image: bing.png]

Source is on GitHub

GitHub
Viewing all 120 articles
Browse latest View live