Tip of the day: Cast media files using Chromecast right from your terminal

Castnow

For the die hard Chromecasters out there (or command-line lovers!), there is a command-line tool that you can use to cast your media files to your Chromecast device. Castnow lets you cast not only local videos (or MP3 files) or videos on the web, but also torrent files.

Castnow has also other nice features, like transcoding the video to MP4 on-the-fly and casting the files in a directory sequentially. Furthermore, it supports subtitles and lets you start the video at a certain time.

A list of example commands can be found below.

// start playback of a local video file
castnow ./myvideo.mp4

// start playback of video and mp3 files in the local directory
castnow ./mydirectory/

// playback 3 videos after each other
castnow video1.mp4 video2.mp4 video3.mp4

// start playback of an mp4 file over the web
castnow http://commondatastorage.googleapis.com/gtv-videos-bucket/ED_1280.mp4

// start playback of a video over torrent
castnow <url-to-torrent-file OR magnet>

// start playback of a video over torrent with local subtitles
castnow <url-to-torrent-file OR magnet> --subtitles </local/path/to/subtitles.srt>

// transcode some other video format to mp4 while playback (requires ffmpeg)
castnow ./myvideo.avi --tomp4

// re-attach to a currently running playback session
castnow

For more details and more features, visit the Github link I provided. Happy casting!