Kodi 16.1 for Ubuntu/Debian (Hardware Accelerated)

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

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

Post by soadzoor »

After playing a movie for about 20 minutes, the subtitle has gone, and I didnt have a mouse, nor a GUI anymore. The movie was still playing flawlessly. I rebooted and continued the movie with subtitles, and about 20 minutes, this happened once again. Anybody having similar problems? :o

crispycritter911
Posts: 5
Joined: Wed Mar 16, 2016 1:38 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

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

Post by crispycritter911 »

I know this is silly question to ask... Have you tried using the "Video Calibration" setting to adjust the Kodi interface? I too noticed the same thing that Kodi was only using the upper left corner of the screen... Once I had adjusted the settings, everything was fine...

penguinist
Posts: 33
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)

Post by penguinist »

@OverSun Would it help if I gave you ssh access to a c2 attached to a 4K monitor?

PaRaPii
Posts: 2
Joined: Tue Mar 15, 2016 6:36 pm
languages_spoken: german, english
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

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

Post by PaRaPii »

Hdlife wrote: 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.
Same problem here. The odroid-c2 is connected to my denon avr and after some minutes I have a black screen, keyboard still working but no picture.

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

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

Post by OverSun »

penguinist wrote:@OverSun Would it help if I gave you ssh access to a c2 attached to a 4K monitor?
There are some efforts going on around 4k device for me to reach, so just wait a little, there will be news.
The ssh access would be some kind of useful, thanks for the proposition, but very inconvenient to play with things. Very... So let's keep this option for the last resort, if I wouldn't be able for some reason to get 4k device.

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)

Post by XeoSal »

soadzoor wrote:After playing a movie for about 20 minutes, the subtitle has gone, and I didnt have a mouse, nor a GUI anymore. The movie was still playing flawlessly. I rebooted and continued the movie with subtitles, and about 20 minutes, this happened once again. Anybody having similar problems? :o
Hdlife wrote: 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.
PaRaPii wrote: Same problem here. The odroid-c2 is connected to my denon avr and after some minutes I have a black screen, keyboard still working but no picture.
Fix for 20 Minutes (Subtitles Disappear, Mouse Disconnection, ETC)
You just need to set a boot argument for console inside the "/media/boot/boot.ini" file:

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!
Have fun guys!

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

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

Post by soadzoor »

Thanks! Can you please explain what actually happened, and how does this solve the issue? :)

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)

Post by XeoSal »

soadzoor wrote:Thanks! Can you please explain what actually happened, and how does this solve the issue? :)
The kernel is pushing the device to standby mode with a black screen after 20 minutes of silence (no mouse/keyboard activity) like a screen saver when you are staying in CONSOLE which is related to FrameBuffer, this happens when you are using ODROID without an X desktop session.

By disabling console blanking, it will stop putting device in this situation, which affects GUI applications running under Mali-Fbdev and kill them, Kodi for framebuffer isn't sending a signal to the kernel/screen about itself being alive and shouldn't be considered as a process with non-activity.

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)

Post by Stephan296 »

@xeosal Can you help me Build a pvr.hts addon.
I get the error about p8-platform.

Verstuurd vanaf mijn SM-G920F met Tapatalk

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)

Post by XeoSal »

Stephan296 wrote:@xeosal Can you help me Build a pvr.hts addon.
I get the error about p8-platform.

Verstuurd vanaf mijn SM-G920F met Tapatalk
I have prepared some Kodi PVR addons packages for arm64 built on Ubuntu Xenial.

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 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
If you only want the "pvr.hts" addon in particular, you can do:

Code: Select all

odroid64:# apt-get update && apt-get install kodi-pvr-hts-odrobian
If you want full set then 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.

Building Kodi PVR Addons on arm64 is a little more challenging at the moment.

jammy
Posts: 1
Joined: Fri Mar 18, 2016 1:13 am
languages_spoken: english
ODROIDs: c2
Has thanked: 0
Been thanked: 0
Contact:

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

Post by jammy »

Hello

is there a way to autostart kodi, as at the moment, have to log into ubuntu and then start kodi manually

Many thanks

PaRaPii
Posts: 2
Joined: Tue Mar 15, 2016 6:36 pm
languages_spoken: german, english
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

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

Post by PaRaPii »

Would it be possible to get DTS or Dolby output? Or I'm silly and didn't get the settings? xD

Napo
Posts: 1
Joined: Fri Mar 18, 2016 4:40 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

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

Post by Napo »

Penguinist.
The resolution should be ok if you see kodi in the up left corner our your TV.
You probably only need to adjust your kodi display settings

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)

Post by XeoSal »

Napo wrote:Penguinist.
The resolution should be ok if you see kodi in the up left corner our your TV.
You probably only need to adjust your kodi display settings
Does that mean you could get 4K resolution to work in Kodi?

penguinist
Posts: 33
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)

Post by penguinist »

@Napo: Actually, I've set the display settings in kodi to 2160p, but kodi does not honor those settings and it comes up displaying 1920x1080 pixels landing in the upper left corner of the 4k screen.

If you have found a workaround for this I'd be interested.

By the way, booting the odroid into a default X11 ubuntu session does give a full size unaccelerated 2160p display, so we know that the boot.ini settings are at least being accepted for 4k operation in the X11 environment.

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)

Post by Stephan296 »

I get an api error for the tvheadend pvr add on.
It must be 4.1.0 and it is 1.9.6

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)

Post by XeoSal »

Stephan296 wrote:I get an api error for the tvheadend pvr add on.
It must be 4.1.0 and it is 1.9.6
I will update my PVR Addons build from mainline Kodi git when I get the time, stay tuned!

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)

Post by Stephan296 »

Perfect i will wait!!
Thanks a lot for your time and work!!

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

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

Post by OverSun »

For those using pure ALSA output without pulseaudio (like me), the fix for no sound in kodi would be having this file in /etc:
asound.conf

Code: Select all

pcm.!default {
        type plug
        slave {
		pcm "hw:0,0"
                format S32_LE
        }
}
This will lock the output to 32-bit.
As I already explained the kernel advertise support of 16-bit, 24-bit and 32-bit output, but the 24-bit output it advertises is "24-bit in 32-bit", meaning there is a 24-bit payload in 32-bit packets. For some reason there is some misunderstanding happening, I didn't find where exactly, because everything looks fine on the code level and in constants, the ALSA pushes 24-bit packets when selecting 24-bit output. And this leads to silence. The kodi in it's place insanely loves 24-bit when it's available. It tries to play everything in 24-bit, resulting awkward silence.

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)

Post by XeoSal »

Cool, I prefer alsa as well, the GUI sound latency will disappear completely with that, I will add that to first post. Thanks for explanation buddy. :D

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

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

Post by OverSun »

You asked for it, I deliver it for you.
Got my hands on 4k device yesterday finally. Indeed that would be almost impossible to do without it, since I had to write something new for this to work, not only play around with variables.
Changes are in my git, all works the same way as "big bosses" does - the interface is scaled up from 1080p to full screen 4k for smooth experience and is not drawn in 4k, it doesn't make sense anyway, assets are 1080p. But the video is not transformed in any way, the 4k will be 4k.
Please build a package out of it, and maybe test a little on normal modes, didn't I brake anything in them? I played couple of videos in 1080p, for me seems fine.

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)

Post by XeoSal »

Great news @OverSun!!

Of course, I will be building immediately! Should I upload it on testing branch or directly to the main repository?

P.S. Never mind I will be uploading on testing branch first! :D

I think it's a million times better to scale the interface from 1080p up-to 4K than running it natively, while the video is still decoded and shown in 4K by the VPU, meaning very low CPU usage and incredible experience! :mrgreen:

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)

Post by XeoSal »

Kodi with 4K support by @OverSun is now available on the testing branch while it will be moved to the main branch for everybody just after confirmations. I can confirm that this package doesn't break 1080p for me on my monitor!

If you have testing branch already you can update Kodi with:

Code: Select all

odroid64:# apt-get update && apt-get install kodi-odrobian-fbdev

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)

Post by Stephan296 »

Great work guys!
Time to buy a tv with 4k ;-)

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)

Post by Stephan296 »

When i press exit in kodi i will get a Black screen and i cant do anything anymore. Also ssh is not possible anymore

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)

Post by XeoSal »

Stephan296 wrote:When i press exit in kodi i will get a Black screen and i cant do anything anymore. Also ssh is not possible anymore
The workaround to escape black screen after exit is pressing ( Ctrl + Alt + F2 ) followed by ( Ctrl + Alt + F7 ). Btw, which package are you using, the one available on main or testing branch?

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)

Post by Stephan296 »

I use the package on the main branch.
I dont have 4K :-(

I thought i try also android with kodi and tvheadend but that's not good solution :-)
So i go back to ubuntu and your kodi, i have to wait to a new hts pvr addon with the right api version.

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

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

Post by OverSun »

A small teaser:

Code: Select all

20:37:20 T:546128457680    INFO: CAEStreamInfo::SyncAC3 - AC3 stream detected (6 channels, 48000Hz)
20:37:20 T:546128457680  NOTICE: Creating audio stream (codec id: 86019, channels: 2, sample rate: 48000, pass-through)
20:37:20 T:546128457680   DEBUG: CDVDPlayerAudio:: synctype set to 0: clock feedback
20:37:20 T:546128457680  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
20:37:20 T:547389050832    INFO: CActiveAESink::OpenSink - initialize sink
20:37:20 T:547389050832   DEBUG: CActiveAESink::OpenSink - trying to open device ALSA:default
20:37:20 T:547389050832   DEBUG: AML: Setting passthrough 1
20:37:20 T:547389050832    INFO: CAESinkALSA::Initialize - Attempting to open device "default"
20:37:20 T:547389050832    INFO: CAESinkALSA - Unable to open device "default:AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x02" for playback
20:37:20 T:547389050832    INFO: CAESinkALSA::Initialize - Opened device "default"
20:37:20 T:547389050832   DEBUG: CAESinkALSA::InitializeHW - Request: periodSize 2400, bufferSize 9600
20:37:20 T:547389050832   DEBUG: CAESinkALSA::InitializeHW - Got: periodSize 128, bufferSize 9600
20:37:20 T:547389050832   DEBUG: Audio Driver reports too low periodSize 128 - will use 2 fragments
20:37:20 T:547389050832   DEBUG: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
20:37:20 T:547389050832   DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 2 Output Channel Count: 2
20:37:20 T:547389050832   DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: RAW,RAW
20:37:20 T:547389050832   DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: RAW,RAW (ALSA: none)
20:37:20 T:547389050832   DEBUG: CActiveAESink::OpenSink - ALSA Initialized:
20:37:20 T:547389050832   DEBUG:   Output Device : Default (ODROID-HDMI HDMI)
20:37:20 T:547389050832   DEBUG:   Sample Rate   : 48000
20:37:20 T:547389050832   DEBUG:   Sample Format : AE_FMT_S16NE
20:37:20 T:547389050832   DEBUG:   Channel Count : 2
20:37:20 T:547389050832   DEBUG:   Channel Layout: RAW,RAW
20:37:20 T:547389050832   DEBUG:   Frames        : 256
20:37:20 T:547389050832   DEBUG:   Frame Samples : 512
20:37:20 T:547389050832   DEBUG:   Frame Size    : 4
But it doesn't work. =( My stereo speakers connected by coax to TV that can receive AC3 passthrough produce high pitch clicks for a brief moment and the log then cyclically say that write to pcm has failed... I'll look into it for some time, but no promises.

lepniak
Posts: 21
Joined: Sat Mar 19, 2016 6:26 pm
languages_spoken: english
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

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

Post by lepniak »

Can anyone help me with install kodi-pvr-addons-odrobian ?

Code: Select all

root@odroid:~# apt-get install kodi-pvr-addons-odrobian
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-pvr-addons-odrobian:arm64 : Depends: libtinyxml2.6.2v5:arm64 but it is not installable
                                  Depends: libjsoncpp1:arm64 but it is not installable
                                  Depends: libplatform1:arm64 but it is not installable
                                  Depends: libkodiplatform16:arm64 (>= 16.0.0) but it is not installable
                                  Depends: kodi-pvr-argustv-odrobian:arm64 but it is not going to be installed
                                  Depends: kodi-pvr-dvbviewer-odrobian:arm64 but it is not going to be installed
                                  Depends: kodi-pvr-hts-odrobian:arm64 but it is not going to be installed
                                  Depends: kodi-pvr-iptvsimple-odrobian:arm64 but it is not going to be installed
                                  Depends: kodi-pvr-mediaportal-tvserver-odrobian:arm64 but it is not going to be installed
                                  Depends: kodi-pvr-mythtv-odrobian:arm64 but it is not going to be installed
                                  Depends: kodi-pvr-nextpvr-odrobian:arm64 but it is not going to be installed
                                  Depends: kodi-pvr-njoy-odrobian:arm64 but it is not going to be installed
                                  Depends: kodi-pvr-vdr-vnsi-odrobian:arm64 but it is not going to be installed
                                  Depends: kodi-pvr-vuplus-odrobian:arm64 but it is not going to be installed
                                  Depends: kodi-pvr-wmc-odrobian:arm64 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I install successfully kodi-odrobian-fbdev and fix with blank screen but it's continue to experience this error...

penguinist
Posts: 33
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)

Post by penguinist »

@Oversun and XeoSal

Nice work! I've checked out the 4K kodi update and have this to report:

1. The kodi system reports running at 3840x2160@23.98Hz Full Screen, but the kodi menus only occupy the upper left corner of the screen.

2. When playing a 4K video, we go full screen with beautiful 4K quality. This is quite impressive!

I'm now downloading the Blender group's open source demo "Tears of Steel" (16GB) in fast action 4K. After that download is complete (3 more hours), I'll be able to check how we look with a high performance video where every frame counts. I'll drop the results in here.

Looking good guys!

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

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

Post by OverSun »

Are you sure you installed the latest one, from the testing repo?
Also 4k 23.98 is unsupported resolution, it doesn't exists. What is your boot.ini hdmimode= line? Try hdmimode=2160p60hz

penguinist
Posts: 33
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)

Post by penguinist »

Are you sure you installed the latest one, from the testing repo?
odroid@odroid64:~$ sudo apt-get install --upgrade kodi-odrobian-fbdev
kodi-odrobian-fbdev is already the newest version (16.1rc2-3~xenial).
Also 4k 23.98 is unsupported resolution, it doesn't exists. What is your boot.ini hdmimode= line?
setenv m "2160p30hz"

Even though our boot.ini is set to "2160p30hz", kodi reports its status as 3840x2160@23.98Hz.
Try hdmimode=2160p60hz
I'll try that and report back, but bear in mind that my monitor is a 30Hz monitor and does not support 60Hz.

By the way, after downloading the full 16GB "Tears of Steel" demo ToS_4k_DCP.zip and presenting it to kodi, it appears that kodi is not supporting the Digital Cinema Package 4K format. So far I've seen kodi play an .mp4 file in 4K and I'm about to download "Tears of Steel" in .mov format (only 6GB) to try that out.

penguinist
Posts: 33
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)

Post by penguinist »

I experimented with "2160p60hz" but as I expected that pushed a signal that my monitor flagged as "Not Supported".

So, after ssh'ing back in and rebooting back into a video mode of "2160p30hz", now we have the relevant log files that show the video status of the system:

dmesg:
http://pastebin.com/ZnkctT9S

dmesg verifies that the kernel is booted with parameters: hdmimode=2160p30hz m_bpp=24

Code: Select all

cat /sys/class/amhdmitx/amhdmitx0/disp_cap:

480i60hz
480p60hz
576i50hz
576p50hz
720p60hz
1080i60hz
1080p60hz*
720p50hz
1080i50hz
1080p50hz
1080p24hz
2160p30hz
2160p25hz
2160p24hz
The kodi log:
http://pastebin.com/quQfjj40

There are some interesting lines in that log. It appears that kodi is running through a list of frequencies but misses 30Hz, then it sets the frequency to 23.976Hz.

Code: Select all

00:39:58 T:548379963392  NOTICE: Found resolution 1920 x 1080 for display 0 with 3840 x 2160 @ 23.976000 Hz
00:39:58 T:548379963392  NOTICE: Found resolution 1920 x 1080 for display 0 with 3840 x 2160 @ 24.000000 Hz
00:39:58 T:548379963392  NOTICE: Found resolution 1920 x 1080 for display 0 with 3840 x 2160 @ 50.000000 Hz
00:39:58 T:548379963392  NOTICE: Found resolution 1920 x 1080 for display 0 with 3840 x 2160 @ 59.939999 Hz
00:39:58 T:548379963392  NOTICE: Found resolution 1920 x 1080 for display 0 with 3840 x 2160 @ 60.000000 Hz
00:39:58 T:548379963392  NOTICE: Checking resolution 35
00:39:58 T:548379963392  NOTICE: CEGLNativeTypeAmlogic::SetNativeResolution to 3840x2160@23.976000
00:39:58 T:548379963392  NOTICE: CEGLNativeTypeAmlogic::SetDisplayResolution to 2160p23hz

Bahn Yuki
Posts: 27
Joined: Sun Mar 20, 2016 7:18 am
languages_spoken: english spanish
ODROIDs: C2
Location: Salem OR
Has thanked: 0
Been thanked: 0
Contact:

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

Post by Bahn Yuki »

So I got CVBS working on Ubuntu, but am having issues trying to get KODI to run in 480i resolution. Anyone have any ideas as 1280 x 720 seems like the lowest it can go.

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

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

Post by OverSun »

You seem to be right about 4k30hz, I just forgot to put it in the list. Still, this shouldn't affect the scaling, interface scaling is done independent of resolution set. If any resolution is found the scaling is attempted.
Can you tell me:
1. Are you running kodi under other than root user?
2. If yes, does the user has permission to /sys/class/graphics/fb0/scale and /sys/class/graphics/fb0/scale_axis ?
If no, can you run the kodi with --debug parameter and paste the whole log after it starts?

PS. I pushed the forgotten 30hz change.

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)

Post by XeoSal »

OverSun wrote:You seem to be right about 4k30hz, I just forgot to put it in the list. Still, this shouldn't affect the scaling, interface scaling is done independent of resolution set. If any resolution is found the scaling is attempted.
Can you tell me:
1. Are you running kodi under other than root user?
2. If yes, does the user has permission to /sys/class/graphics/fb0/scale and /sys/class/graphics/fb0/scale_axis ?
If no, can you run the kodi with --debug parameter and paste the whole log after it starts?

PS. I pushed the forgotten 30hz change.
Package update is needed? I will be building right now.. ;)

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)

Post by Stephan296 »

Could you Build also de tvheadend pvr add on update please? ;-)

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)

Post by XeoSal »

Kodi with 4K (30Hz/60Hz) support by @OverSun is now available on the testing branch while it will be moved to the main branch for everybody just after confirmations. Again, I can confirm that this package doesn't break 1080p for me on my monitor!

If you have testing branch already you can update Kodi with:

Code: Select all

odroid64:# apt-get update && apt-get install kodi-odrobian-fbdev
For those of you curious about configurations during compiling:

Code: Select all

------------------------
  Kodi Configuration:
------------------------
  Kodi Version:	16.1-RC2
  git Rev.:	20160320-321dc15
  Debugging:	No
  Profiling:	No
  Optimization:	Yes
  SWIG Available:	Yes
  JRE Available:	Yes
  Doxygen Available:	No
  Crosscomp.:	No
  target ARCH:	aarch64
  target CPU:	
  OpenGLES:	Yes
  ALSA:		Yes
  DBUS:		Yes
  VDPAU:	No
  VAAPI:	No
  VTBDecoder:	No
  OpenMax:	No
  Joystick:	No
  Touch skin:	No
  X11:		No
  Wayland:	No
  Bluray:	Yes
  TexturePacker:No
  MID Support:	No
  ccache:	Yes
  ALSA Support:	Yes
  PulseAudio:	Yes
  DVDCSS:	Yes
  Google Test Framework Configured:	Yes
  Google Breakpad Configured:	No
  Avahi:	Yes
  mDNSEmbedded:	No
  Non-free:	Yes
  ASAP Codec:	No
  MySQL:	Yes
  Webserver:	Yes
  libssh support:	Yes
  libRTMP support:	Yes
  libsmbclient support:	Yes
  libnfs client support:Yes
  libgif support:	No
  AirPlay support:	Yes
  AirTunes support (libshairplay):	Yes
  UPnP support:		Yes
  Optical drive:	Yes
  libudev support:	Yes
  libusb support:	No
  libcec support:	Yes
  libcap support:	Yes
  additional players:	No
  additional codecs:	Yes, amcodec
  Odroid Hybris support:	No
  prefix:	/usr/local
------------------------
Stephan296 wrote:Could you Build also de tvheadend pvr add on update please? ;-)
The mainline code of hts.PVR is causing trouble to get compiled on ARM64 running UBuntu Xenial, I need to fix some code before it will be available.

penguinist
Posts: 33
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)

Post by penguinist »

1. Are you running kodi under other than root user?
All my test runs have been using the default odroid user.
2. If yes, does the user has permission to /sys/class/graphics/fb0/scale and /sys/class/graphics/fb0/scale_axis ?

Code: Select all

-rw-rw-r-- 1 root root 4096 Mar 20 09:42 scale
-rw-r--r-- 1 root root 4096 Mar 20 09:27 scale_axis
-rw-rw-r-- 1 root root 4096 Mar 20 09:42 scale_height
-rw-rw-r-- 1 root root 4096 Mar 20 09:42 scale_width
If no, can you run the kodi with --debug parameter and paste the whole log after it starts?
kodi.log with --debug:
http://paste.ubuntu.com/15436868/

Some interesting lines from kodi.log:

Code: Select all

09:27:13 T:548311650304  NOTICE: Found resolution 1920 x 1080 for display 0 with 3840 x 2160 @ 30.000000 Hz
...
09:27:13 T:548311650304  NOTICE: Found (1920x1080@30.000000) at 39, setting to RES_DESKTOP at 16
09:27:13 T:548311650304  NOTICE: Checking resolution 35
09:27:13 T:548311650304  NOTICE: CEGLNativeTypeAmlogic::SetNativeResolution to 3840x2160@23.976000
09:27:13 T:548311650304  NOTICE: CEGLNativeTypeAmlogic::SetDisplayResolution to 2160p23hz
09:27:13 T:548311650304   DEBUG: CEGLNativeTypeAmlogic::DealWithScale Interface is 1920x1080, screen size is 3840x2160
09:27:13 T:548311650304   DEBUG: CEGLNativeTypeAmlogic::DealWithScale Scaling interfaces of size 1920x1080 to full screen
So we now probe for 4k@30Hz but still set resolution to 3840x2160@23.976000

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)

Post by XeoSal »

I guess that @OverSun can't afford a TV for each resolution/refresh rate, can he? XD

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

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

Post by OverSun »

everything is working fine, except the file scale_axis, which is crucial for setting is only root write able. give it and "scale" 666, just for sure, and try again.

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)

Post by XeoSal »

@penguinist please add this line to the (/etc/rc.local) file before the "exit 0" and reboot your device then try.

Code: Select all

chmod 666 /sys/class/graphics/fb0/scale and /sys/class/graphics/fb0/scale_axis
I will include that to the main post if it's working.

penguinist
Posts: 33
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)

Post by penguinist »

There seems to be something running after /etc/rc.local that is forcing restricted user permissions on those files. Adding chmod 666 lines to rc.local does not "stick".

Manually setting

Code: Select all

# chmod 666 /sys/class/graphics/fb0/scale*
and then running kodi, fixes the problem. The kodi menus are now full screen.

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)

Post by XeoSal »

penguinist wrote:There seems to be something running after /etc/rc.local that is forcing restricted user permissions on those files. Adding chmod 666 lines to rc.local does not "stick".

Manually setting

Code: Select all

# chmod 666 /sys/class/graphics/fb0/scale*
and then running kodi, fixes the problem. The kodi menus are now full screen.
It seems that @OverSun has done it! I will move it to the main repository today.. I will also find an automatic fix for setting permissions to support 4K. :)

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

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

Post by soadzoor »

Sometimes I notice a little bit of stuttering during movieplayback. If I pause the movie for a while, or seek in the timeline and then continue watching, the movie seems perfectly smooth. If I pause the playback again, sometimes it starts stuttering again.. Really strange. Anyone else notices this? :shock: Under android, it never stutters even a lil bit.

penguinist
Posts: 33
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)

Post by penguinist »

Sometimes I notice a little bit of stuttering during movieplayback.
This kodi/odroid-c2 is getting pretty close to being ready for primetime, and considering the fact that this is a $40 ARM board, the present performance is honestly quite impressive.

That said, I'm also of the opinion that we should spend a little more time to try to make the solution "perfect". I've also noticed some jitter in 4K playback. Specifically, my 6GB "Tears of Steel" test file accumulates 800 skips in the first 6 minutes (0 drops) and has noticeable jitter. This could be attributed to a number of things, one of which would be the bandwidth of the storage device (sdcard) that I'm using to hold the file. To better investigate this theory I put the test file on a fast usb external hard drive (if external usb drives can be called fast is probably debatable) and running the same test we now accumulate 870 skips in the first 6 minutes with about the same noticeable jitter. Neither test is definitive. Using hdparm to test the read performance of the storage we have 30.90 MB/s on the sdcard and 31.92 MB/s on the external drive, both of which should be adequate for our purposes. Nevertheless, I have an emmc card coming in and that should settle the issue on the storage bandwidth theory, but that may be several days before I have that in my hand.

There may be other causes of the jitter. Kodi claims that it set my monitor to 23.976 Hz, but my monitor disagrees and claims that it is receiving a 30 Hz signal. I'm not sure which is correct. The test .mov file, according to Kodi, was recorded with a frame rate of 24 fps and an average bandwidth of 73.244 Mb/s. Both the sdcard test and the usb drive test showed realtime transfer rates between 38 and 80 Mb/s depending on the activity of the scene. Another theory is that there is a mismatch of frame rates between test file and kodi. Note that kodi is configured to set display rate equal to frame rate. Yet another theory is that Kodi is sensitive to kernel jitter or kernel latecy.

If any of the Kodi experts on this forum can suggest some other tests or configurations I could try to better get a handle on this, I'd be happy to hear suggestions.

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)

Post by XeoSal »

@penguinist I think your mistaking regrading the inability to set permission automatically for (/sys/class/graphics/fb0/scale*) because I was able to set them with these lines before "exit 0" on rc.local:

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/class/ppmgr/ppmgr_3d_mode
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
Today, I will make the bragging official and move that package to the main branch, I will add this update to main post, we are the first group to get 4K working on Kodi running Linux AARCH64 on an ARM SIngle Board computer, aren't we? Thanks to @OverSun of course..

penguinist
Posts: 33
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)

Post by penguinist »

@XeoSal I spent some time looking at the rc.local in more detail and found the problem. I'm getting:

Code: Select all

 chmod: cannot access '/sys/class/ppmgr/ppmgr_3d_mode': No such file or directory
so the script errored off and never reached the rest of the chmod's.

Removing the ppmgr_3d_mode line results in correct execution on my system. I'm not sure where the ppmgr_3d_mode file comes from, but if it is from an optional package not contained in the default image then maybe it would be best to bracket its chmod with a test of file existence.

MeNext
Posts: 11
Joined: Mon Mar 21, 2016 2:43 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

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

Post by MeNext »

lepniak wrote:Can anyone help me with install kodi-pvr-addons-odrobian ?

Code: Select all

root@odroid:~# apt-get install kodi-pvr-addons-odrobian
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-pvr-addons-odrobian:arm64 : Depends: libtinyxml2.6.2v5:arm64 but it is not installable
                                  Depends: libjsoncpp1:arm64 but it is not installable
                                  Depends: libplatform1:arm64 but it is not installable
                                  Depends: libkodiplatform16:arm64 (>= 16.0.0) but it is not installable
                                  Depends: kodi-pvr-argustv-odrobian:arm64 but it is not going to be installed
                                  Depends: kodi-pvr-dvbviewer-odrobian:arm64 but it is not going to be installed
                                  Depends: kodi-pvr-hts-odrobian:arm64 but it is not going to be installed
                                  Depends: kodi-pvr-iptvsimple-odrobian:arm64 but it is not going to be installed
                                  Depends: kodi-pvr-mediaportal-tvserver-odrobian:arm64 but it is not going to be installed
                                  Depends: kodi-pvr-mythtv-odrobian:arm64 but it is not going to be installed
                                  Depends: kodi-pvr-nextpvr-odrobian:arm64 but it is not going to be installed
                                  Depends: kodi-pvr-njoy-odrobian:arm64 but it is not going to be installed
                                  Depends: kodi-pvr-vdr-vnsi-odrobian:arm64 but it is not going to be installed
                                  Depends: kodi-pvr-vuplus-odrobian:arm64 but it is not going to be installed
                                  Depends: kodi-pvr-wmc-odrobian:arm64 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I install successfully kodi-odrobian-fbdev and fix with blank screen but it's continue to experience this error...
Anyone else experiencing this problem?

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)

Post by XeoSal »

MeNext wrote: Anyone else experiencing this problem?
Two questions, what distribution are you using?

What's the result of this command:

Code: Select all

odroid64:$ ls /etc/apt/sources.list.d

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 2 guests