JustinHop / c8tsender

c8tsender is a Google Chromecast sender server with a built-in REST API and responsive playlist interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

c8t sender is a Google Chromecast sender server with a built-in REST API and responsive playlist interface. Sound and video remuxing (encoding) is done with ffmpeg.

Requirements

Installation

c8tsender requires ffmpeg in the $PATH or $PWD (in the same directory) in order to remux files to mkv, and convert the sound to aac), the flags to ffmpeg are not in away way optimized for you, but they worked for me.

Bonus: Install shell extension in OSX

In Automator create a new Service.

  1. Service receives selected files or folders in Finder.
  2. Add a new Run Shell Script action, use Shell /usr/bin/python, Pass input as arguments.
  3. Paste the content below, but correct the path for your c8tfile.py.
#!/usr/bin/env python

queue_only = False # or True
execfile("/Users/erik/c8tsender/c8tfile.py")
  1. Save with a useful name, such as 'Play on Chromecast' or 'Queue on Chromecast'

In Finder a new context menu option is available, select a file or folder and play on Chromecast!

Running

  1. Run the c8tsender server.

    ./c8tsender --chromecast 192.168.1.78 # or whatever IP your Chromecast has

  2. Run python c8tfile.py /path/to/file/or/folder to begin queuing files (or use shell extension mentioned above).

  3. Open http://127.0.0.1:8080 (or LAN-IP) to control the playback using any browser/device.

About

c8tsender is a Google Chromecast sender server with a built-in REST API and responsive playlist interface

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C++ 77.0%Language:HTML 17.7%Language:Python 2.1%Language:Dockerfile 1.6%Language:CMake 1.4%Language:Shell 0.2%