Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/petrkotek/chromecastize
Bash script to convert video files into Google Chromecast supported format.
https://github.com/petrkotek/chromecastize
bash chromecast converter video
Last synced: 7 days ago
JSON representation
Bash script to convert video files into Google Chromecast supported format.
- Host: GitHub
- URL: https://github.com/petrkotek/chromecastize
- Owner: petrkotek
- License: mit
- Created: 2014-06-15T07:04:36.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-01-18T08:48:00.000Z (almost 4 years ago)
- Last Synced: 2024-08-01T15:58:02.919Z (3 months ago)
- Topics: bash, chromecast, converter, video
- Language: Shell
- Size: 57.6 KB
- Stars: 178
- Watchers: 12
- Forks: 34
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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 `.mkv` and original video file gets renamed to `.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] [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 `.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)