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.
- It's a C++11 project (go figure)
- libmicrohttpd (http://www.gnu.org/software/libmicrohttpd/, ./configure && make install)
- protobuf (https://github.com/google/protobuf/releases, ./configure && make install)
- ffmpeg (http://ffmpeg.org/)
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.
In Automator
create a new Service
.
- Service receives selected
files or folders
inFinder
. - Add a new
Run Shell Script
action, use Shell/usr/bin/python
, Pass inputas arguments
. - 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")
- 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!
-
Run the c8tsender server.
./c8tsender --chromecast 192.168.1.78
# or whatever IP your Chromecast has -
Run
python c8tfile.py /path/to/file/or/folder
to begin queuing files (or use shell extension mentioned above). -
Open
http://127.0.0.1:8080
(or LAN-IP) to control the playback using any browser/device.