NixOS on ARM/PINE64 ROCK64: Difference between revisions
imported>Mic92 |
imported>Mic92 No edit summary |
||
Line 119: | Line 119: | ||
{{note|The old vendor U-Boot 2017.09 did not leave enough room between the kernel and initrd, causing recent kernels to overwrite the beginning of the initrd. This can be fixed by increasing <code>ramdisk_addr_r</code> in the U-Boot console, or using upstream U-Boot. }} | {{note|The old vendor U-Boot 2017.09 did not leave enough room between the kernel and initrd, causing recent kernels to overwrite the beginning of the initrd. This can be fixed by increasing <code>ramdisk_addr_r</code> in the U-Boot console, or using upstream U-Boot. }} | ||
== Video decoding == | |||
MPV has support for the rockchip hardware decoder, it is used by default when playing a file. | |||
Without this decoder videos will likely stutter during playing. | |||
To use his for example in [https://kodi.tv/ kodi], add the following configuration in <code>.kodi/userdata/playercorefactory.xml</code> | |||
<syntaxHighlight lang=xml> | |||
<playercorefactory> | |||
<players> | |||
<player name="MPV" type="ExternalPlayer" audio="false" video="true"> | |||
<filename>mpv</filename> | |||
<args>--fs=yes "{1}"</args> | |||
<hidexbmc>true</hidexbmc> | |||
</player> | |||
</players> | |||
<rules action="prepend"> | |||
<rule video="true" player="MPV"/> | |||
</rules> | |||
</playercorefactory> | |||
</syntaxHighlight> | |||
When using kodi it is also recommend to use kodi-wayland rather than the x11 variant to reduce the CPU usage. Mic92 has an [https://github.com/Mic92/dotfiles/blob/d457b53a1c032b84147113b8cd1be1383facd68e/nixos/rock/modules/kodi.nix#L22 example configuration]. | |||
== Resources == | == Resources == | ||
* [https://www.pine64.org/devices/single-board-computers/rock64/ Official product page] | * [https://www.pine64.org/devices/single-board-computers/rock64/ Official product page] |