multimedia

Install DVD decryption library script

<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/install.libdvdcss.sh";
echo "wget $URL -O - | bash -";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

Other method:
sudo apt-get install ubuntu-restricted-extras
sudo /usr/share/doc/libdvdread4/install-css.sh

Links
http://download.videolan.org/pub/libdvdcss/

Logitech QuckCam Webcam on OpenWrt

install
opkg install kmod-usb-core kmod-usb2 kmod-video-core kmod-video-gspca-core kmod-video-gspca-zc3xx motion

configure
sed -i 's|output_normal on|output_normal off|g' /etc/motion.conf
sed -i 's|webcam_localhost on|webcam_localhost off|g' /etc/motion.conf

start
motion

view
http://YOUR_OPENWRT_IP:8081

OPTINAL: anable acces from outside
iptables -A input_wan -p tcp --dport 8081 -j ACCEPT

links
http://eko.one.pl/index.php?p=openwrt-webcam

ATI / Medion X10 MD8800 remote controll

# disable ati_remote
echo "blacklist ati_remote" >> /etc/modprobe.d/blacklist

# update lircd config
wget http://lirc.sourceforge.net/remotes/atiusb/lircd.conf.atilibusb -O /usr/share/lirc/remotes/atiusb/lircd.conf.atilibusb

# reconfigure
sudo dpkg-reconfigure lirc
Remote control configuration: ATI/NVidia/X10 RF Remote (userspace)
IR transmitter, if present: None

# xbmc medion x10 double key can by fixed with ~/.xbmc/userdata/advancedsettings.xml

4

Download

KODI / XBMC / Boxee

Play file
http://192.168.2.3/jsonrpc?request={"jsonrpc":"2.0","id":"1","method":"Player.Open","params":{"item":{"file":"http://url.to.file.jpg"}}}
http://forum.kodi.tv/showthread.php?tid=157996

Google Music addon
http://forum.kodi.tv/showthread.php?tid=200640
https://github.com/vially/googlemusic-xbmc

Send YouTube to Kodi
(set "Video Quality" to "1080p (HD) on Kodi player under System > Settings > Add-ons > Video Add-ons > YouTube)
https://addons.mozilla.org/en-US/firefox/addon/send-to-xbmc/

API

Multimedia

YouTube download
https://yt-dl.org/update
https://github.com/ytdl-org/youtube-dl/releases
wget -q https://github.com/ytdl-org/youtube-dl/releases/download/2019.04.30/youtube-dl -O /tmp/youtube-dl
sudo cp /tmp/youtube-dl /usr/local/sbin/
sudo chmod a+x /usr/local/sbin/youtube-dl
# download audio (mp3) only
youtube-dl --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" https://www.youtube.com/watch?v=foo
# download whole channel
youtube-dl --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" -v https://www.youtube.com/user/OpenStackFoundation/videos