XBMC: Difference between revisions

1,479 bytes added ,  3 years ago
 
(7 intermediate revisions by the same user not shown)
Line 69:
|-
|Zoom In, Zoom Out || style="text-align:center;" | + plus, – minus || Picture View
|-
|Toggle Watched || style="text-align:center;" colspan="2" | W
|}
</center>
Line 193 ⟶ 195:
*Install Raspberry Pi Tools from CLI:
sudo apt update
sudo apt install pythonpython3-pip pythonpython3-dev gcc pythonpython3-setuptools wheel
pipsudo pip3 install rpi.gpiowheel
sudo pip3 install rpi.gpio
 
* Create shutdown script:
Line 200 ⟶ 203:
 
<syntaxhighlight lang="python">
#!/usr/bin/pythonpython3
import RPi.GPIO as GPIO
import time
Line 263 ⟶ 266:
* Reboot
<br>
 
== Netflix Addon ==
 
*Install Netflix Addon in Kodi:
https://troypoint.com/netflix-kodi/
 
*If you get Cryptodome.Random missing Error [https://github.com/CastagnaIT/plugin.video.netflix/issues/669]:
pip install pycryptodome
 
*If you get Incorrect Password error [https://github.com/CastagnaIT/plugin.video.netflix/wiki/Login-with-Authentication-key]:
pip3 install pycryptodomex
pip3 install websocket-client
 
Download the NFAuthenticationKey.py file:
https://www.dropbox.com/sh/ls3veptflvneub1/AABz9Tt3EqKUb90PQXNarNxga?dl=0
 
Run the script and follow the instructions:
python3 NFAuthenticationKey.py
 
SCP the file into Kodi's home dir and enter the PIN & Password.
 
= Patch for MPEG2 & VC1 Codecs =
Source: [https://www.reddit.com/r/raspberry_pi/comments/8sg0a6/patch_for_mpeg2_vc1_license_again_for_osmc/#bottom-comments reddit.com]
 
== Verify patching ==
 
*Convert Binary to Hex & grep the file contents:
xxd -u start_x.elf > /tmp/start_x.elf.hex
grep '47 *E9 *33 *36 *32 *48' /tmp/start_x.elf.hex
00b9db0: 47E9 4341 4C46 2118 47E9 3336 3248 1D18 G.CALF!.G.362H..
 
== Method 1 ==
 
*Backup files:
Line 285 ⟶ 312:
mv ~/start_x.elf /boot/start_x.elf
reboot
 
== Method 2 ==
 
*Create script:
nano patch_codec.sh
 
<syntaxhighlight lang="bash">
#!/bin/bash
function do_patch() {
if [ -f "/boot/${1}" ]; then
cp "/boot/${1}" "/boot/${1}_backup"
perl -pne 's/\x47\xE9362H\x'${2}'\x18/\x47\xE9362H\x'${2}'\x1F/g' < "/boot/${1}_backup" > "/boot/${1}"
echo "Patched /boot/${1}..."
fi
}
do_patch start.elf 3C
do_patch start_x.elf 1D
</syntaxhighlight>
 
*Execute it:
sudo chmod +x patch_codec.sh
sudo ./patch_codec.sh
sudo reboot
 
== Check Codecs ==
for codec in H264 MPG2 WVC1 MPG4 MJPG WMV9; do echo -e "$codec:\t$(vcgencmd codec_enabled $codec)"; done
<br>
 
 
 
 
{{DISQUS}}