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.
- Host: GitHub
- URL: https://github.com/valkryst/automated_video_conversion
- Owner: Valkryst
- License: mit
- Created: 2021-11-30T18:31:25.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-08T02:24:43.000Z (over 3 years ago)
- Last Synced: 2025-02-17T11:34:12.357Z (8 months ago)
- Topics: automation, converter, ffmpeg, ffmpeg-script, x265
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.