2015-08-10, 12:58
Update 2015-08-29 18:45
As promised the visualization has been released!
For more informations please go to: http://forum.kodi.tv/showthread.php?tid=236514
Update 2015-08-27 13:20
Okay, signal processing is super complicated (at least for me) and that's why I give in. I read a lot (like a looooooot) and just don't get it.
So, I'll go ahead and release the visualization within the next few days (somewhere before monday) AND throw the source on github.
The spectrum part at the bottom will look.. well not near as good as I wanted it to but at least something is there.
If anyone with knowledge in signal-processing and such want's to help me out, PLEASE go ahead and do so (either by just rewriting the crap I did or by giving
me any form of useful information I seem to lack).
Update 2015-08-23 18:56
So... I reached the point where I'm doing the "final touches" HOWEVER...
... I read a lot about how spectrum work, how you calculate the frequency data from the audio data (FFT = Fast Fourier transform) and that it is
near impossible to get the visualization anywhere near as good looking as the ones made with e.g. after effects. Why? because there is a lot of
handwork needed to get the frequencies mapped correctly which is very difficult to do dynamically. At least for me with the knowledge I have.
So if someone who knows more about that and feels like helping me out, you are very very welcome to do so.
This brings me to the next point. Source code.
I'll surly open-source this project but please keep in mind, this is/was my first c++/opengl project every so the code most certainly is not the nicest
one you've ever read ^^
Also, I developed on linux, for linux. I guess it will work on osx as well (as it's unix) but windows and mobile I haven't tested, and never will as I just don't care about any platform other than linux.. So that's that.
I'll do some more code-commenting before releasing the source.
The addon itself I'll release as soon as I feel like writing a new thread holding all necessary information and so on...
For now I just wanna at least enjoy my Sunday afternoon ^^
Update 2015-08-20 14:46
Quick update...
Presets are somewhat in place (Still a bit buggy as I don't quite understand how the random/next/previous preset thing is supposed to work meaning sometimes the active preset index is kinda off o.O)
Spectrum is (again) somewhat in place. The bars (64 as of now) are visible and animated. Now it's just a matter of mapping the audiodata to each individual bar. Glad there is so much documentation available *sigh* (I'll figure something out I hope ^^)
Update 2015-08-17 09:30
So, instead of working on the animation-part I tried fixing the scaling problem and hurray, I did.
Also, I decided against the whole "fetching images from websites" thing. This would just take to long to implement and I
don't have the time for that. That's why I came up with another Idea.
Basically if you specify "~/Pictures" as image-source for the visualization and this folder holds other folders like "Landscape", "Weather", "Anime" etc.
than each of those sub-folders will be a Preset you can select from.
I think this is a smart way of doing things and allows for the community to come up with awesome Wallpaper collection packs (or whatever you wanna call it)
Update 2015-08-14 20:20
Just a quick update saying that the transitions between images is now in place and the transition-time is configurable from the settings (1-5 sec.)
Next up is the visualization at the bottom I guess
Oh and btw., as of now I'm using it already combined with "Dr.Toxic's Weather Fanart Pack" and it is just amazing IMHO
Currently implemented
- Display random, local images (jpg/png) as visualization background (I encountered that SOIL, the image lib I'm using, can have problems with some images
meaning they won't get displayed/will be skipped. This might be due to unexpected headers, 64-bit images etc.)
- Use sub-folders as presets
- Smooth transition/cross-fade between images (cross-fade time can be configured)
- Set a image update interval (1 - 10 min.)
- Update image when a new track starts playing
ToDo
- A visualization at the bottom
Known bugs
- The visualization get's reinitialized when toggling full screen, while navigation Kodi, while re-sizing Kodi or just moving the Kodi-window meaning a new wallpaper will get loaded. Won't get fixed as can't find a way to fix it. Also I display the visualization only when in fullscreen, so I don't care...
At the end I want the whole visualisation to look something like:
https://www.youtube.com/watch?v=-ajOCcftODg
Original posting
Hi there,
first of all, when I say "we" I mean me and a friend of mine (both never developed c++ before or used opengl)
Now strait to the point.
We wanted to create a very simple visualization which displays random images from different sources (local directory, web-sites like 500px, flickr etc.) and a simple,
bar based, visualization at the bottom of the screen.
So far, all we managed, is to create a addon which displays simple lines (At least something right? ^^)
...BUT...
as soon as we try to load an image (jpg, png or even a uncompressed bmp) using different library's (SOIL, DevIL etc.) or even using native opengl functions, kodi crashes horribly without any form of error output.
After about 6-8 hours we gave up as we haven't even found a way to get any error-logs which makes it ridiculously hard to develop.
So, the question is:
1. How would one get error-logs/debug-messages
2. Is there a easy and reliable way to load images and display them in opengl
Any help/ideas are highly appreciated
cheers,
Tadly
As promised the visualization has been released!
For more informations please go to: http://forum.kodi.tv/showthread.php?tid=236514
Update 2015-08-27 13:20
Okay, signal processing is super complicated (at least for me) and that's why I give in. I read a lot (like a looooooot) and just don't get it.
So, I'll go ahead and release the visualization within the next few days (somewhere before monday) AND throw the source on github.
The spectrum part at the bottom will look.. well not near as good as I wanted it to but at least something is there.
If anyone with knowledge in signal-processing and such want's to help me out, PLEASE go ahead and do so (either by just rewriting the crap I did or by giving
me any form of useful information I seem to lack).
Update 2015-08-23 18:56
So... I reached the point where I'm doing the "final touches" HOWEVER...
... I read a lot about how spectrum work, how you calculate the frequency data from the audio data (FFT = Fast Fourier transform) and that it is
near impossible to get the visualization anywhere near as good looking as the ones made with e.g. after effects. Why? because there is a lot of
handwork needed to get the frequencies mapped correctly which is very difficult to do dynamically. At least for me with the knowledge I have.
So if someone who knows more about that and feels like helping me out, you are very very welcome to do so.
This brings me to the next point. Source code.
I'll surly open-source this project but please keep in mind, this is/was my first c++/opengl project every so the code most certainly is not the nicest
one you've ever read ^^
Also, I developed on linux, for linux. I guess it will work on osx as well (as it's unix) but windows and mobile I haven't tested, and never will as I just don't care about any platform other than linux.. So that's that.
I'll do some more code-commenting before releasing the source.
The addon itself I'll release as soon as I feel like writing a new thread holding all necessary information and so on...
For now I just wanna at least enjoy my Sunday afternoon ^^
Update 2015-08-20 14:46
Quick update...
Presets are somewhat in place (Still a bit buggy as I don't quite understand how the random/next/previous preset thing is supposed to work meaning sometimes the active preset index is kinda off o.O)
Spectrum is (again) somewhat in place. The bars (64 as of now) are visible and animated. Now it's just a matter of mapping the audiodata to each individual bar. Glad there is so much documentation available *sigh* (I'll figure something out I hope ^^)
Update 2015-08-17 09:30
So, instead of working on the animation-part I tried fixing the scaling problem and hurray, I did.
Also, I decided against the whole "fetching images from websites" thing. This would just take to long to implement and I
don't have the time for that. That's why I came up with another Idea.
Basically if you specify "~/Pictures" as image-source for the visualization and this folder holds other folders like "Landscape", "Weather", "Anime" etc.
than each of those sub-folders will be a Preset you can select from.
I think this is a smart way of doing things and allows for the community to come up with awesome Wallpaper collection packs (or whatever you wanna call it)
Update 2015-08-14 20:20
Just a quick update saying that the transitions between images is now in place and the transition-time is configurable from the settings (1-5 sec.)
Next up is the visualization at the bottom I guess
Oh and btw., as of now I'm using it already combined with "Dr.Toxic's Weather Fanart Pack" and it is just amazing IMHO
Currently implemented
- Display random, local images (jpg/png) as visualization background (I encountered that SOIL, the image lib I'm using, can have problems with some images
meaning they won't get displayed/will be skipped. This might be due to unexpected headers, 64-bit images etc.)
- Use sub-folders as presets
- Smooth transition/cross-fade between images (cross-fade time can be configured)
- Set a image update interval (1 - 10 min.)
- Update image when a new track starts playing
ToDo
- A visualization at the bottom
Known bugs
- The visualization get's reinitialized when toggling full screen, while navigation Kodi, while re-sizing Kodi or just moving the Kodi-window meaning a new wallpaper will get loaded. Won't get fixed as can't find a way to fix it. Also I display the visualization only when in fullscreen, so I don't care...
At the end I want the whole visualisation to look something like:
https://www.youtube.com/watch?v=-ajOCcftODg
Original posting
Hi there,
first of all, when I say "we" I mean me and a friend of mine (both never developed c++ before or used opengl)
Now strait to the point.
We wanted to create a very simple visualization which displays random images from different sources (local directory, web-sites like 500px, flickr etc.) and a simple,
bar based, visualization at the bottom of the screen.
So far, all we managed, is to create a addon which displays simple lines (At least something right? ^^)
...BUT...
as soon as we try to load an image (jpg, png or even a uncompressed bmp) using different library's (SOIL, DevIL etc.) or even using native opengl functions, kodi crashes horribly without any form of error output.
After about 6-8 hours we gave up as we haven't even found a way to get any error-logs which makes it ridiculously hard to develop.
So, the question is:
1. How would one get error-logs/debug-messages
2. Is there a easy and reliable way to load images and display them in opengl
Any help/ideas are highly appreciated
cheers,
Tadly