video2smarttv

Send mp4 video URLs or YouTube videos to Samsung Smart TV. This is a no-frills implementation intended to be as lightweight and portable as possible.

MIT License

Stars
15

video2smarttv

Send mp4 video URLs or YouTube videos to Samsung Smart TV using UPnP, DLNA. This is a no-frills implementation intended to be as lightweight and portable as possible. Hence, it does not use any XML, SOAP, or UPnP libraries. It locates devices with SSDP and sends to any it can find. Might work with other UPnP Smart TVs too.

Prerequisites

Python 2.7, should come preinstalled with OS X and most Linux distributions. Optionally, youtube-dl.

Installation

Just download and make executable. This is just one Python file.

wget https://raw.githubusercontent.com/probonopd/video2smarttv/master/video2smarttv.py
chmod a+x ./video2smarttv.py
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl # Optional
sudo chmod a+rx /usr/local/bin/youtube-dl # Optional

Usage

Send a mp4 video file to the Smart TV for playing by specifying the IP address of the TV and the URL to be played:

./video2smarttv.py http://techslides.com/demos/sample-videos/small.mp4

If you have youtube-dl installed, you can also use YouTube IDs or search keywords instead:

./video2smarttv.py BaW_jenozKc
./video2smarttv.py some youtube search