See https://github.com//eriklax/c8tsender/
CastAway is a Google Chromecast streaming server (with a responsive playlist interface) with REST API written in Python (and remuxing using ffmpeg).
- Google Chrome with Chromecast extention
- Python 2.7 or later
- ffmpeg (http://ffmpeg.org/)
castaway.py requires ffmpeg
(http://ffmpeg.org/) 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, us Shell/usr/bin/python
, Pass inputas arguments
. - Paste the content below, but correct the path for your
castfile.py
.
#!/usr/bin/env python
execfile("/Users/erik/castaway/castfile.py")
In Finder
a new context menu option is available, select a file or folder and CastAway!
-
Run the CastAway server.
python castaway.py
-
Open Google Chrome and browse to http://127.0.0.1:8000/backend, enable casting (page should turn green, reload in worst case) and then minimize the window (it must be kept open).
open -a 'Google Chrome' http://127.0.0.1:8000/backend
-
Run
python castfile.py /path/to/file/or/folder
to begin queuing files (or use shell extension mentioned above). -
Open http://127.0.0.1:8000/ (or LAN-IP) to control the playback using any browser/device.
open -a 'Google Chrome' http://127.0.0.1:8000/