An open API service indexing awesome lists of open source software.

https://github.com/valkryst/automated_video_conversion

A bash script which automatically converts video files into x265 MKV files using FFMPEG.
https://github.com/valkryst/automated_video_conversion

automation converter ffmpeg ffmpeg-script x265

Last synced: 5 months ago
JSON representation

A bash script which automatically converts video files into x265 MKV files using FFMPEG.

Awesome Lists containing this project

README

          

## Installation

To download this script and its dependencies, copy and paste the following commands into your bash terminal.

```bash
# Install Dependencies
sudo apt update
sudo apt install ffmpeg wget

# Download Script
sudo wget https://github.com/Valkryst/Automated_Video_Conversion/blob/main/convert.sh

# Modify the script's permissions to allow it to be run.
sudo chmod +x convert.sh
```

With the script downloaded, you must then perform these steps:

* Move the script into its own folder.

* e.g. `/home/conversion/video`

* Edit the script and make the following changes:

* Change `/home/conversion/video` in the command `cd /home/conversion/video` to point to the folder in which you placed the script.

* Change `ubuntu` in the command `chown -R ubuntu "$folder_path"` to your username.

* Change `ubuntu` in the command `chgrp -R ubuntu "$folder_path"` to your username.

* Run the script to generate all necessary subfolders.

* Add a [cron](https://en.wikipedia.org/wiki/Cron) job to run the script at a set interval.

* e.g. `0 * * * * /bin/bash /home/conversion/video/convert.sh > /home/conversion/video/convert.log`

## Usage

Place files and folders in the `todo` folder and they will be converted by the cron job.

## Important Notes

* Any folders containing the word `sample` are deleted, along with all files within those folders.

* Any files ending in `.exe`, `.jpg`, `.jpeg`, `.png`, `.nfo` or `.txt` are deleted.

* Dolby Vision and HDR files are not supported.