Coder Social home page Coder Social logo

eriklax / c8tsender Goto Github PK

View Code? Open in Web Editor NEW
30.0 6.0 10.0 211 KB

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

CMake 1.09% Python 2.07% Protocol Buffer 4.30% C++ 75.20% HTML 17.35%
chromecast

c8tsender's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.