15 June, 2014

Chromecastize: Video conversion script for Google Chromecast owners

I'm happy owner of Google Chromecast and even though it's awesome for streaming online content from YouTube or Netflix, it's not so great device for playing local media (or media from your NAS), because it supports only limited number of video and audio codecs (see Supported Media for Google Cast).

My Synology NAS is not powerful enough to transcode videos on the fly, so I decided to write a script which converts all my local media into Chromecast supported format using ffmpeg.

You can get the script from my GitHub repository chromecastize and convert all your media to Chromecast supported format by running one command - such as:
./chromecastize.sh /Volumes/MyNAS
If you come across any issues or have ideas for improvement, please, report them by using issues in the GitHub repository.


  1. hello,

    I was looking for such a tool.
    Little problem:
    medors-imac:Mum Medor$ sh ./chromecastize.sh /Users/Medor/BTSync/films/Mum
    ./chromecastize.sh: line 6: syntax error near unexpected token `newline'
    ./chromecastize.sh: line 6: `'

    Any idea how to solve it?

    Thanks in advance

  2. ./chromecastize.sh: line 6: syntax error near unexpected token `newline'
    ./chromecastize.sh: line 6: `'

    missing last part

    1. Hi Romain,

      (currently) you can't pass a directory to the script - you need to pass individual files.

      In order to pass all files from a directory (recursively), do this:

      find /Users/Medor/BTSync/films/Mum -type f -exec ./chromecastize.sh {} \;

      Note that it's also mentioned in Examples on https://github.com/bc-petrkotek/chromecastize page

      Hope that helps!

  3. There are recently a lot of products coming out that will help you in your decision on being able to stream content to your TV.reset chromecast