Kodi 16.1 for Ubuntu/Debian (Hardware Accelerated)

User avatar
XeoSal
Posts: 925
Joined: Sun Aug 30, 2015 11:21 pm
languages_spoken: English
ODROIDs: C1, C1+, C2 & XU4
Has thanked: 0
Been thanked: 0
Contact:

Kodi 16.1 for Ubuntu/Debian (Hardware Accelerated)

Unread post by XeoSal » Sat Mar 12, 2016 1:46 pm

I am having an Xenial branch on my repository, I thought maybe the first package should be Kodi 16.1 RC2 with hardware acceleration, this is compiled natively on the C2 running the official Ubuntu 16.04 LTS with every single optimization flag possible for armv8.

>> UPDATE <<
I have just released another package compiled natively on C2 but this time running Debian Jessie, meaning you can get the same features of my build on another environment. If you are running ODROBIAN Jessie you would have to skip this completely while you should follow instructions posted in our own thread instead. However, if you are using your own Jessie distribution do not skip any steps, in this case you would alternatively have to use (jessie/s905) branch instead of the Xenial one provided below for official ubuntu.

>> UPDATE 2 <<
We're trying to get 4K resolution to work in Kodi while @OverSun has just pushed a patch for this, it'd be cool if some people test 4K functionality through the package available on testing branch on their UHD TVs then report back confirmation.

>> UPDATE 3 <<
I think that @OverSun has done this! We have gotten 4K resolution of Kodi to work on Linux Ubuntu/Debian and a new package is now available on the main branch, you no longer need the testing repository. I think that we are the first people to achieve this on an ARM SIngle Board computer. :mrgreen:

>> UPDATE 4 <<
Currently, I am also providing a new 32bit version of Kodi with an (armhf) package available for Debian Jessie. The best way to make use of this is by using an OS with Debian/armhf rootfs like the odrobian~hybrid edition, you would benefit definitely more from PVR addons already available for armhf in comparison with arm64 which is still a new architecture.

Acknowledgements:
  • @OverSun (Kodi Jarvis & AMLogic VPU libraries source code)
  • @Brian.K (First one to note/provide missing CEC arguments)
  • @mad_ady (Educational content for Kodi Autostart)
Getting Started
Well, these instructions are specifically made for official Ubuntu 16.04 LTS while if you are an ODROBIAN Jessie user then you would have to skip both (Step 1 & 2) because you should have your own repository branches integrated by default.

Step 1: Authorize ODROBIAN Repository
Please note that you have to apply this to your system only ONCE, if you haven't done it before. First step is exporting the repository Public Key to your system trusted zone:

Code: Select all

odroid64:$ sudo -s
odroid64:# wget -O- http://oph.mdrjr.net/odrobian/public-key.asc | apt-key add -
Step 2: Pull s905 (Xenial) Branch

Well, now you have to get the apt-list containing the package and put it inside your apt sources directory, It's available on my repository under the (xenial/s905) branch for Ubuntu 16.04 LTS. Please note this is also one time shot step so if you have pulled this particular branch before then forget about it, here's where you should put this:

Code: Select all

odroid64:# cd /etc/apt/sources.list.d/
odroid64:# wget *
(*) = List Download Link

Step 3: Install Kodi Package
First, update the apt-lists and install Kodi:

Code: Select all

odroid64:# apt-get update && apt-get install kodi-odrobian-fbdev
Tips & Tricks
Again, these instructions are specifically made for official Ubuntu 16.04 LTS while if you are an ODROBIAN Jessie user then you would have to skip both (Step 2 & 4) because you should have different settings by default.

Step 1: Set Sound Output
The sound output should be set by default to the DAC device however, it's very simple to change it back to HDMI by going to ( Menu > Applications > Sound & Video > Sound > Output ) then choose (ODROID-HDMI) instead of ODROID-DAC.

Step 2: Fix "udev" rules
This will correct the permissions for AMLogic devices located at (/dev/am*).

Code: Select all

odroid64:# cd /etc/udev/rules.d
odroid64:# wget http://oph.mdrjr.net/odrobian/doc/odrobian-platform/s905/10-odroid.rules
Step 3: Fix Kernel Permissions:
It seems that the kernel is automatically setting permission incorrectly for interfaces, I would recommend this workaround to fix this mess:

Code: Select all

odroid64:# pluma /etc/rc.local
Then add this ABOVE the line containing "exit 0".

Code: Select all

dmesg -n 1
chmod 666 /sys/class/graphics/fb*/scal*
echo 16 | tee /sys/module/amvdec_h265/parameters/dynamic_buf_num_margin
chmod 666 /sys/class/display/mode
chmod 666 /sys/class/video/axis
chmod 666 /sys/class/video/screen_mode
chmod 666 /sys/class/video/disable_video
chmod 666 /sys/class/tsync/pts_pcrscr
chmod 666 /sys/class/audiodsp/digital_raw
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Step 4: Set Color Depth
It seems that Kodi isn't able to render the video layer when the system is running at 32bpp, for now I would recommend that you change the color depth to 24bpp, to do this you have to edit boot.ini file.

Code: Select all

odroid64:# pluma /media/boot/boot.ini

Comment this line back:
setenv m_bpp "32"

Uncomment this line instead:
setenv m_bpp "24"
(HowTo) Run Kodi correctly
First of all, after you are done with instructions above, restart your device to take effect:

Code: Select all

odroid64:# reboot
Since this is Kodi for Mali-Fbdev, I do not recommened running this from Menu, for best results and ZERO tearing you should never run this upon an X desktop, the correct way to execute this is by switching to another TTY console, so on your keyboard press ( Ctrl + Alt + F3 ) then enter login information:

Code: Select all

Username: odroid
Password: odroid
Now you should run Kodi:

Code: Select all

odroid64:$ kodi
When you are done, you can exit Kodi then get back to your desktop by pressing ( Ctrl + Alt + F7 ) on your keyboard.

(HowTo) Enable CEC Support
You have to edit your "boot.ini" file to include the missing boot arguments of CEC. If you are running ODROBIAN Jessie, you don't need this.

Code: Select all

odroid64:# pluma /media/boot/boot.ini
Look for (# HDMI BPP Mode) then add this ABOVE it :

Code: Select all

# CEC Enable/Disable
setenv cec "cecf"

Look for (hdmimode=${m}) then REPLACE it with:

Code: Select all

hdmitx=${cec} hdmimode=${m}
After that, reboot your ODROID to take effect.

(HowTo) Fix Mouse/Subtitles/Black Screen Bug after 20 Minutes
It seems that console will crash Kodi after 20 minutes of use during video playback due to blanking. You just need to set a boot argument for console inside the "/media/boot/boot.ini" file to disable console blanking. If you are running ODROBIAN Jessie, you don't need this.

Look for:

Code: Select all

# Default Console Device Setting
setenv condev "console=ttyS0,115200n8 console=tty0"   # on both
Add this between the quotes:

Code: Select all

consoleblank=0
Result:

Code: Select all

setenv condev "console=ttyS0,115200n8 console=tty0 consoleblank=0" 
After that reboot your device to take effect!

(HowTo) Force ALSA over PulseAudio to fix GUI sound latency
First of all make sure you are running command line with regular user not root, then run:

Code: Select all

odroid64:$ echo "autospawn = no" > /home/odroid/.config/pulse/client.conf
odroid64:$ pulseaudio --kill
Then create an asound conf file with that content as suggested by @OverSun like this:

Code: Select all

odroid64:$ sudo nano /etc/asound.conf
After that, past this content to the file:

Code: Select all

pcm.!default {
        type plug
        slave {
      pcm "hw:0,0"
                format S32_LE
        }
}
(HowTo) Autostart Kodi after Booting
Create a new systemd service that starts kodi on tty5. It will be reloaded automatically if you quit it. Create the file /etc/systemd/system/kodifb.service as shown below:

Code: Select all

odroid64:$ sudo nano /etc/systemd/system/kodifb.service
Include the following content into the new file.

Code: Select all

[Unit]
Description=kodi on tty5

[Service]
Type=simple
ExecStart=/bin/su -c '/usr/local/bin/kodi' -l odroid
ExecStop=/bin/kill -HUP ${MAINPID}
StandardInput=tty
StandardOutput=tty
TTYPath=/dev/tty5
Restart=always
RestartSec=2

[Install]
WantedBy=getty.target
Enable the service.

Code: Select all

sudo systemctl enable kodifb
On your next reboot kodi will start (and X will start in background). The display may be a bit garbled, but should redraw correctly once you press a key.

Additional Software Support
There's a main branch on the repository for applications intended for Ubuntu 16.04 LTS in general, you should find there additional software like Kodi PVR Addons that you may need in this case and many more packages I am going to build in the future. The good point about this is that I am making sure that nothing will conflict with HardKernel nor Ubuntu Team official repositories.

In the other hand, if you are an ODROBIAN Jessie user please skip this completely because you should already have your own branch/packages available.

Step 1: Pull Main (Xenial) Branch
You would have to put the (xenial/main) branch on your apt-sources directory then update lists and Kodi:

Code: Select all

odroid64:$ sudo -s
odroid64:# cd /etc/apt/sources.list.d/
odroid64:# wget http://oph.mdrjr.net/odrobian/apt-sources/public/xenial-main.list
Step 2: Update Lists & Install Kodi PVR Addons
This will basically install all addons available on the repository for Kodi.

Code: Select all

odroid64:# apt-get update && apt-get install kodi-pvr-addons-odrobian
Available PVR Addons
  • pvr.argustv
  • pvr.dvbviewer
  • pvr.hts
  • pvr.iptvsimple
  • pvr.mediaportal.tvserver
  • pvr.mythtv
  • pvr.nextpvr
  • pvr.njoy
  • pvr.vdr.vnsi
  • pvr.vuplus
  • pvr.wmc
These will automatically be installed as a part of the mother package (kodi-pvr-addons-odrobian) while you can still choose to install specific ones separately without having them all.

Remarks:
  • Our "Xenial" branch will not conflict with the official repository from HardKernel.
  • Kodi now supports 4K resolution through scaling the interface while VPU is showing 4K for movies.
  • It supports accelerated video decoding up-to 4K for both H264 & HEVC video files.
  • This is fully hardware accelerated Kodi supporting both AMLogic VPU decoding and Mali-Fbdev GPU rendering.
  • It's been reported that CEC seems to work as expected.
  • Most credits go to @OverSun for the current state of hardware acceleration.
Enjoy! :)
Last edited by XeoSal on Sun Apr 24, 2016 5:11 pm, edited 16 times in total.

crashoverride
Posts: 4549
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 77 times
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by crashoverride » Sat Mar 12, 2016 2:06 pm

XeoSal wrote:It seems that Kodi isn't able to render the video layer when the system is running at 32bpp
Here is the workaround:

Code: Select all

# Enable alpha layer (show video)
echo "d01068b4 0x3fc0" | sudo tee /sys/kernel/debug/aml_reg/paddr

# Run Kodi here

# Disable alpha layer (hide video)
echo "d01068b4 0x7fc0" | sudo tee /sys/kernel/debug/aml_reg/paddr
You may want to change permissions on the sysfs entries so that sudo is not required. The proper solution would probably involve making a dummy kernel device driver to set/unset the register. This would allow reference counting so that it will not be reset as long as something is using video. It would also prevent user space from being able to crash the system through sysfs. Permissions would be specified on the driver instead of sysfs entries.

[edit]
I should point out that is completely a X11 "thing". Android, Wayland, Mir, etc do not require this. The workaround toggles enabling/disabling of the alpha layer of the framebuffer.

were55
Posts: 33
Joined: Thu Mar 03, 2016 4:20 am
languages_spoken: spanish
ODROIDs: waiting for Odroid-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by were55 » Sat Mar 12, 2016 2:40 pm

Hi Xeosal,

I'm receiving an erro when "wget *" command is executed:
root@odroid64:/etc/apt/sources.list.d# wget *
--2016-03-11 23:38:39-- http://odroid.list/
Resolving odroid.list (odroid.list)... failed: Name or service not known.
wget: unable to resolve host address ‘odroid.list’
--2016-03-11 23:38:39-- http://odroid.list~/
Resolving odroid.list~ (odroid.list~)... failed: Name or service not known.
wget: unable to resolve host address ‘odroid.list~’
--2016-03-11 23:38:39-- http://odroid.list.save/
Resolving odroid.list.save (odroid.list.save)... failed: Name or service not known.
wget: unable to resolve host address ‘odroid.list.save’
--2016-03-11 23:38:39-- http://remmina-ppa-team-ubuntu-remmina- ... nial.list/
Resolving remmina-ppa-team-ubuntu-remmina-next-xenial.list (remmina-ppa-team-ubuntu-remmina-next-xenial.list)... failed: Name or service not known.
wget: unable to resolve host address ‘remmina-ppa-team-ubuntu-remmina-next-xenial.list’
--2016-03-11 23:38:39-- http://remmina-ppa-team-ubuntu-remmina- ... list.save/
Resolving remmina-ppa-team-ubuntu-remmina-next-xenial.list.save (remmina-ppa-team-ubuntu-remmina-next-xenial.list.save)... failed: Name or service not known.
wget: unable to resolve host address ‘remmina-ppa-team-ubuntu-remmina-next-xenial.list.save’
then when trying to install kodi, I receive is not found, any idea?

thanks

User avatar
XeoSal
Posts: 925
Joined: Sun Aug 30, 2015 11:21 pm
languages_spoken: English
ODROIDs: C1, C1+, C2 & XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by XeoSal » Sat Mar 12, 2016 2:42 pm

were55 wrote:Hi Xeosal,

I'm receiving an erro when "wget *" command is executed:

then when trying to install kodi, I receive is not found, any idea?

thanks
As I said the (*) = the download link of the list, so let me make it easier for you, this what you have to do exactly:

Code: Select all

odroid:# wget http://oph.mdrjr.net/odrobian/apt-sources/public/xenial-s905.list
crashoverride wrote: Here is the workaround:

Code: Select all

# Enable alpha layer (show video)
echo "d01068b4 0x3fc0" | sudo tee /sys/kernel/debug/aml_reg/paddr

# Run Kodi here

# Disable alpha layer (hide video)
echo "d01068b4 0x7fc0" | sudo tee /sys/kernel/debug/aml_reg/paddr
You may want to change permissions on the sysfs entries so that sudo is not required. The proper solution would probably involve making a dummy kernel device driver to set/unset the register. This would allow reference counting so that it will not be reset as long as something is using video. It would also prevent user space from being able to crash the system through sysfs. Permissions would be specified on the driver instead of sysfs entries.

[edit]
I should point out that is completely a X11 "thing". Android, Wayland, Mir, etc do not require this. The workaround toggles enabling/disabling of the alpha layer of the framebuffer.
I will look into this, when I/YOU find a feasible solution working perfectly I would be happy to update the packages on the repository with that workaround. :)

were55
Posts: 33
Joined: Thu Mar 03, 2016 4:20 am
languages_spoken: spanish
ODROIDs: waiting for Odroid-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by were55 » Sat Mar 12, 2016 3:05 pm

Xeosal,

Now I can't find "kodi-odrobian-jarvis" , I found this package: kodi-odrobian-fbdev ... is't the same?

thanks

User avatar
XeoSal
Posts: 925
Joined: Sun Aug 30, 2015 11:21 pm
languages_spoken: English
ODROIDs: C1, C1+, C2 & XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by XeoSal » Sat Mar 12, 2016 3:07 pm

were55 wrote:Xeosal,

Now I can't find "kodi-odrobian-jarvis" , I found this package: kodi-odrobian-fbdev ... is't the same?

thanks
Oh! Sorry, this is the correct name.. :|

Code: Select all

odroid64:# apt-get install kodi-odrobian-fbdev
Main post edited.

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

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by odroid » Sat Mar 12, 2016 3:48 pm

Great!
It plays really well these UHD-4K video samples on Ubuntu FB. :o

sintel-4096x1744-cfg02_h.265.mkv 24FPS/H.265/HEVC(Main)
bbb-3840x2160-cfg02_h.265.mkv 60FPS/H.265/HEVC(Main)
Samsung_UHD_7Wonders_of_the_World_Italy.ts 59.94FPS/H.265/HEVC(Main 10)

User avatar
XeoSal
Posts: 925
Joined: Sun Aug 30, 2015 11:21 pm
languages_spoken: English
ODROIDs: C1, C1+, C2 & XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by XeoSal » Sat Mar 12, 2016 3:57 pm

odroid wrote:Great!
It plays really well these UHD-4K video samples on Ubuntu FB. :o

sintel-4096x1744-cfg02_h.265.mkv 24FPS/H.265/HEVC(Main)
bbb-3840x2160-cfg02_h.265.mkv 60FPS/H.265/HEVC(Main)
Samsung_UHD_7Wonders_of_the_World_Italy.ts 59.94FPS/H.265/HEVC(Main 10)
Cool @odroid! I didn't test 4K videos and I am so glad to hear they are working perfectly, also I do not have a TV with CEC functionality however, this is compiled with CEC 3.0 and the udev rules I supplied includes it so you may want to test its functionality as well. :D

If CEC doesn't work I will look for the cause and report back..

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

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by odroid » Sat Mar 12, 2016 4:05 pm

We will test the CEC and Pass-through functionality early next week since I have no those devices in my house either. ;)

User avatar
OverSun
Posts: 1491
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 18 times
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by OverSun » Sat Mar 12, 2016 7:30 pm

Is this the one on my version of aml_libs also, or something else is used?

User avatar
XeoSal
Posts: 925
Joined: Sun Aug 30, 2015 11:21 pm
languages_spoken: English
ODROIDs: C1, C1+, C2 & XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by XeoSal » Sat Mar 12, 2016 7:37 pm

OverSun wrote:Is this the one on my version of aml_libs also, or something else is used?
This is ALL your work man, I have done nothing other than compiling, figuring out most suitable configuration for building, testing, and this guide. ;)
I have credited you on my remarks, already!

User avatar
OverSun
Posts: 1491
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 18 times
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by OverSun » Sat Mar 12, 2016 7:39 pm

Oh, good, that means they also show 4k. I wasn't able to test it, I have no display and no source.
And all work is important, I'm mere source code digger, the skill to pack and deliver product to end-user is same level important. So keep it up!

soadzoor
Posts: 51
Joined: Tue Mar 08, 2016 8:15 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by soadzoor » Sat Mar 12, 2016 11:51 pm

odroid wrote:Great!
It plays really well these UHD-4K video samples on Ubuntu FB. :o

sintel-4096x1744-cfg02_h.265.mkv 24FPS/H.265/HEVC(Main)
bbb-3840x2160-cfg02_h.265.mkv 60FPS/H.265/HEVC(Main)
Samsung_UHD_7Wonders_of_the_World_Italy.ts 59.94FPS/H.265/HEVC(Main 10)

Where can I download these movieclips? :)


EDIT: I've found some other one :)

EDIT2: So, I tested a little bit, big kudos to all of you who worked on this project, it works pretty great :)
Some notices:

- It plays 4k movies perfectly smooth, even with 60 fps, HEVC. Not a single framedrop :)

- 24p output works! But only with movies with exact 24.000 framerate. Movies with 23.976 fps doesn't switch to that framerate on the TV, which is a little unfortunate, since almost every movie is recorded in 23.976 (24000/1001 to be exact).
In the other thread meveric said that
There are no proper drivers for Linux and the system can't switch correctly between 24, 50 and 60 Hz mode
. Can someone confirm this? Why does it support 24p, if it doesn't support 23.976p? :roll:

- CEC doesn't work, at least I couldn't get it to work. On android it works well, just like 23.976p. So if someone want to use it as a HTPC, I recommend android for now.

User avatar
XeoSal
Posts: 925
Joined: Sun Aug 30, 2015 11:21 pm
languages_spoken: English
ODROIDs: C1, C1+, C2 & XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by XeoSal » Sun Mar 13, 2016 4:04 am

soadzoor wrote: - CEC doesn't work, at least I couldn't get it to work. On android it works well, just like 23.976p. So if someone want to use it as a HTPC, I recommend android for now.
I will investigate CEC so if there's nothing wrong with the device driver of Linux kernel that might just end up as a simple permission issue that could be isolated easily. Bad thing is that I do not have a TV with CEC for development, I am a PC/monitors guy. :)

P.S. No, it seems the kernel is not pushing CEC device up at all, and the permissions are set correctly by my udev.rules file, so libcec should work out of the box when they upgrade the kernel with CEC support. This also might be a missing CEC entry in the boot.ini file, we'll see.

User avatar
OverSun
Posts: 1491
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 18 times
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by OverSun » Sun Mar 13, 2016 4:23 am

The 23/24 answer is easy - the way it was switching to 23/24 on C1 has changed, the command to switch to 23 doesn't work anymore, while 24 does.
I don't remember exactly what is the reasoning behind this, but there was a topic somewhere why it was done like this, and there was some kind of explanation I didn't pay attention to, stating something... Maybe that 23/24 is now unified to only 24 (which is stupid, but possible step from vendor), maybe something else.
If anyone eager enough to find it, I can look at the explanation and scratch my head for the issue.
Or, if anyone want to be a reeeeeeeeeal help, and he know stuff, he can install android, start 23.976 there, and if the TV switches refresh rate, cat the file /sys/class/display/mode on the disk, and tell me what is there inside. Then I can reproduce it on linux in five minutes and everything will work.

soadzoor
Posts: 51
Joined: Tue Mar 08, 2016 8:15 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by soadzoor » Sun Mar 13, 2016 5:21 am

OverSun wrote:The 23/24 answer is easy - the way it was switching to 23/24 on C1 has changed, the command to switch to 23 doesn't work anymore, while 24 does.
I don't remember exactly what is the reasoning behind this, but there was a topic somewhere why it was done like this, and there was some kind of explanation I didn't pay attention to, stating something... Maybe that 23/24 is now unified to only 24 (which is stupid, but possible step from vendor), maybe something else.
If anyone eager enough to find it, I can look at the explanation and scratch my head for the issue.
Or, if anyone want to be a reeeeeeeeeal help, and he know stuff, he can install android, start 23.976 there, and if the TV switches refresh rate, cat the file /sys/class/display/mode on the disk, and tell me what is there inside. Then I can reproduce it on linux in five minutes and everything will work.

I have an sdcard with android installed on it. I tested it and the results are here:

- Before the TV switched,

Code: Select all

cat /sys/class/display/mode
said

Code: Select all

1080p60
- When I started to play a 23.976 fps movie, the TV switched and

Code: Select all

cat /sys/class/display/mode
simply said

Code: Select all

1080p
- When I started to play a 24.000 fps movie, the TV switched again and it said the same:

Code: Select all

1080p
. Which is odd. :roll:

Do you think this will help? :roll:

User avatar
OverSun
Posts: 1491
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 18 times
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by OverSun » Sun Mar 13, 2016 5:38 am

Did tv switch to 23.976 on playback?

soadzoor
Posts: 51
Joined: Tue Mar 08, 2016 8:15 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by soadzoor » Sun Mar 13, 2016 5:39 am

OverSun wrote:Did tv switch to 23.976 on playback?
Yes

User avatar
OverSun
Posts: 1491
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 18 times
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by OverSun » Sun Mar 13, 2016 5:49 am

I'll have a look. Thanks for valuable info.

User avatar
OverSun
Posts: 1491
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 18 times
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by OverSun » Sun Mar 13, 2016 6:30 am

Well, there is file, that reports capabilities the chip has detected on the TV: /sys/class/amhdmitx/amhdmitx0/disp_cap
can you cat it under android? For me under linux it reports
480i60hz
480p60hz
576i50hz
576p50hz
720p60hz
1080i60hz
1080p60hz
720p50hz
1080i50hz
1080p50hz
1080p24hz
so it seems that my tv will not be even able to switch to 23Hz.
Also the switch actually is easy as cake - you just write the mode you want in to the /sys/class/display/mode. For example 'echo 1080p24hz > /sys/class/display/mode' will throw your TV into 24Hz mode. Don't do that while video is playing, this is not a good idea, but while everything is still it is safe to do so.
It worked like this on C1, it should be working like this on C2, because nothing seems to be changed, but the 23hz mode is gone. And it was not working because it's just not in the list.
But you very puzzled me when you said that the file contents was just 1080p and the TV was in 23Hz mode. Because it could only mean that there is now some black magic involved I have no idea about.

User avatar
OverSun
Posts: 1491
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 18 times
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by OverSun » Sun Mar 13, 2016 7:32 am

Ok, I did a little more investigation, and it seems like the 23Hz modes were put into kernel of C1 by the hardkernel at some point, and these doesn't even exists in C2 kernel right now for the display at all. I am very surprised and suspicious Android could do that by itself, but it doesn't sound plausible, since the kernel doesn't has the capability to do it and know nothing about these modes.
So I think there is only way to wait until these modes would be added to kernel by someone who know all that clocking and voltage stuff required for these modes to work. And then it should just be available as it is on C1. The Kodi itself tries to pop them, it's just kernel who has no idea right now what is being asked for.

soadzoor
Posts: 51
Joined: Tue Mar 08, 2016 8:15 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by soadzoor » Sun Mar 13, 2016 8:13 am

OverSun wrote:Well, there is file, that reports capabilities the chip has detected on the TV: /sys/class/amhdmitx/amhdmitx0/disp_cap
can you cat it under android? For me under linux it reports
480i60hz
480p60hz
576i50hz
576p50hz
720p60hz
1080i60hz
1080p60hz
720p50hz
1080i50hz
1080p50hz
1080p24hz
That's exactly what it says under android on my TV as well. BTW, when I play a 23.976 movie on android, and I press the info button on my TV, it says that its 1080/24p. But that's the way it is under my x86 linux pc and kodi as well. Maybe the TV uses 24p output for 23.976 as well? Or it's 23p, just doesn't have another name..? But why does it switch framerate under android then, and why not under linux.. Hm..

User avatar
OverSun
Posts: 1491
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 18 times
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by OverSun » Sun Mar 13, 2016 8:21 am

it does "sliding", selecting the nearest Hz to the video available. It just gives you 24Hz as nearest available.

soadzoor
Posts: 51
Joined: Tue Mar 08, 2016 8:15 pm
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by soadzoor » Sun Mar 13, 2016 8:28 am

OverSun wrote:it does "sliding", selecting the nearest Hz to the video available. It just gives you 24Hz as nearest available.
Wow O.o So my TV probably doesn't even support 23.976p output? My life has been a lie :o
Well, it seems that my eyes are not that sensitive, cause it seemed perfect to me.. Frankly, I think I couldn't even tell the difference with 60p and 24p output lol

Thanks for the infos mate!

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

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by wrxtasy » Sun Mar 13, 2016 4:16 pm

@ Everyone, this is NOT HardKernels fault that AMLogic themselves changed the Display Mode Hooks on the AML supplied S9xx Kernel vs the S8xx AML Kernel.

Its a bloody PITA as AMLogic have now broken amcodec video playback compatibilty with Kodi when using various display modes across Linux / OpenELEC and Android with the Kodi dynamic refresh rate switching function activated. Disable that in Kodi is the only workaround currently.

The Android mediacodec video syncs nicely for 23.976fps playback (different Android OS display hooks ? ), but it does not Hardware deinterlace mpeg2/h264 video like amcodec can do using the S905's VPU, so is useless for broadcast TV viewing.

Its one of the reasons why WeTek are currently rewriting the amcodec decoder itself for S9xx compatibility.

I believe there is additional HDMI processing going on in the new S905 Kernel for 23.976fps video sync. 23.976fps may even be internally processed to be sped up and output as 24Hz. (I don't have an accurate Hz OSD on my TV). Its definitely a different beast to the S8xx
LibreELEC Krypton C1(+) HERE
LibreELEC Krypton C2 HERE

User avatar
OverSun
Posts: 1491
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 18 times
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by OverSun » Sun Mar 13, 2016 8:26 pm

I'd say it's a pure display driver thing that was added to C1 and can be added to C2 the same way. But if you insist this is a deeper issue, why not...

crashoverride
Posts: 4549
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 77 times
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by crashoverride » Sun Mar 13, 2016 8:48 pm

Prepare to flame me!

I am one of the skeptics. I do not believe that anyone is sensitive enough to distinguish between 3:2 pull down and the original framerate.

The primary shortcoming in the argument is that unless the movie is silent, the media player syncs to the audio clock, not the video clock. It will stretch or drop video frames to match the audio sampling clock rate. If this is not done, the audio and video will drift out of synchronization. This is also entirely imperceptible at 1/60th of a second. When an external receiver is used, the issue is compounded.

This is not to say there are not visual anomalies present. I have observed them during testing for an unrelated project. However, I do not believe that its my eyes seeing the 3:2 pulldown.

I have no issue recanting this position should the evidence turn out to the contrary.

<Insert flames below> :D

alexmorbo
Posts: 3
Joined: Thu Feb 18, 2016 7:25 am
languages_spoken: english, russian
ODROIDs: C1
Has thanked: 0
Been thanked: 0
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by alexmorbo » Sun Mar 13, 2016 10:59 pm

My kodi runs max in 1080p mode, and takes 1/4 of the screen.

How to run kodi in 4k?

User avatar
XeoSal
Posts: 925
Joined: Sun Aug 30, 2015 11:21 pm
languages_spoken: English
ODROIDs: C1, C1+, C2 & XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by XeoSal » Mon Mar 14, 2016 4:21 am

alexmorbo wrote:My kodi runs max in 1080p mode, and takes 1/4 of the screen.

How to run kodi in 4k?
First of all, I have no real experience with this because I do not own an 4K display however, the natural way is setting the resolution by uncommenting the corresponding line on the "boot.ini" file to 2160p. Pay attention to what your particular TV does support, you may want to choose another option according to your setup.

Code: Select all

# 4K (3840x2160)
# setenv m "2160p30hz"    # Progressive 30Hz << REMOVE HASH (30hz referesh rate)
# setenv m "2160p25hz"    # Progressive 25Hz
# setenv m "2160p24hz"    # Progressive 24Hz
# setenv m "smpte24hz"    # Progressive 24Hz SMPTE
# setenv m "2160p50hz"    # Progressive 50Hz
# setenv m "2160p60hz"    # Progressive 60Hz  << REMOVE HASH (60hz referesh rate)
# setenv m "2160p50hz420" # Progressive 50Hz with YCbCr 4:2:0 (Requires TV/Monitor that supports it)
# setenv m "2160p60hz420" # Progressive 60Hz with YCbCr 4:2:0 (Requires TV/Monitor that supports it)
Then comment the old line back which is set by default to 1080p.

Code: Select all

# 1080 Lines (1920x1080)
# setenv m "1080i60hz" # Interlaced 60Hz
# setenv m "1080p60hz" # Progressive 60Hz << ADD HASH BACK
# setenv m "1080i50hz" # Interlaced 50Hz
# setenv m "1080p50hz" # Progressive 50Hz
# setenv m "1080p24hz" # Progressive 24Hz
After that you may want to confirm 4K output in Kodi from ( Settings > System > Video Output > Resolution > 4K ).
crashoverride wrote: <Insert flames below> :D
I am sorry @crashoverride seems like nobody dares to flame. :mrgreen:

User avatar
Brian.K
Posts: 246
Joined: Tue Sep 15, 2015 7:30 pm
languages_spoken: English, Korean
ODROIDs: XU4, C1+, C2
Location: South Korea
Has thanked: 0
Been thanked: 0
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by Brian.K » Mon Mar 14, 2016 10:46 am

HDMI-CEC is working well. I tested LG Simplink and SAMSUNG Anynet+.

* boot.ini

Code: Select all

setenv cec "cecf"
setenv bootargs "root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait rw ${condev} no_console_suspend hdmitx=${cec} hdmimode=${m} m_bpp=${m_bpp} vout=${vout} fsck.fix=yes net.ifnames=0"

User avatar
XeoSal
Posts: 925
Joined: Sun Aug 30, 2015 11:21 pm
languages_spoken: English
ODROIDs: C1, C1+, C2 & XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by XeoSal » Mon Mar 14, 2016 11:59 am

Brian.K wrote:HDMI-CEC is working well. I tested LG Simplink and SAMSUNG Anynet+.

* boot.ini

Code: Select all

setenv cec "cecf"
setenv bootargs "root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait rw ${condev} no_console_suspend hdmitx=${cec} hdmimode=${m} m_bpp=${m_bpp} vout=${vout} fsck.fix=yes net.ifnames=0"
Cool, as I suspected it was a missing boot.ini argument, thank you very much for finding this, testing and confirming! I will add that to the OP. :D

penguinist
Posts: 27
Joined: Mon Mar 14, 2016 12:05 pm
languages_spoken: english, german, spanish
ODROIDs: odroid-c2
Has thanked: 0
Been thanked: 0
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by penguinist » Mon Mar 14, 2016 12:30 pm

I'm also having trouble getting kodi to recognize a 4K screen. I'm running with a /media/boot/boot.ini setting of

setenv m "2160p30hz"
setenv m_bpp "24"

and the default X11 ubuntu session comes up in full 3840x2160 resolution. However when getting a new console session with Ctr-Alt-F3 and then running kodi we come up with a resolution of only 1280x720@23.98Hz.

Any ideas on tests I might try to diagnose this behavior?

User avatar
XeoSal
Posts: 925
Joined: Sun Aug 30, 2015 11:21 pm
languages_spoken: English
ODROIDs: C1, C1+, C2 & XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by XeoSal » Mon Mar 14, 2016 12:33 pm

penguinist wrote:I'm also having trouble getting kodi to recognize a 4K screen. I'm running with a /media/boot/boot.ini setting of

setenv m "2160p30hz"
setenv m_bpp "24"

and the default X11 ubuntu session comes up in full 3840x2160 resolution. However when getting a new console session with Ctr-Alt-F3 and then running kodi we come up with a resolution of only 1280x720@23.98Hz.

Any ideas on tests I might try to diagnose this behavior?
Did try checking 4K output in Kodi from ( Settings > System > Video Output > Resolution > 4K )?

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

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by odroid » Mon Mar 14, 2016 12:35 pm

4K screens still have the issue with Kodi 16 at this moment probably.
I think we may need to port the Kodi 17 alpha on Ubuntu/Debian as we did for Android 4K HDMI.

Anyway, we will try the Video Output settings as XeoSal suggested within a couple of hours.

penguinist
Posts: 27
Joined: Mon Mar 14, 2016 12:05 pm
languages_spoken: english, german, spanish
ODROIDs: odroid-c2
Has thanked: 0
Been thanked: 0
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by penguinist » Mon Mar 14, 2016 12:43 pm

Did try checking 4K output in Kodi from ( Settings > System > Video Output > Resolution > 4K )?
Looking at the resolution settings in Kodi, we have four choices displayed:

1280x720p
1280x720p
1920x1080p
1920x1080i

and the first was selected on startup, a change to 1920x1080p is accepted. This setting plays kodi in the upper left quarter of a 4K screen.

User avatar
XeoSal
Posts: 925
Joined: Sun Aug 30, 2015 11:21 pm
languages_spoken: English
ODROIDs: C1, C1+, C2 & XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by XeoSal » Mon Mar 14, 2016 1:18 pm

@OverSun I guess it's time for you to open a new git branch on your repository with "Kodi Krypton" which seems to me the coolest name for XBMC ever existed. Btw, can't we just port the particular commit or patch from Kodi 17 to our Jarvis branch?

P.S. Can anybody with 4K screen show me his log inside (/home/odroid/.kodi/temp/kodi.log) after running Kodi?

User avatar
mad_ady
Posts: 6782
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 215 times
Been thanked: 164 times
Contact:

Re: [Release] Kodi 16.1 for UBUNTU (Hardware Accelerated)

Unread post by mad_ady » Mon Mar 14, 2016 3:34 pm

I hear that the new kodi comes with a completely different UI/skin, so that's a plus: http://lifehacker.com/kodi-gets-a-brand ... 1763742769

User avatar
mad_ady
Posts: 6782
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 215 times
Been thanked: 164 times
Contact:

Re: Kodi 16.1 for Ubuntu/Debian (Hardware Accelerated)

Unread post by mad_ady » Mon Mar 14, 2016 6:23 pm

@XeoSal: Just for the record: It doesn't want to install on odrobian~crashoverride at the moment:

Code: Select all

root@odroid32:~# apt-get install kodi-odrobian-fbdev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 kodi-odrobian-fbdev:arm64 : Depends: libcdio13:arm64 (>= 0.83) but it is not going to be installed
                             Depends: libsmbclient:arm64 (>= 2:4.0.3+dfsg1) but it is not going to be installed
                             Depends: mali-fbdev:arm64 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Do I need to add arm64 as a foreign architecture, or will you release a 32bit build for it?

User avatar
meveric
Posts: 10526
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 17 times
Been thanked: 148 times
Contact:

Re: Kodi 16.1 for Ubuntu/Debian (Hardware Accelerated)

Unread post by meveric » Mon Mar 14, 2016 6:53 pm

There are no 32bit fbdev mali libraries yet.. It wouldn't work without, so you can't use it on 32bit system atm.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

penguinist
Posts: 27
Joined: Mon Mar 14, 2016 12:05 pm
languages_spoken: english, german, spanish
ODROIDs: odroid-c2
Has thanked: 0
Been thanked: 0
Contact:

Re: Kodi 16.1 for Ubuntu/Debian (Hardware Accelerated)

Unread post by penguinist » Mon Mar 14, 2016 9:51 pm

@XeoSal:
Can anybody with 4K screen show me his log inside (/home/odroid/.kodi/temp/kodi.log) after running Kodi?
/home/odroid/.kodi/temp/koki.log :

http://pastebin.com/BvwTXbxd

User avatar
OverSun
Posts: 1491
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 18 times
Contact:

Re: Kodi 16.1 for Ubuntu/Debian (Hardware Accelerated)

Unread post by OverSun » Mon Mar 14, 2016 11:50 pm

Yeah, I know what the problem is...
I need to add more resolutions to the faked array. I'll fix it today.

Also the sound problem on pure alsa is actually going from the kernel. There are three types of sound packets announced as supported - 16 bit, 24 bit and 32 bit. The 24 bit is actually a tricky one, by default for the kernel it's a "24 bit in 32 bit", meaning it's a 24-bit information load in 32-bit long packet. But for some reason for alsa the default one is 24-bit information in 24-bit packet. So in this mode alsa doesn't produce sound, since the packets are totally off for 1/3 of the length. For the same unknown reason Kodi just fucking loves 24-bit. It tries to play 16 bit audio in 24 bit, it tries to play 24 bit audio in 24 bit, it tries to play 32-bit audio in 24 bit. It just can't get enough of 24-bit, that's how much it loves it.
So to fix that I actually had to cut the 24-bit support announce from the kernel. 16-bit and 32-bit sound is fine.
And it looks like pulseaudio converts everything to 32-bit and that's why it's ok.

Stephan296
Posts: 28
Joined: Tue Mar 15, 2016 4:32 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Kodi 16.1 for Ubuntu/Debian (Hardware Accelerated)

Unread post by Stephan296 » Tue Mar 15, 2016 4:35 am

Thanks a lot for your perfect work!
I have only one question.
I want to build pvr plugin for tvheadend.
Can you help me with my question?
I tried to build with this repo and how-to:

https://github.com/hudokkow/pvr.hts

EDIT:

Compiling looks ok!
But when i select my pvr plugin i can enter the login data.
But when i activate my plugin he crashes about libs he cant find.

Thanks a lot!
Last edited by Stephan296 on Tue Mar 15, 2016 4:53 am, edited 1 time in total.

User avatar
OverSun
Posts: 1491
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 18 times
Contact:

Re: Kodi 16.1 for Ubuntu/Debian (Hardware Accelerated)

Unread post by OverSun » Tue Mar 15, 2016 4:39 am

I have no idea about pvr at all, sorry. But there are other people on the forum who deal with that much, I bet they would try to answer your questions.
I also pushed the changes needed for 4k interface to work to the github. Don't bet on them much, since I'm doing them blindly, I have no 4k device to see what it actually does.

User avatar
XeoSal
Posts: 925
Joined: Sun Aug 30, 2015 11:21 pm
languages_spoken: English
ODROIDs: C1, C1+, C2 & XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Kodi 16.1 for Ubuntu/Debian (Hardware Accelerated)

Unread post by XeoSal » Tue Mar 15, 2016 4:59 am

OverSun wrote:I have no idea about pvr at all, sorry. But there are other people on the forum who deal with that much, I bet they would try to answer your questions.
I also pushed the changes needed for 4k interface to work to the github. Don't bet on them much, since I'm doing them blindly, I have no 4k device to see what it actually does.
It's fine, we have a testing branch on (xenial/testing) when you release these changes we will let people to test, when it proves to be functional I will move it from testing to main (xenial/s905) branch as an upgrade for all users. I will be compiling now.
Stephan296 wrote:Thanks a lot for your perfect work!
I have only one question.
I want to build pvr plugin for tvheadend.
Can you help me with my question?
I tried to build with this repo and how-to:

https://github.com/hudokkow/pvr.hts

EDIT:

Compiling looks ok!
But when i select my pvr plugin i can enter the login data.
But when i activate my plugin he crashes about libs he cant find.

Thanks a lot!
First of all, you have to compile from the official branch for JARVIS specifically:
https://github.com/kodi-pvr/pvr.hts/tree/Jarvis

You could also try my PVR-Addons packages built for Jarvis on Jessie, they might work just fine on Xenial:

http://oph.mdrjr.net/odrobian/pool/main/k/

The "hts" package:
http://oph.mdrjr.net/odrobian/pool/main/k/kodi-pvr-hts/

I will consider compiling a full set specifically for the official ubuntu on our repository if people are interested.
mad_ady wrote:@XeoSal: Just for the record: It doesn't want to install on odrobian~crashoverride at the moment:

Do I need to add arm64 as a foreign architecture, or will you release a 32bit build for it?
Hey my friend, you will be able to install this directly after HardKernel push the Mali-Fbdev 32bit binaries, I will make sure to prepare this for you when that time comes. ;)

User avatar
XeoSal
Posts: 925
Joined: Sun Aug 30, 2015 11:21 pm
languages_spoken: English
ODROIDs: C1, C1+, C2 & XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Kodi 16.1 for Ubuntu/Debian (Hardware Accelerated)

Unread post by XeoSal » Tue Mar 15, 2016 5:59 am

I have just compiled and built a package with @OverSun's latest commit for 4K support!

Call for Testing
Well, make sure that you have followed everything from the first post on this thread before trying this, you should absolutely own an UHD TV/4K monitor to test.

Pull Testing Branch
If you want to help testing Kodi with support for 4K resolution you would have to put the (xenial/testing) branch on your apt-sources directory then update lists and Kodi:

Code: Select all

odroid64:$ sudo -s
odroid64:# cd /etc/apt/sources.list.d/
odroid64:# wget http://oph.mdrjr.net/odrobian/apt-sources/public/xenial-testing.list
Update Lists & Upgrade Kodi
This will basically upgrade Kodi package without bothering with the other ones.

Code: Select all

odroid64:# apt-get update && apt-get install kodi-odrobian-fbdev
If this proves to be functional I will push it as an upgrade to all users so don't bother doing this if you can't afford it please. You should now see 4K option in ( Settings > System > Video Output > Resolution > 4K ) so try this and let us know, don't forget to configure your boot.ini file to boot with 4K as well!

Hdlife
Posts: 15
Joined: Thu Mar 10, 2016 2:27 am
languages_spoken: english/French
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Kodi 16.1 for Ubuntu/Debian (Hardware Accelerated)

Unread post by Hdlife » Tue Mar 15, 2016 6:57 am

Hi,
I have a little issue, i succeed to install kodi, running kodi ! You make a good job !
During the use, and without reason, i have a black screen, and sound in blackground.
No actions possible. I need to restart manually my odroid.
Someone have already this issue?
Tomorrow i ll try investigate more.

And l found the vidéo quality, is low... All details in picture aren't rich, i tried the same movie on the usb's tv with the same usb key, and the issue doesnt exist
Any idea ?

Thanks a lot for your support

User avatar
XeoSal
Posts: 925
Joined: Sun Aug 30, 2015 11:21 pm
languages_spoken: English
ODROIDs: C1, C1+, C2 & XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Kodi 16.1 for Ubuntu/Debian (Hardware Accelerated)

Unread post by XeoSal » Tue Mar 15, 2016 11:59 am

Hdlife wrote:Hi,
And l found the vidéo quality, is low... All details in picture aren't rich, i tried the same movie on the usb's tv with the same usb key, and the issue doesnt exist
Any idea ?

Thanks a lot for your support
Hi,

You could possibly just missed something, as far as I know according to my own experience if you have VPU hardware acceleration the results shall be awesome. I am not sure what's the exact problem however, it depends on you.
Confirm VPU acceleration by pressing "O" on your keyboard while videos are playing, you should see something like "am-h265" for AMLogic codec. Also, when you go to (System Info > Video) you should have GPU acceleration with GLES 2.0 otherwise you won't get anything working correctly.

penguinist
Posts: 27
Joined: Mon Mar 14, 2016 12:05 pm
languages_spoken: english, german, spanish
ODROIDs: odroid-c2
Has thanked: 0
Been thanked: 0
Contact:

Re: Kodi 16.1 for Ubuntu/Debian (Hardware Accelerated)

Unread post by penguinist » Tue Mar 15, 2016 12:43 pm

@OverSun and XeoSal,

I've installed the updated kodi rc2 with 4k support and have these results to report while testing with a 2160p/30Hz monitor:

The kodi menu now offers "3840x2160p" as a resolution option. After selecting this option, kodi reports its resolution as 3840x2160@23.98, however kodi still occupies only one quarter of the screen, the upper left quadrant. As before, a default ubuntu X11 session on this system recognizes and uses the full 3840x2160 resolution.

After the run, we have this log:

http://pastebin.com/LM5747rU

Let me know if I can help with other tests.

User avatar
OverSun
Posts: 1491
Joined: Mon Apr 29, 2013 5:12 pm
languages_spoken: english
Has thanked: 0
Been thanked: 18 times
Contact:

Re: Kodi 16.1 for Ubuntu/Debian (Hardware Accelerated)

Unread post by OverSun » Tue Mar 15, 2016 4:16 pm

Your initial resolution on display is reported as 720p 23,9Hz, which is very strange. Then you try to change it to 4k 23,9Hz again, and 23,9Hz is barely supported on C2...
I'm afraid without real 4k device and hands on it, it would be really hard to debug what is going on.

Stephan296
Posts: 28
Joined: Tue Mar 15, 2016 4:32 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Kodi 16.1 for Ubuntu/Debian (Hardware Accelerated)

Unread post by Stephan296 » Tue Mar 15, 2016 10:45 pm

I cant install your pvr.hts addon, i get the error about arm64 and that kind of errors.
when i build my own add on i get the message about p8-platform

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 3 guests