Stasik0
Posts: 63
Joined: Tue Dec 18, 2012 6:31 pm

Re: Boblight possible?

Sat Jan 12, 2013 1:10 pm

well then just take your config! i mean the boblightd.conf.

VZoltan
Posts: 179
Joined: Sat Jun 02, 2012 10:00 pm

Re: Boblight possible?

Sat Jan 12, 2013 1:46 pm

Stasik0 wrote:well then just take your config! i mean the boblightd.conf.

I have a conf file with my leds order called

/etc/boblight.conf

I cant find any boblightd.conf

As i told you, With my /etc/boblight.conf the order is not good behind the tv with your bob+omx combo, where is boblightd.conf ?

Stasik0
Posts: 63
Joined: Tue Dec 18, 2012 6:31 pm

Re: Boblight possible?

Sat Jan 12, 2013 2:19 pm

oh sorry, i meant boblight.cong :) so you have taken yous meaning you have overwritten mine confing on the image?

VZoltan
Posts: 179
Joined: Sat Jun 02, 2012 10:00 pm

Re: Boblight possible?

Sat Jan 12, 2013 2:21 pm

Stasik0 wrote:oh sorry, i meant boblight.cong :) so you have taken yous meaning you have overwritten mine confing on the image?
Yes
And with your img it doesnt give the right led order as you can see on that pics ive linked earlier with my raspbmc build

Ive uploaded the boblightd.conf which id like to use in your img to your ftp folder

Stasik0
Posts: 63
Joined: Tue Dec 18, 2012 6:31 pm

Re: Boblight possible?

Sat Jan 12, 2013 3:02 pm

well i have just tested my boblight daemon with boblight-x11... the order is fine... so the omxplayer of mine has the same pixel order as the boblight-x11

once you have taken a tested boblight.conf it should be okay... the order seems to be okay... you may want to use "--boblight-margin to 20" since you use something like "0 20" in you boblight.conf

plfort
Posts: 18
Joined: Tue Jul 03, 2012 11:26 pm
Location: Grenoble
Contact: Website

Re: Boblight possible?

Sat Jan 12, 2013 4:34 pm

Hello,
First, thank you so much Stasik0 ! I was waiting for you since a long time ! :)
I tested your multithreaded version and seems better : bravo !

I think i have the same problem as VZoltan: my boblightd on the rpi works great with XBMC on another PC (with XBMC boblight plugin), but when I run your omxplayer with the same boblight conf lights are not in the good order ...
I run my tests with this video http://www.speedyshare.com/npsMr/ambilight.avi, it is ok when there is one color on the screen but not when the screen is splitted. (and it works fine with XBMC)

Stasik0
Posts: 63
Joined: Tue Dec 18, 2012 6:31 pm

Re: Boblight possible?

Sun Jan 13, 2013 7:05 pm

okay... i see the problem now.. i will try to find the bug

VZoltan
Posts: 179
Joined: Sat Jun 02, 2012 10:00 pm

Re: Boblight possible?

Sun Jan 13, 2013 7:34 pm

Stasik0 wrote:okay... i see the problem now.. i will try to find the bug
Thx

Stasik0
Posts: 63
Joined: Tue Dec 18, 2012 6:31 pm

Re: Boblight possible?

Sun Jan 13, 2013 8:18 pm

okay, it was an interesting bug... please redownload from http://vzoltan.com/stasiko/omxplayer.bin and retry

VZoltan
Posts: 179
Joined: Sat Jun 02, 2012 10:00 pm

Re: Boblight possible?

Sun Jan 13, 2013 9:37 pm

Stasik0 wrote:okay, it was an interesting bug... please redownload from http://vzoltan.com/stasiko/omxplayer.bin and retry
You are the man :)

It works, only one little issue :)
But i guess thats hardware releated :(
The delay between the video and the leds color's :(
They are 0.5-1 sec late to the video :(
But very big thx for this! :)

Do you think that you can improove this too or this is what raspberry can give?

THX

ps:

maybe this one is missing, you tell me :) :

Image
http://vzoltan.com/stasiko/bob.png

when i use osx-xbmc+boblight addon-»connecting to raspbmc+boblightd-»my leds
i use the settings as it is on this pic in xbmc's boblight addon on osx side (where the video is playing)

how / where can i adjust these settings in your img/boblightd ?

with these settings leds are so smooth and in time/speed.

thx

Stasik0
Posts: 63
Joined: Tue Dec 18, 2012 6:31 pm

Re: Boblight possible?

Sun Jan 13, 2013 10:15 pm

i advice you to play with --boblight-* options you see when you start ./omxplayer -h... try to get a smaller margin or a smaller sizedown....

with my tests boblight daemon consumed about 25% of RPi's CPU... so in my appliance I have got the boblight deamon running on a separate device (OpenWRT router + arduino), you can also take a second RPi...

you will probably gain something if you replace your python script by a C program... or try to use WS2081 native support of boblight - http://code.google.com/p/boblight/wiki/ ... spberry_Pi

VZoltan
Posts: 179
Joined: Sat Jun 02, 2012 10:00 pm

Re: Boblight possible?

Sun Jan 13, 2013 10:35 pm

Stasik0 wrote:i advice you to play with --boblight-* options you see when you start ./omxplayer -h... try to get a smaller margin or a smaller sizedown....
...
you will probably gain something if you replace your python script by a C program... or try to use WS2081 native support of boblight - http://code.google.com/p/boblight/wiki/ ... spberry_Pi
I dont know how to get this native support, but im sure that would speed thing up... Can you give me a hint or help?
(I make those modification to those files and then?
http://code.google.com/p/boblight/source/detail?r=459# )

I will try to play with --boblight-* options / margin...

Thx again :)

Stasik0
Posts: 63
Joined: Tue Dec 18, 2012 6:31 pm

Re: Boblight possible?

Mon Jan 14, 2013 5:57 am

well i can not really help, since i did not test it myself...

however, you need to check out newest boblight

svn checkout http://boblight.googlecode.com/svn/trunk/ boblight
cd boblight
./configure CXXFLAGS="${CXXFLAGS} -march=armv6 -mfpu=vfp -mfloat-abi=hard" --without-portaudio --without-opengl --without-x11 --prefix=/usr
make
sudo make install

then update the lines in your boblight.conf
..
type ws2801 (or type lpd8806 for another chip)
output /dev/spidev0.0
..

VZoltan
Posts: 179
Joined: Sat Jun 02, 2012 10:00 pm

Re: Boblight possible?

Mon Jan 14, 2013 7:52 am

Stasik0 wrote: svn checkout http://boblight.googlecode.com/svn/trunk/ boblight
cd boblight
./configure CXXFLAGS="${CXXFLAGS} -march=armv6 -mfpu=vfp -mfloat-abi=hard" --without-portaudio --without-opengl --without-x11 --prefix=/usr
make
sudo make install

then update the lines in your boblight.conf
..
type ws2801 (or type lpd8806 for another chip)
output /dev/spidev0.0
..
I had to add rate 48000 to boblight.conf too, and nativ support for my ws2801 now works :)

THX

one more thing is missing, that settings that i have with the other setup, you know, in boblight-addon in xbmc, the pic above,
Do you have any idea how can i fine tune my boblightd like that?
Now it is almost in time, little delay only less than a sec or even less :) but still.
How should i change that margin and the others you mentioned?

Thank you

Stasik0
Posts: 63
Joined: Tue Dec 18, 2012 6:31 pm

Re: Boblight possible?

Mon Jan 14, 2013 7:57 am

If you overclock your RPi a bit, you may also gain some improvements (i got mine running with 800MHz)

try to make --boblight-sizedown smaller than 64 - this is the size of the resized picture that is sent to boblight... try also to make --boblight-margin smaller than 10 this is the width of the outer 'strip' of the image that is processed.... so, for example ./omxplayer --boblight-sizedown 32 --boblight-margin 5 video.mkv will give you a better performance, however the quality of the lighting-color may vary...

xmbc prameters are a different topic, it seems that you tune your client, not your daemon... since the client runs on RPi i clearly have no performance to post-process something... i will try to address xbmc integration in the next couple of weeks... then we will see

could you make some videos, so we can promote my build? ;)

VZoltan
Posts: 179
Joined: Sat Jun 02, 2012 10:00 pm

Re: Boblight possible?

Mon Jan 14, 2013 10:04 am

Stasik0 wrote:If you overclock your RPi a bit, you may also gain some improvements (i got mine running with 800MHz)

try to make --boblight-sizedown smaller than 64 - this is the size of the resized picture that is sent to boblight... try also to make --boblight-margin smaller than 10 this is the width of the outer 'strip' of the image that is processed.... so, for example ./omxplayer --boblight-sizedown 32 --boblight-margin 5 video.mkv will give you a better performance, however the quality of the lighting-color may vary...

xmbc prameters are a different topic, it seems that you tune your client, not your daemon... since the client runs on RPi i clearly have no performance to post-process something... i will try to address xbmc integration in the next couple of weeks... then we will see

could you make some videos, so we can promote my build? ;)

mine is set to 800 too but with --boblight-sizedown 32 --boblight-margin 5 is getting better (actually without too) but still but tini tiny deley almost there isnt but there is , im sure that i need only those fine tuning things from boblight-addon, to make the color change smooth, and it would be perfect.

i will make video for you.

not led releated question, but how can i change between audio channels (the video has two different audio channel, one is dubbed on is original language) with omxplayer and add srt subtitles to a video ?

Stasik0
Posts: 63
Joined: Tue Dec 18, 2012 6:31 pm

Re: Boblight possible?

Mon Jan 14, 2013 12:00 pm

while playing press k... https://github.com/Stasik0/omxplayer scroll down in readme for keys

VZoltan
Posts: 179
Joined: Sat Jun 02, 2012 10:00 pm

Re: Boblight possible?

Mon Jan 14, 2013 12:05 pm

Stasik0 wrote:while playing press k... https://github.com/Stasik0/omxplayer scroll down in readme for keys
thx, and sorry :)

User avatar
nadnerb
Posts: 175
Joined: Sun May 13, 2012 11:22 am

Re: Boblight possible?

Mon Jan 14, 2013 12:34 pm

Nice work guys!
Can't wait to see some more videos.
Do you think this will be implemented into an XBMC build at some point, or will that add too much overhead and decrease boblight performance?

Stasik0
Posts: 63
Joined: Tue Dec 18, 2012 6:31 pm

Re: Boblight possible?

Mon Jan 14, 2013 1:38 pm

well I am not sure... running standalone omxplayer with boblight daemon *not* on my RPi (its on my router) i can currently wathch fullHD movies even with decoding DTS pretty comfortable... I will now take a week off or smth, and then look into embedding my changes into the XBMC-built-in omxplayer... and then to test it with XMBC

User avatar
nadnerb
Posts: 175
Joined: Sun May 13, 2012 11:22 am

Re: Boblight possible?

Mon Jan 14, 2013 2:24 pm

I see, so it should at least be possible to run it on 2 Pis, one for video, one for managing the LEDs?
Thanks

Stasik0
Posts: 63
Joined: Tue Dec 18, 2012 6:31 pm

Re: Boblight possible?

Mon Jan 14, 2013 2:57 pm

definitely with the standalone version... with xbmc - time will tell

plfort
Posts: 18
Joined: Tue Jul 03, 2012 11:26 pm
Location: Grenoble
Contact: Website

Re: Boblight possible?

Mon Jan 14, 2013 9:19 pm

Your last modifications solve the issue ! Thank you !
My config :
Raspberry Pi model B 256M (OC 950MHz)
WS2801 strip on the Pi
Boblight with build in support of the WS2081 (or popen with a C program)

With boblight and omxplayer on the Pi the CPU load is 75% average with Big Buck Bunny 1920x1080 .
I feel that the rendering is not as good as XBMC on another PC but I still have to tweak some parameters.

Thank you again Stasik0 ! I will wait for the next step :)

VZoltan
Posts: 179
Joined: Sat Jun 02, 2012 10:00 pm

Re: Boblight possible?

Mon Jan 14, 2013 9:24 pm

plfort wrote:Your last modifications solve the issue ! Thank you !
My config :
Raspberry Pi model B 256M (OC 950MHz)
WS2801 strip on the Pi
Boblight with build in support of the WS2081 (or popen with a C program)

With boblight and omxplayer on the Pi the CPU load is 75% average with Big Buck Bunny 1920x1080 .
I feel that the rendering is not as good as XBMC on another PC but I still have to tweak some parameters.

Thank you again Stasik0 ! I will wait for the next step :)
This one is needed to soften the rendering/color changing
http://vzoltan.com/stasiko/bob.png
Mmaybe someone will figure it out how to add this kind of parameter to Stasik0's build.

plfort
Posts: 18
Joined: Tue Jul 03, 2012 11:26 pm
Location: Grenoble
Contact: Website

Re: Boblight possible?

Mon Jan 14, 2013 10:03 pm

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).

Return to “General discussion”