Skip to content

Bash script to convert video files into Google Chromecast supported format.

License

Notifications You must be signed in to change notification settings

TheBallOfAeolus/chromecastize

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 

Repository files navigation

chromecastize

Simple bash script to convert video files into Google Chromecast supported format.

Script identifies video and audio format of given file (using mediainfo) and converts it if necessary (using ffmpeg).

Filename of output video file is <original_filename>.mkv and original video file gets renamed to <original_filename>.bak.

Requirements

  • mediainfo
  • ffmpeg

Install requirements by running e.g. apt-get install ffmpeg mediainfo (Debian) or brew install ffmpeg mediainfo (MacOS with Homebrew).

Usage

./chromecastize.sh [--mp4 | --mkv] <videofile1> [videofile2 ...]

Examples:

  • ./chromecastize.sh /Volumes/MyNAS - converts all videos on your NAS (assuming that it's mounted to /Volumes/MyNAS)
  • ./chromecastize.sh Holiday.avi Wedding.avi - converts specified video files

Options:

  • --mp4 forces conversion to MPEG-4 container
  • --mkv forces conversion to Matroska container

Authors

  • Petr Kotek (did the script save you some time? donations appreciated: www.petrkotek.com)

About

Bash script to convert video files into Google Chromecast supported format.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%