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

Re: Boblight possible?

Fri Jan 04, 2013 3:40 pm

Hi, well I am currently working on gimli's omxplayer which is indeed used as the backbone in RPi XBMC releases.

In fact I am doing the screencapture from inside of the omxplayer's video pipeline.

I am now modifying the standalone versions of the omxplayer (I can not test it yet - my LEDs are still on their way). After I have confirmed it working and have done a pull request for omxplayer, I plan to look into the omxplayer XBMC embeddable version.

Does it clarify my approach?

regnets
Posts: 16
Joined: Fri Jan 04, 2013 1:51 pm

Re: Boblight possible?

Fri Jan 04, 2013 9:11 pm

It nearly clarifies your approach.

Are you sure that your modified omxplayer will work with the boblight client plugin?

Sadly i have no idea whats going on in this sourcecode. The only thing i know is, that memphiz needs an implementation for the CRenderCapture method.

Maybe you could contact him?

If you need a beta tester, i'll have a spare raspberry pi, an arduino and the some lighting strips.

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

Re: Boblight possible?

Fri Jan 04, 2013 11:17 pm

well, writing a render capturing is not directly possible due to PI's memory split... however writing from player's pipeline works.

a beta test is nice, would you preffer a precompiled version of omxplayer.bin or compiling from source?

Here is a link for boblight .sh file and a binary (https://www.transferbigfiles.com/fc51e0 ... zO96vNkrA2)... start with omxplayer -h for additional options.

User avatar
Mikka
Posts: 2
Joined: Mon Dec 31, 2012 12:56 pm

Re: Boblight possible?

Sat Jan 05, 2013 8:18 pm

hi Stasik0
can you give/send me the source patch file for the omxplayer :?:

Mikka

regnets
Posts: 16
Joined: Fri Jan 04, 2013 1:51 pm

Re: Boblight possible?

Sat Jan 05, 2013 9:38 pm

Hi,

i had to set up raspbian and compile boblightd...

So finally i tried to start omxplayer. And here is the first error:
pi@raspberrypi /usr/local/lib $ ./omxplayer /home/pi/Test\ Video.mov -b
file : /home/pi/Test Video.mov result 43 format mov,mp4,m4a,3gp,3g2,mj2 audio streams 1 video streams 1 chapters 0 subtitles 0 length 70
omxplayer.bin: OMXCore.cpp:822: OMX_ERRORTYPE COMXCoreComponent::FreeOutputBuffers(bool): Assertion `m_omx_output_buffers.size() == m_omx_output_available.size()' failed.
Aborted

boblightd itself is working also it is possible to connect to boblightd from another pc via xbmc with boblight addon installed.

Thank you

PS: At first i got another error, i think omxplayer doesn't search in the correct folder for the modules:

pi@raspberrypi ~ $ ./omxplayer.bin
./omxplayer.bin: error while loading shared libraries: libboblight.so.0: cannot open shared object file: No such file or directory
pi@raspberrypi ~ $ ./omxplayer
./omxplayer.bin: error while loading shared libraries: libboblight.so.0: cannot open shared object file: No such file or directory

OK, i think it doesnt have something to do with your omxplayer version... i also get this error if i try to execute boblight-constant

pi@raspberrypi /etc $ boblight-constant
ERROR: libboblight.so: cannot open shared object file: No such file or directory

Are you on some irc servers? Maybe it's faster to chat directly then using the forum

regnets
Posts: 16
Joined: Fri Jan 04, 2013 1:51 pm

Re: Boblight possible?

Sat Jan 05, 2013 11:16 pm

Ok now i got some other errors... i think it's better to get the source and just install the new version of the omxplayer...

pi@raspberrypi ~ $ ./omxplayer.bin /home/pi/Test\ Video.mov -b
./omxplayer.bin: relocation error: /usr/lib/omxplayer/libavformat.so.54: symbol av_realloc_f, version LIBAVUTIL_51 not defined in file libavutil.so.51 with link time reference

Is the source on github or so?

[EDIT]
Found your repo:
https://github.com/Stasik0/omxplayer
[/EDIT]

Thank you

regnets

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

Re: Boblight possible?

Sun Jan 06, 2013 10:29 am

hi,

@regnets you got to update the rpi's firmware, I use the rpi-update script... the error you have seem to be an ffmpeg issue - try to recompile it from the source (like in the readme of omxplayer)

now i had some time to install LEDs - everything seems to work at least for 25 LEDs

http://www.youtube.com/watch?v=E8FtJkvTEKA

i am often in the xbmc-dev channel on freenode....

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

Re: Boblight possible?

Sun Jan 06, 2013 11:19 am

Hi i have boblightd up and running and it works with 50leds and xbmc from windows/osx as you can see here:
http://youtu.be/RPI3lZFhQgI
Leds are connected to the rpi and xbmc from osx connecting to the rpi's boblight daemon and drives the leds.

How can i run the movie from the pi and run the leds from the pi?


Thx!




With this file from above:
https://www.transferbigfiles.com/fc51e0 ... zO96vNkrA2

It gives this:
pi@raspbmc:~$ ./omxplayer.bin /hdd/1.mp4 -b
./omxplayer.bin: error while loading shared libraries: libavutil.so.51: cannot open shared object file: No such file or directory

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

Re: Boblight possible?

Sun Jan 06, 2013 12:20 pm

did you try to add "-p -o hdmi" to the CL?

you may need to recompile ffmpeg from the source follow this tutorial http://wrightrocket.blogspot.de/2012/08 ... an-on.html

to the part where
make -f Makefile.ffmpeg
make -f Makefile.ffmpeg install

to compile it, you need to set 16mem of gpu mem in config.txt

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

Re: Boblight possible?

Sun Jan 06, 2013 12:24 pm

Oh, doest it work via composit? I dont have hdmi.
I have 512ram pi, and it is splitted in half 256to cpu and 256gpu
Cpu needs almost the entire 512 and gpu only 16?

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

Re: Boblight possible?

Sun Jan 06, 2013 12:36 pm

try to set just -p then it will work for composite aswell, you need to have much RAM only from ffmpeg *compilation*, not for running the omxplayer itself. With 256/256 split you do not need to change anything.

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

Re: Boblight possible?

Sun Jan 06, 2013 12:59 pm

Stasik0 wrote:try to set just -p then it will work for composite aswell, you need to have much RAM only from ffmpeg *compilation*, not for running the omxplayer itself. With 256/256 split you do not need to change anything.
Thx, i have now only one problem,
I have raspbmc and not raspbian (raspbmc is built on raspbian, but different) and i dont know where to find omxplayer source to build it from the source.

This:
http://omxplayer.sconde.net/
Or this:
https://github.com/huceke/omxplayer
Or yours
https://github.com/Stasik0/omxplayer
?

Thx

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

Re: Boblight possible?

Sun Jan 06, 2013 1:13 pm

take mine, since it has the boblight client included....
i have done a native compile i will paste a rough tutorial for you (its for raspbian) http://pastebin.com/H2SW3CFu its pretty rough, however, hopefully it can help you
however native compiling takes ages, maybe you want to do a cross-compile

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

Re: Boblight possible?

Sun Jan 06, 2013 2:04 pm

Stasik0 wrote:take mine, since it has the boblight client included....
i have done a native compile i will paste a rough tutorial for you (its for raspbian) http://pastebin.com/H2SW3CFu its pretty rough, however, hopefully it can help you
however native compiling takes ages, maybe you want to do a cross-compile

Since i have working boblight, i guess i can skip compiling and installing boblight, right?
I will try the others later today, thank you!

well, thanks trying to help, but this is not clear as a step by step guide.
i am confused with editing the files, what should i insert into those files and where,
and what is jsut an output result in your pastebin file?

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

Re: Boblight possible?

Sun Jan 06, 2013 2:38 pm

Stasik0 wrote:take mine, since it has the boblight client included....
i have done a native compile i will paste a rough tutorial for you (its for raspbian) http://pastebin.com/H2SW3CFu its pretty rough, however, hopefully it can help you
however native compiling takes ages, maybe you want to do a cross-compile
would you pls upload to pastebin your edited

Makefile.include
and
Makefile

and then give a step by step guide, like where to run and what?


that would be much more clear!

thx

regnets
Posts: 16
Joined: Fri Jan 04, 2013 1:51 pm

Re: Boblight possible?

Sun Jan 06, 2013 3:22 pm

Alright this is working for me too...

Is it possible to enable boblight by default, so that i am able to install and when i play something in xbmc the lights should work?

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

Re: Boblight possible?

Sun Jan 06, 2013 4:13 pm

@regents unfortunately, as far as i understood, xbmc uses a different omxplayer version.... which is not in my repository, so we have to transfer stuff there... and maybe to read the parameteres out of the xbmc addon my memphiz... we need to talk to gimli on the irc
you can still try - enabling boblight by default is done here: https://github.com/Stasik0/omxplayer/bl ... er.cpp#L97 just set the first param to true and recompile

@VZoltan http://pastebin.com/7RmCbhSZ hth

regnets
Posts: 16
Joined: Fri Jan 04, 2013 1:51 pm

Re: Boblight possible?

Sun Jan 06, 2013 4:22 pm

@Stasik0 are you going to talk to gimli/memphiz? Are you also interested in getting the modified player to work in xbmc?

Thank you for pointing out the line for enabling boblight (thats something i could find out my self, if i had thought about it more than one second -.- ;) ).

I already try to compile your version with boblight enabled by default. Sadly i don't cross compile so it's take a while.

Thank you again for your great work here!

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

Re: Boblight possible?

Sun Jan 06, 2013 5:37 pm

Stasik0 wrote: @VZoltan http://pastebin.com/7RmCbhSZ hth
wait, i just saw your youtube video...
i dont have arduino, i have only rpi. (my leds are connected to the gpio)
is it still possible to get the result like on your video?

regnets
Posts: 16
Joined: Fri Jan 04, 2013 1:51 pm

Re: Boblight possible?

Sun Jan 06, 2013 6:19 pm

As long as the lights are driven by boblightd, it should work! Maybe you are running in a performance problem....

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

Re: Boblight possible?

Sun Jan 06, 2013 7:56 pm

regnets wrote:As long as the lights are driven by boblightd, it should work! Maybe you are running in a performance problem....
thx

i am installing raspbian onto an other sdcard and give it a try coz on raspbmc i got errors with your method.

regnets
Posts: 16
Joined: Fri Jan 04, 2013 1:51 pm

Re: Boblight possible?

Sun Jan 06, 2013 8:41 pm

I also tried everything form scratch. I don't get it to run... Try it tomorrow again...

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

Re: Boblight possible?

Sun Jan 06, 2013 8:45 pm

Stasik0 wrote:
maybe, would you pls share a clean fresh install of raspbian image with working boblightd and omxplayer with us?

thx :)

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

Re: Boblight possible?

Sun Jan 06, 2013 9:32 pm

well i do not know where can upload a 5.2gb compressed image of 8gb card... does some have an ftp server or similar?

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

Re: Boblight possible?

Sun Jan 06, 2013 9:44 pm

Stasik0 wrote:well i do not know where can upload a 5.2gb compressed image of 8gb card... does some have an ftp server or similar?
I have! (hosted on godaddy, maybe not the fastes one, but it has unlimited quota and bandwith)

Sent you a private message with "your" account :) !

Return to “General discussion”