YouTuPi lets you play local and YouTube videos in your Raspberry Pi using a (mobile) web interface. It provides a web UI for Omxplayer (the raspbian media player). It has three modules:
- Local file search and browse for available media in the filesystem
- Youtube support thanks to pafy
- Paste video URL from anywhere
-
Install dependencies:
sudo apt-get update sudo apt-get install -y libpcre3 fonts-freefont-ttf omxplayer python-pip python-magic python-dbus git sudo pip install web.py beautifulsoup4 youtube_dl betterprint
-
Clone repository:
YOUTUPI_HOME=/home/pi/youtupi git clone git://github.com/kktuax/youtupi.git $YOUTUPI_HOME cd $YOUTUPI_HOME cp youtupi.conf.example youtupi.conf git submodule init git submodule update
-
Register service:
sudo cp $YOUTUPI_HOME/service/youtupi /etc/init.d/ sudo update-rc.d youtupi defaults
Note: If you want to run youtupi under a different user than pi
or from a different directory, you'll need to modify /etc/init.d/youtupi
before starting it.
cd ~
curl https://raw.githubusercontent.com/kktuax/youtupi/master/service/install.sh -o youtupi-install.sh
cat youtupi-install.sh # well, you need to check whether this shell script from the net is clean.
chmod +x youtupi-install.sh
sudo ./youtupi-install.sh
Note: If you want to run youtupi under a different user than pi
or from a different directory than /home/pi/youtupi/
, you'll need to modify youtupi-install.sh
after downloading and /etc/init.d/youtupi
after installing.
-
Start youtupi
sudo /etc/init.d/youtupi start
-
Grab your Tablet/Phone/PC and go to: http://192.168.1.2:8080 (replace 192.168.1.2 with your Raspberry Pi address).
-
Enjoy!
-
Don't start the service (or stop it), then cd into
/home/pi/youtupi
and run it from the command line:sudo /etc/init.d/youtupi stop cd /home/pi/youtupi python youtupi.py
-
Grab your Tablet/Phone/PC and go to: http://192.168.1.2:8080 (replace 192.168.1.2 with your Raspberry Pi address).
This'll give you all the debug messages on the command line. Add more by adding print/pprint statements to the code.
You can customize the download folder and some other parameters in the JSON configuration file
nano ~/youtupi/youtupi.conf
{
"port": 8888,
"local-folders": [
"~/Media", "~/Downloads"
],
"download-folder": "~/Downloads"
}
Try updating, or installing again a newer version
sudo /etc/init.d/youtupi update
Still no luck? Raise an issue