Giter VIP home page Giter VIP logo

chromecastize's Introduction

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 | --stereo | --delete-on-success | --force-vencode | --force-aencode | --config=/path/to/config] <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
  • --stereo forces conversion from multichannel audio to 2 channel stereo
  • --delete-on-success deletes the original file on success instead of renaming it to <original_filename>.bak
  • --force-vencode forces re-encoding of the video, if the codec is supported but the profile level is too high
  • --force-aencode forces re-encoding of the audio
  • --config=/path/to/config specify where to store configuration. When omitted the default folder ~/.chromecastize is used.

Changing default options

  • Copy the example config.sh file to your config folder (default location: ~/.chromecastize).
  • Uncomment the options which you wish to change by removing the leading # symbol.

Authors

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

chromecastize's People

Contributors

pfrenssen avatar bartlaarhoven avatar murzz avatar lmillefiori avatar barnowldown avatar tveronesi avatar talisein avatar peteruithoven avatar petrkotek avatar frawa avatar

Watchers

James Cloos avatar

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.