Overclock DDR3 SDRAM - Ambilight HEVC

Post Reply
User avatar
wrxtasy
Posts: 1298
Joined: Wed May 13, 2015 1:59 pm
languages_spoken: english
ODROIDs: C1, C1+, C2
Location: Australia
Has thanked: 3 times
Been thanked: 2 times
Contact:

Overclock DDR3 SDRAM - Ambilight HEVC

Unread post by wrxtasy » Mon Oct 10, 2016 5:25 am

It has been pointed out by zenji2016 in the main LE 7.1 thread that Hardkernel now provides a method to Overclock the DD3 RAM on the C2 to get Ambilight working when playing 1080p and up to 2160p / 30 fps HEVC video.

http://forum.odroid.com/viewtopic.php?f ... 34#p161598
http://odroid.com/dokuwiki/doku.php?id= ... ust_ddrclk

WARNING: Make a .tar backup of LibreELEC. The following may be unstable !
Use the LibreELEC Configurator found in Kodi > Programs. Then SMB connect and store the .tar backup somewhere safe.

Use the following (December) LE 7.1.1 r5p1 update. I've added Ondemand CPU Govn'r as a default and also the hexdump command to Busybox.

Edit all version of LE 7.1.x onwards should have the O/C code in them. Krypton media_build as well.

LibreELEC-Odroid_C2.aarch64-7.1.1.r5p1.tar

I've also made it a bit easier to apply the overclock, simply do the .DDR.Clock.tar update and:
(one line at a time)

Code: Select all

wget http://dn.odroid.com/S905/BootLoader/ODROID-C2/c2_update_ddrclk.sh -O ram && chmod +x ram
./ram 1104
reboot
the "ram" script name is used instead of the complicated "c2_update_ddrclk.sh" HardKernel are using.

To revert back to normal:

Code: Select all

./ram 912
reboot
Turn on ability to use ambilight for HEVC (h265):

Code: Select all

echo 1 | tee /sys/module/amvdec_h265/parameters/double_write_mode
Turn off ability to use ambilight for HEVC (h265):

Code: Select all

echo 0 | tee /sys/module/amvdec_h265/parameters/double_write_mode
W.
LibreELEC Krypton C1(+) HERE
LibreELEC Krypton C2 HERE

ecab21
Posts: 91
Joined: Sat Apr 02, 2016 12:49 am
languages_spoken: english, portuguese
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Overclock DDR3 SDRAM - Ambilight HEVC

Unread post by ecab21 » Thu Oct 13, 2016 7:40 am

I didn't upgraded yet, but I used the code to turn on ambilight for HEVC.
My problem is that every time I reboot the Odroid the ambilight is deactivated for HEVC, then I have to change the value to 1.

Any idea to make that change permanent?

User avatar
wrxtasy
Posts: 1298
Joined: Wed May 13, 2015 1:59 pm
languages_spoken: english
ODROIDs: C1, C1+, C2
Location: Australia
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: Overclock DDR3 SDRAM - Ambilight HEVC

Unread post by wrxtasy » Thu Oct 13, 2016 9:32 am

Code: Select all

nano .config/autostart.sh
Insert:

Code: Select all

echo 1 | tee /sys/module/amvdec_h265/parameters/double_write_mode

Code: Select all

CTRL-X to exit

chmod +x .config/autostart.sh
reboot
LibreELEC Krypton C1(+) HERE
LibreELEC Krypton C2 HERE

countzero
Posts: 27
Joined: Tue Jul 05, 2016 6:31 pm
languages_spoken: german, english
ODROIDs: Odroid-C2 (*2)
Odroid-N2 (*3)
Location: Vienna/Austria
Has thanked: 0
Been thanked: 0
Contact:

Re: Overclock DDR3 SDRAM - Ambilight HEVC

Unread post by countzero » Thu Oct 13, 2016 7:57 pm

Hi,

maybe a bit off-topic here, but is there a decent walkthrough/FAQ/How-To about the build and setup of my personal ambilight with my LED-Strips?
I saw some dealing with RasPI-Ambilight ... and somewhere i read about Odroid & Arduino & Ambilight .... but I didn't see anything where I could directly build it on Odroid and without Arduino.

Might you guys help me out here? ;)

Thanks in advance and BR,
count

User avatar
odroid
Site Admin
Posts: 33336
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 384 times
Been thanked: 454 times
Contact:

Re: Overclock DDR3 SDRAM - Ambilight HEVC

Unread post by odroid » Thu Oct 13, 2016 9:59 pm

We are making a 4K Ambilight demo on 55inch UHD TV with C2 now. Once we finish it we will write an article for our Magazine November issue with detail instruction.

countzero
Posts: 27
Joined: Tue Jul 05, 2016 6:31 pm
languages_spoken: german, english
ODROIDs: Odroid-C2 (*2)
Odroid-N2 (*3)
Location: Vienna/Austria
Has thanked: 0
Been thanked: 0
Contact:

Re: Overclock DDR3 SDRAM - Ambilight HEVC

Unread post by countzero » Thu Oct 13, 2016 11:57 pm

odroid wrote:We are making a 4K Ambilight demo on 55inch UHD TV with C2 now. Once we finish it we will write an article for our Magazine November issue with detail instruction.
That would be indeed very great :)
Thanks in advance!

BR,
count

Pienoet
Posts: 398
Joined: Sun May 10, 2015 10:04 pm
languages_spoken: english Dutch
Has thanked: 0
Been thanked: 0
Contact:

Re: Overclock DDR3 SDRAM - Ambilight HEVC

Unread post by Pienoet » Sun Nov 13, 2016 11:38 pm

Hello wrxtasy,

Is this also working on LibreELEC (Krypton) v7.90.008 ALPHA?

andy5macht
Posts: 238
Joined: Mon May 16, 2016 5:25 am
languages_spoken: english, german
ODROIDs: U3, C2, N2
Has thanked: 5 times
Been thanked: 0
Contact:

Re: Overclock DDR3 SDRAM - Ambilight HEVC

Unread post by andy5macht » Wed Nov 16, 2016 4:46 pm

yes it does work on LibreELEC (Krypton) v7.90.008 ALPHA - checked myself.

alex240188
Posts: 135
Joined: Thu Oct 01, 2015 12:46 am
languages_spoken: english
ODROIDs: C1+, C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Overclock DDR3 SDRAM - Ambilight HEVC

Unread post by alex240188 » Thu Jan 05, 2017 5:04 am

I have just been having a play with the C2 again and seem to have found something potentially interesting

(default settings)
echo 0 | tee /sys/module/amvdec_h265/parameters/double_write_mode
I just get a pink display on LED's when playing any H265 Video

echo 1 | tee /sys/module/amvdec_h265/parameters/double_write_mode
Hyperion capture works correctly but 4k files lag behind, then buffer and skip.

echo 2 | tee /sys/module/amvdec_h265/parameters/double_write_mode
1st playback attempt of an x265 video doesnt display anything on LED's and has a small video glitch on screen for about 1/4 of a second when playback first starts.
Stop the Video & Start it again
All future videos are captured properly and i cannot see any lagging or buffering issues

may need further testing but looks like overclock may not be required for smooth 4k capturing with hyperion

EDIT:
echo 2 seems to mess up the resolutuion majorly

echo 3 seems good.
sometimes LED's stay blank when playback starts, most of the time its working perfectly with no deterioration to playback.

anything above 3 results in garbage on screen

Do we have some kind of listing to what the double_write_mode options are?

Edit2
For reference I'm running raybuntus 7.90 build.
No over locking
Echo 3 seems to give me the best performance so far without over clock.
The 1st playback of the h265 doesn't show on the led but 2nd and onward does fine

jurand
Posts: 69
Joined: Fri May 06, 2016 7:55 pm
languages_spoken: english
ODROIDs: XU XU-3 XU-4 C1+ C2
Location: Poznań, Poland
Has thanked: 0
Been thanked: 0
Contact:

Re: Overclock DDR3 SDRAM - Ambilight HEVC

Unread post by jurand » Sat Jan 14, 2017 11:32 pm

I'm playing with hyperion / ambilight for a while and I noticed a problem: after few hours a video playback can slow down (like 2x), while audio is normal. Rewind -10s fixes the situation. Anyone ecountered this?
Noticed on August build and on the latest ch341_pwm build.

Pienoet
Posts: 398
Joined: Sun May 10, 2015 10:04 pm
languages_spoken: english Dutch
Has thanked: 0
Been thanked: 0
Contact:

Re: Overclock DDR3 SDRAM - Ambilight HEVC

Unread post by Pienoet » Sun Jan 15, 2017 12:19 am

jurand wrote:I'm playing with hyperion / ambilight for a while and I noticed a problem: after few hours a video playback can slow down (like 2x), while audio is normal. Rewind -10s fixes the situation. Anyone ecountered this?
Noticed on August build and on the latest ch341_pwm build.
I updated to krypton and installed hyperion from LE repo and it's working great.
You could try @raybuntu's builds playback is very smooth.

leo5111
Posts: 86
Joined: Sat Jan 14, 2017 9:50 am
languages_spoken: english
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: Overclock DDR3 SDRAM - Ambilight HEVC

Unread post by leo5111 » Sun Jan 15, 2017 12:05 pm

im confused is ambilight a differnt kind of HEVC? is there another version of HEVC? trying to figure out what this is...thanks

User avatar
wrxtasy
Posts: 1298
Joined: Wed May 13, 2015 1:59 pm
languages_spoken: english
ODROIDs: C1, C1+, C2
Location: Australia
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: Overclock DDR3 SDRAM - Ambilight HEVC

Unread post by wrxtasy » Sun Jan 15, 2017 12:21 pm

LibreELEC Krypton C1(+) HERE
LibreELEC Krypton C2 HERE

jurand
Posts: 69
Joined: Fri May 06, 2016 7:55 pm
languages_spoken: english
ODROIDs: XU XU-3 XU-4 C1+ C2
Location: Poznań, Poland
Has thanked: 0
Been thanked: 0
Contact:

Re: Overclock DDR3 SDRAM - Ambilight HEVC

Unread post by jurand » Sun Jan 15, 2017 9:08 pm

In fact I wanted to write "adalight" not "ambilight", what would mean that I use an arduino to drive my LED stripe. Anyway it has nothing to do with HEVC...

alex240188
Posts: 135
Joined: Thu Oct 01, 2015 12:46 am
languages_spoken: english
ODROIDs: C1+, C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Overclock DDR3 SDRAM - Ambilight HEVC

Unread post by alex240188 » Sun Jan 15, 2017 11:08 pm

leo5111 wrote:im confused is ambilight a differnt kind of HEVC? is there another version of HEVC? trying to figure out what this is...thanks
Adalight is just the specific instructions that are sent to control the LEDs.
The fastled or neopixel sketches that run on the arduino expect their data in this format.
Most of the other options in Hyperion for led type are used for controlling LEDs directly by the device instead of using the arduino.

This topic is specifically in relation to getting h265(HEVC) content captured properly by hyperion

lupus11
Posts: 2
Joined: Wed Jan 18, 2017 9:44 pm
languages_spoken: english,german
ODROIDs: 2 x C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Overclock DDR3 SDRAM - Ambilight HEVC

Unread post by lupus11 » Thu Jan 19, 2017 5:55 pm

Is there any documentation available about the compression used for the frame buffer in HEVC ?
If so, Hyperion could possibly be adapted to handle compressed frames.

Mister XY
Posts: 74
Joined: Sat Oct 24, 2015 2:36 pm
languages_spoken: german
Has thanked: 0
Been thanked: 0
Contact:

Re: Overclock DDR3 SDRAM - Ambilight HEVC

Unread post by Mister XY » Tue May 16, 2017 11:50 pm

Hello, i have overclock my Ram and the movie runs abou 40 minutes very nice. But after 40 minutes it's stutter and jitter and after 1 minute, it's runs very well. Without overclocking, it's stutter after 3-5 minutes. Are there other hacks for the last 50 - 180 minutes?

Mister XY
Posts: 74
Joined: Sat Oct 24, 2015 2:36 pm
languages_spoken: german
Has thanked: 0
Been thanked: 0
Contact:

Re: Overclock DDR3 SDRAM - Ambilight HEVC

Unread post by Mister XY » Wed May 17, 2017 8:17 pm

I would like to post an debug log but this is the strange. With activatet debug log, i have not the Problem. I have tested it 5 times with debug log and without debug log and every time wit debug log, i have not this error.

kban
Posts: 4
Joined: Sun Nov 18, 2018 6:22 pm
languages_spoken: english, spanish
ODROIDs: odroid-c2
Has thanked: 0
Been thanked: 0
Contact:

Re: Overclock DDR3 SDRAM - Ambilight HEVC

Unread post by kban » Sun Nov 18, 2018 6:38 pm

Mister XY wrote:Hello, i have overclock my Ram and the movie runs abou 40 minutes very nice. But after 40 minutes it's stutter and jitter and after 1 minute, it's runs very well. Without overclocking, it's stutter after 3-5 minutes. Are there other hacks for the last 50 - 180 minutes?
i have the same problem, except that i can not get more than 20 minutes, im giving a try at coreelec whit hyperion-ng...but without any luck right now. I'm wondering too if there is any way to enjoy ambilight on 4k, HEVC, without any issue..

Post Reply

Return to “CoreELEC/LibreELEC - Kodi Project for C1/C2”

Who is online

Users browsing this forum: No registered users and 2 guests