Boblight possible?


708 posts   Page 5 of 29   1, 2, 3, 4, 5, 6, 7, 8 ... 29
by Stasik0 » Mon Jan 14, 2013 10:08 pm
hey guys, i got a new makefile set in my repo
now, you should be able to to compile it all natively on a vanila raspbian

Code: Select all
git clone https://github.com/Stasik0/omxplayer
cd omxplayer
./prepare-native-raspbian.sh
make boblight
make ffmpeg
make
make dist


@plfort: increasing --boblight-sizedown and margin will increase the quality... test how far you can get
Posts: 63
Joined: Tue Dec 18, 2012 6:31 pm
by VZoltan » Mon Jan 14, 2013 10:13 pm
plfort wrote:This settings seems to be used by boblight-X11, (http://code.google.com/p/boblight/wiki/Compiling) in this case I don't think it is usefull for us.

This options are defined in options.h, and set with SetOption in boblight_client.cpp for all lights (if param "lightnr" <0).


These settings are from boblight addon from xbmc and im using it to soften thing, and i have no -X11 at all!
Last edited by VZoltan on Mon Jan 14, 2013 10:31 pm, edited 1 time in total.
Posts: 179
Joined: Sat Jun 02, 2012 10:00 pm
by plfort » Mon Jan 14, 2013 10:29 pm
@VZoltan: Yes I see, but I doubt that it is useful
Posts: 18
Joined: Tue Jul 03, 2012 11:26 pm
Location: Grenoble
by VZoltan » Mon Jan 14, 2013 10:32 pm
plfort wrote:@VZoltan: Yes I see, but I doubt that it is useful



Well i will show you the difference between using it with xbmc and without with this build.
And youll see how useful it is :)
Ill make vids tomorrow
Posts: 179
Joined: Sat Jun 02, 2012 10:00 pm
by plfort » Mon Jan 14, 2013 10:46 pm
@VZoltan: ok I trust you :-)
Maybe it is possible to set this options when starting boblightd
Posts: 18
Joined: Tue Jul 03, 2012 11:26 pm
Location: Grenoble
by VZoltan » Mon Jan 14, 2013 11:01 pm
plfort wrote:@VZoltan: ok I trust you :-)
Maybe it is possible to set this options when starting boblightd



http://forum.xbmc.org/showthread.php?tid=116331

Meaning of the settings

* Saturation and value are multipliers for HSV color space: http://en.wikipedia.org/wiki/HSL_and_HSV

* Speed is a factor for a first order lowpass filter, it goes from 0 to 100, the higher you set it the faster the lights react.
Autospeed adjusts the speed on top of that based on how fast the colors are changing, it kind of sucks to be honest.

* Interpolation is a setting for a boblightd output device, when it's on it will interpolate between the last two writes of a client, I suggest turning it off in the xbmc addon.

* Pixels below the threshold value will be considered as black pixels, it goes from 0 to 255, I suggest setting it to something like 10.
Posts: 179
Joined: Sat Jun 02, 2012 10:00 pm
by Stasik0 » Tue Jan 15, 2013 7:45 am
hey folks, now i see what are you talking about... give me a couple of days, i will build it in
Posts: 63
Joined: Tue Dec 18, 2012 6:31 pm
by VZoltan » Tue Jan 15, 2013 4:52 pm
Stasik0 wrote:hey guys, i got a new makefile set in my repo
now, you should be able to to compile it all natively on a vanila raspbian







Code: Select all
git clone https://github.com/Stasik0/omxplayer
cd omxplayer
./prepare-native-raspbian.sh
make boblight
make ffmpeg
make
make dist



tried this on a new fresh install of raspbian ( http://downloads.raspberrypi.org/images ... spbian.zip )
but not worked

after compiling for like 3 hrs (on 800mhz) the ffmpeg (with bunch of warnings), it gave errors at the end, and thats the end of it :(

make ffmpeg
Code: Select all
.
.
.
make[2]: Leaving directory `/home/pi/omxplayer/ffmpeg'
strip ffmpeg_compiled/usr/local/lib/*.so
strip: 'ffmpeg_compiled/usr/local/lib/*.so': No such file
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/pi/omxplayer'
make: *** [ffmpeg] Error 2
pi@raspberrypi ~/omxplayer $


then make:

Code: Select all
.
.

In file included from linux/RBP.h:45:0,
                 from linux/RBP.cpp:22:
./DllBCM.h:34:22: fatal error: bcm_host.h: No such file or directory
compilation terminated.
make: *** [linux/RBP.o] Error 1
pi@raspberrypi ~/omxplayer $



make dist

Code: Select all
.
.
.
In file included from linux/RBP.h:45:0,
                 from linux/RBP.cpp:22:
./DllBCM.h:34:22: fatal error: bcm_host.h: No such file or directory
compilation terminated.
make: *** [linux/RBP.o] Error 1
pi@raspberrypi ~/omxplayer $

Posts: 179
Joined: Sat Jun 02, 2012 10:00 pm
by Stasik0 » Tue Jan 15, 2013 5:57 pm
so ffmpeg is compiled but not installed... i will test it further, drop testing for now plz
Posts: 63
Joined: Tue Dec 18, 2012 6:31 pm
by Stasik0 » Tue Jan 15, 2013 6:25 pm
for now please play with the new version http://vzoltan.com/stasiko/omxplayer.bin

now you can pass multiple --boblight-option to it, like --boblight-option interpolation=1 etc
Posts: 63
Joined: Tue Dec 18, 2012 6:31 pm
by VZoltan » Tue Jan 15, 2013 6:48 pm
Stasik0 wrote:for now please play with the new version http://vzoltan.com/stasiko/omxplayer.bin

now you can pass multiple --boblight-option to it, like --boblight-option interpolation=1 etc

i will try this one too but first i have to reimage my sd with your image again (got corrupted :( )
Posts: 179
Joined: Sat Jun 02, 2012 10:00 pm
by freeweber » Tue Jan 15, 2013 7:43 pm
works very fine with this settings :-)

omxplayer -p --boblight-host localhost -b --boblight-margin 5 -o hdmi --boblight-sizedown 112 --boblight-timeout 35 --boblight-option interpolation=0 --boblight-option speed=40 --boblight-option autospeed=0 --boblight-option saturation=1.2 --boblight-option value=1.5 --boblight-option threshold=20

Thanks for your work!
I love it :)
Posts: 6
Joined: Thu Sep 27, 2012 5:36 pm
by plfort » Tue Jan 15, 2013 11:30 pm
It is perfect ! Really
Posts: 18
Joined: Tue Jul 03, 2012 11:26 pm
Location: Grenoble
by VZoltan » Wed Jan 16, 2013 6:48 pm
Stasik0 wrote:for now please play with the new version http://vzoltan.com/stasiko/omxplayer.bin

now you can pass multiple --boblight-option to it, like --boblight-option interpolation=1 etc



finally managed to get things working again:)
now your 8gb image is running on a 4gb usb pendrive boots from SD, so it will not get corrupted again :) . ( i will upload this img, it is only 3.7 gb so a 4gb usbdrive would be enough for this, nothing is modified, only the newest boblight daemon is compiled and installed to get native supprot for ws2801 leds, and it has your newest omxplayer.bin in it.)

i have one problem, it doesnt pickup the subtitle (external srt file)
i know: s Toggle subtitles, but it doesnt.

does it display subtitles to anyone else?


THX
Posts: 179
Joined: Sat Jun 02, 2012 10:00 pm
by Stasik0 » Wed Jan 16, 2013 7:46 pm
no idea about titles

btw.... you can now try to checkout my repository and compile... makefiles seem to work...

or just download the whole package from http://www.vzoltan.com/stasiko/omxplayer-dist.tar.gz and extract the archive to / (you may need to use sudo). You can use the dist on virtually any linux system on RPi.
Posts: 63
Joined: Tue Dec 18, 2012 6:31 pm
by VZoltan » Wed Jan 16, 2013 8:19 pm
Stasik0 wrote:no idea about titles

btw.... you can now try to checkout my repository and compile... makefiles seem to work...

or just download the whole package from http://www.vzoltan.com/stasiko/omxplayer-dist.tar.gz and extract the archive to / (you may need to use sudo). You can use the dist on virtually any linux system on RPi.



IT WORKS WITH RASPBMC :) (downloaded, extracted, and copy to its place, and run :) )

pi@raspbmc:~$ omxplayer -p --boblight-host localhost -b --boblight-option interpolation=1 --boblight-option speed=25 --boblight-option autospeed=12 --boblight-option saturation=1.1 --boblight-option value=1.5 --boblight-option threshold=20 /path/video.mp4
and works:) note: who has raspbmc with running XBMC, first you have to quit xmbc:
sudo initctl stop xbmc
then run omxplayer


THX!!!!

ps.: pls try a video with subtitle, thx
Posts: 179
Joined: Sat Jun 02, 2012 10:00 pm
by lupus11 » Thu Jan 17, 2013 2:21 pm
I have been following this thread for some days. I am really excited about the progress Stasik0 has achieved with the omxplayer.
As i have some knowlegde about Linux, but very little about XBMC, here is my question: Would it be possible to replace the "standard" omxplayer in XBMC with the customized one from Stasik0 ?
Thanks for the answer and for the possibilities you created.
lupus
Posts: 4
Joined: Thu Jan 17, 2013 2:16 pm
by Stasik0 » Thu Jan 17, 2013 7:57 pm
integration into XBMC will be the next step I am going to do after taking a week off or smth...

btw I have updated http://www.vzoltan.com/stasiko/omxplayer-dist.tar.gz the delay in boblight update is *theoreically* a bit lower... replace only omxplayer.bin
Posts: 63
Joined: Tue Dec 18, 2012 6:31 pm
by VZoltan » Thu Jan 17, 2013 8:17 pm
Stasik0 wrote:integration into XBMC will be the next step I am going to do after taking a week off or smth...

btw I have updated http://www.vzoltan.com/stasiko/omxplayer-dist.tar.gz the delay in boblight update is *theoreically* a bit lower... replace only omxplayer.bin


Downloaded, replaced /usr/bin/omxplayer.bin

not much of a difference for my settings, maybe i just cant see it :)
Posts: 179
Joined: Sat Jun 02, 2012 10:00 pm
by nadnerb » Sat Jan 19, 2013 4:45 pm
I need to buy some LEDs to try this boblight omxplayer.
Any suggestions for a set of LEDs suitable for a 32" TV available in/to the UK.
Thanks.
User avatar
Posts: 175
Joined: Sun May 13, 2012 11:22 am
by Stasik0 » Sat Jan 19, 2013 5:35 pm
search ebay for WS2801 or LPD8806 based leds
Posts: 63
Joined: Tue Dec 18, 2012 6:31 pm
by skyblaster » Wed Jan 23, 2013 6:50 am
This project looks amazing and I'm about the pull the trigger on an RGB strip.
I was planning on a 48LED/M LPD8806 strip, but then I did some basic math. With a 61" TV, I need three meters just to cover the top and sides. At 24 ICs per meter, that's 432 channels! I was hoping to use the Pi as both the deamon and client. Is this too much for one Pi to handle? Would I be better off with 32LED,16IC/M = 288 channels?

Thanks!
Posts: 7
Joined: Wed Jan 23, 2013 6:36 am
by Stasik0 » Wed Jan 23, 2013 10:22 am
i guess it will be too much, why not going for ws2801? the leds there can be placed on variable distance: http://www.adafruit.com/images/large/ID322_LRG.jpg
Posts: 63
Joined: Tue Dec 18, 2012 6:31 pm
by VZoltan » Wed Jan 23, 2013 10:27 am
Stasik0 wrote:i guess it will be too much, why not going for ws2801? the leds there can be placed on variable distance: http://www.adafruit.com/images/large/ID322_LRG.jpg


Any info from xbmc/omxplayer+subtitle on github?
How is your project going?

@skyblaster
Use ws2801 i have those too
Posts: 179
Joined: Sat Jun 02, 2012 10:00 pm
by Stasik0 » Wed Jan 23, 2013 11:58 am
you can follow the pull requests :) https://github.com/huceke/omxplayer/pulls

for the project, i did talk to Bob (the author of boblight), and he will try to bring my commits into the xmbc next week or so...
Posts: 63
Joined: Tue Dec 18, 2012 6:31 pm