Ambilight / Atmolight

Ideas and dreaming about C series TV will go this forum.

maxmustermann
Posts: 8
Joined: Mon Aug 29, 2011 2:33 pm

Ambilight / Atmolight

Post by maxmustermann »

Hello,
several times already i was thinking about making some dynamic light effects for my TV. As usual after 1 week i got another thought and forgot about that. Now, after i saw how cheap the LED stripes became on ebay the dreams are back, but now with a different way of controlling it.

In the past I was thinking about grabbing the SCART signal in proper way with a microcontroller and control with PWM the LED Stripes ( i read it somewhere, i think it was mikrocontroller.net ). But now i got a C650 TV and had following thoughts:
what if it was possible to grab the picture buffer from the TV -> pass the picture to the internal DSP or CPU or whatever -> calculate there the dominating colors of the borders and then send the values over TV's RS232/ UART to a microcontroller which interprets the signal and controls the LED stripes.

Could it work?
Does the internal CPU/DSP have enought power to calculate the colors?
Does the firmware need to be hacked or is it possible to run the app from the USB Stick for example?

As you see i am not really informed about all possibilities of SamyGo and the internal life of the TV. A quick search in the forum was not satisfying enough to me so i decided to ask.


Thx & Greets

maxmustermann
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: Ambilight / Atmolight

Post by juusso »

Hi, welcome to SamyGO :)

Yes, we have some success on A and B series, i suggest you to read this topic.
Noone reported about C series, but with help of our devels you could be the first ;)
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
moras86
Official SamyGO Developer
Posts: 180
Joined: Sun Feb 21, 2010 3:18 pm
Location: Poland
Contact:

Re: Ambilight / Atmolight

Post by moras86 »

There is very interested open source project for Windows/Linux/MacOS for Ambilight. It's called Light Pack.

More info:
http://lightpack.googlecode.com
http://pixelkit.ru
Image . Image
TV LCD: Samsung LE40B651T3W (CI) | Internet@TV | fw: 2005 (patched: SamyGO v0.24 + GMT2, ArFIX2, ADFIX) | matrix: SQ04
BluRay: Samsung BD-D5300-ZF | SamsungApps | fw: 1013
Android-Box: Zidoo X8 | Realtek RTD1295 64bit (QuadCore), Mali-T820 GPU, 2 GB RAM, HDMI IN record, Android 6.0 | ZDMC 17.1
my projects: Remote LAN Control - Desktop app (v0.8) | Signal checker for DVB-T (v0.3)
User avatar
erdem_ua
SamyGO Admin
Posts: 3125
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: Ambilight / Atmolight

Post by erdem_ua »

I think it's not too hard to do such calculations from PVR stream capture at B series...
Later we could do it same for C series too.
We could build a program for supporting LightPack devices...
maxmustermann
Posts: 8
Joined: Mon Aug 29, 2011 2:33 pm

Re: Ambilight / Atmolight

Post by maxmustermann »

Hello and thank you for the interesting answers. Its very nice to hear that there is at least a theoretical chance to build such a thing. Also the project lightpack is very interesting with the expection that a external equipment is needed to feed the microcontroller with data. I am dreaming about a light effects which a working independent of what i am using, if that is a TV signal or HDMI or internal media player

@erdem_ua wold that require a modded firmware or could that be an external program on a USB-Stick? (I have seen some "screen capture" applications here, would it go this way or something complitely different ?) because i think that a modded firmware would scare a lot of people ( including me :)) because I have no idea at the moment how easy it is to brick my TV. I mean, do i just need to forget a semicolon in the sourcecode and the TV is dead or does "bricking" require a lot more mistakes to be made before it cant be undone. Of cource a light pack support would be cool since it is a open source project and everyone could try his own luck in developing the lights itself based on the light control signal coming from the TV
User avatar
erdem_ua
SamyGO Admin
Posts: 3125
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: Ambilight / Atmolight

Post by erdem_ua »

No firmware change required. We just needed to build a program that calculates those colors from transport stream. But that approach definitelly doesn't work with HDMI/scart inputs and analog TV. Just possible with Digital Input and PVR enabled platforms. Also we need to find person who wanted to do this job :)
maxmustermann
Posts: 8
Joined: Mon Aug 29, 2011 2:33 pm

Re: Ambilight / Atmolight

Post by maxmustermann »

erdem_ua wrote:...But that approach definitelly doesn't work with HDMI/scart inputs and analog TV. Just possible with Digital Input and PVR enabled platforms...
well that very pity, i didnt even try to enable PVR in my TV because of lacking a usecase (i never record because i am watching mostly internet streams with "Online Video Player" ( NetPlayer ) or media from my HDD and the TV broadcastings rarely deserve it to be recorded ) so i thought the PVR function can record everything what comes to the screen, no matter which source...maybe i should try to enable PVR on my TV first :oops: and try to run some application from here before i continue dreaming :) ( i remember there were some hints that with the latest firmware some ways of hacking are not available anymore, that will be the first thing to check :)
sbav1
Official SamyGO Developer
Posts: 374
Joined: Fri Jan 15, 2010 10:20 am

Re: Ambilight / Atmolight

Post by sbav1 »

erdem_ua wrote:We just needed to build a program that calculates those colors from transport stream.
Capturing DVB-T/C/S transport stream (or just video PES) - sure, why not. But: decoding MPEG2/MPEG4 video on 600MHz ARM CPU in real time? I really doubt it..
For MPEG4 1920x1080@i50 video: downright impossible, IMO.
sbav1
Official SamyGO Developer
Posts: 374
Joined: Fri Jan 15, 2010 10:20 am

Re: Ambilight / Atmolight

Post by sbav1 »

maxmustermann wrote: what if it was possible to grab the picture buffer from the TV -> pass the picture to the internal DSP or CPU or whatever ->
Broadly speaking, it should be possible to capture picture[s] from TV memory [frame]buffers, regardless of the signal source. I did some preliminary research on that subject for B-Series; see viewtopic.php?f=3&t=346 thread for details (last ~5 posts or so). I think it's quite similar in C-Series Valencia/T-VAL* models..
and then send the values over TV's RS232/ UART
USB and/or LAN output (or additional 3.50$ USB <-> RS232 dongle) will be better/easier/cheaper choice, IMO.
Could it work?
I think so (at least for T-CH* B-Series, and T-VAL* C-Series TVs). Quite a lot of work required, though :(.
Does the internal CPU/DSP have enought power to calculate the colors?
Good question. Most likely, some kind of YCbCr -> RGB real-time conversion will be unavoidable.. But, (considering that we only need to process image borders): I think so :).
User avatar
erdem_ua
SamyGO Admin
Posts: 3125
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: Ambilight / Atmolight

Post by erdem_ua »

sbav1 wrote:
Does the internal CPU/DSP have enought power to calculate the colors?
Good question. Most likely, some kind of YCbCr -> RGB real-time conversion will be unavoidable.. But, (considering that we only need to process image borders): I think so :).
Also we don't needed to calculate those values for each frame. Instead I believe ~15-20 FPS is enough to have good illumination...

Post Reply

Return to “[C] Brainstorm”