doc:appunti:hardware:raspberrypi_micromediahub
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
doc:appunti:hardware:raspberrypi_micromediahub [2017/12/24 07:12] – [Starting Kodi at Boot] niccolo | doc:appunti:hardware:raspberrypi_micromediahub [2019/11/03 17:32] – [Kodi] niccolo | ||
---|---|---|---|
Line 20: | Line 20: | ||
Kodi will not start automatically at boot, just execute **kodi-standalone** from the command line. | Kodi will not start automatically at boot, just execute **kodi-standalone** from the command line. | ||
- | **NOTICE**: Raspbian | + | **NOTICE**: Raspbian |
+ | * **[[http:// | ||
+ | * **[[http:// | ||
+ | |||
+ | The first repository provides **Kodi 17.1** as per Debian Stretch. The second repository provided **Kodi version 17.6** on December 2017, but it was upgraded to **Kodi version 18** on february 2019. So beware of what packages you are installing, respect the right dependencies and be carefull with upgrades. | ||
+ | |||
+ | Our current installation uses these versions: | ||
+ | |||
+ | ^ kodi | 2: | ||
+ | ^ kodi-bin | ||
+ | ^ kodi-eventclients-common | ||
+ | ^ kodi-eventclients-kodi-send | ||
+ | ^ kodi-peripheral-joystick | ||
+ | ^ libkodiplatform17: | ||
+ | |||
+ | To activate a joypad you have to go through **// | ||
===== Starting Kodi at Boot ===== | ===== Starting Kodi at Boot ===== | ||
Line 32: | Line 47: | ||
* Can perform **reboot** and **poweroff** from Kodi menu. | * Can perform **reboot** and **poweroff** from Kodi menu. | ||
- | So we want to execute **kodi-standalone** as **kodi** user, create | + | So we want to execute **kodi-standalone** as **kodi** user. Create |
< | < | ||
Line 75: | Line 90: | ||
</ | </ | ||
- | Now we have to solve a problem: the unprivileged Kodi user cannot perform reboot and poweroff actions: as you can se the exit menu of Kodi show only the **Exit** item. We need two piece of software: **policykit-1** and **consolekit**. The first package contains the framework which handles the authorizations, | + | Now we have to solve a problem: the unprivileged Kodi user cannot perform reboot and poweroff actions: as you can se the exit menu of Kodi shows only the **Exit** item. We need a piece of software: **policykit-1**. |
< | < | ||
- | apt-get install policykit-1 | + | apt-get install policykit-1 |
</ | </ | ||
- | Finally we create two files. The first one **/ | + | We created the file **/ |
< | < | ||
[Actions for kodi user] | [Actions for kodi user] | ||
Identity=unix-group: | Identity=unix-group: | ||
- | Action=Action=org.freedesktop.upower.*; | + | Action=org.freedesktop.upower.*; |
ResultActive=yes | ResultActive=yes | ||
ResultAny=yes | ResultAny=yes | ||
Line 92: | Line 107: | ||
</ | </ | ||
- | The second one **/ | + | ===== Problem Decoding Webm (VP8 Encoded) Videos ===== |
- | < | + | We got a severe problem trying to play some **.webm** video files: the audio starts but it freeze shortly, the video does not start at all. After that, all the Kodi interface was frozen and we need to reboot (ssh access still working). Into kodi.log we get the following error: |
- | [Allow consolekit] | + | |
- | Identity=unix-group:plugdev | + | |
- | Action=org.freedesktop.consolekit* | + | |
- | ResultAny=yes | + | |
- | ResultInactive=no | + | |
- | ResultActive=yes | + | |
- | [Allow login1] | + | < |
- | Identity=unix-group:plugdev | + | CMMALVideo::Open Failed to commit format for decoder |
- | Action=org.freedesktop.login1* | + | input port vc.ril.video_decode: |
- | ResultAny=yes | + | </ |
- | ResultInactive=no | + | |
- | ResultActive=yes | + | |
- | [Allow Upower] | + | To confirm that the video codec is VP8, we installed the **mediainfo** package an run the tool against the video; which actually uses the VP8 codec. The official **[[http:// |
- | Identity=unix-group:plugdev | + | |
- | Action=org.freedesktop.upower* | + | **[[https:// |
- | ResultAny=yes | + | |
- | ResultInactive=no | + | < |
- | ResultActive=yes | + | start_x=1 |
</ | </ | ||
- | Missing | + | See also the page **[[https://www.raspberrypi.org/documentation/configuration/ |
+ | ===== Starting Kodi only if USB hard disk is present ===== | ||
+ | |||
+ | We keep all our media files (video, images, etc.) into an **USB hard disk**, connected through a powered USB hub. It can be possible that **the Raspberry Pi will be started without | ||
==== Web References ==== | ==== Web References ==== |
doc/appunti/hardware/raspberrypi_micromediahub.txt · Last modified: 2020/09/28 18:45 by niccolo