updated readme

This commit is contained in:
kolaente 2017-11-03 20:24:24 +01:00
parent a3a9935baf
commit 48adf9d151
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 12 additions and 8 deletions

View File

@ -2,29 +2,33 @@
This image provides an easy way to convert a video file in multiple different output formats. Just specify a folder which holds the video files, it will automatically watch it and convert everything you specify.
It will create a new folder for each video which will hold all outputted formats. Once finished, it creates a file `[videoname].done` in said folder to indicate it is done. It will also move (and rename) the original file to this folder.
# Running, the easy way
The following command will convert all `mp4` and `webm` videos to `webm` files.
```bash
docker run -v /var/run/docker.sock:/var/run/docker.sock -v /path/to/video/files:/var/videos --name videodecoding --env VIDEO_FOLDER=/path/to/video/files --env VIDEO_FORMATS='.mp4':'.webm' kolaente/video-decode
```
# Options
-c: Video Formats Location. Pass a path with a JSON config file for conversion. Defaults to 'video_formats.json' in current folder.
-p: Video Location. Pass a location to a different folder which holds the videos. Defaults to currents folder.
-v: Video Formats. Pass all video formats which should trigger the conversion, seperated by ':'. Example: .mp4:.wmv
ENVIRONMENT VARIABLES:
All settings can be done via environment variables passed to the container.
VIDEO_FORMATS_LOCATION: Pass a location to a different json file holding video convert configurations
VIDEO_LOCATION: Pass a location to a different folder which holds the videos
VIDEO_FORMATS: Pass all video formats which should trigger the conversion, seperated by ':. Example: .mp4:.wmv
* __VIDEO_FORMATS_LOCATION__: Pass a location to a different JSON file holding video convert configurations (see below for more informations about that file).
* __VIDEO_FORMATS__: Pass all video formats which should trigger the conversion, seperated by ':. Example: .mp4:.wmv
## Video location
Videos are placed in `/var/videos` inside the container. Mount a folder from your host holding the videos.
# Specify output video formats
This is done via a JSON file at `/var/videoconversion/config/video_formats.json`. You can mount `/var/videoconversion/config/` to your host and specify your own formats.
`framerate` is the only one optional. You _need_ to specify everything else.
Standard configuration looks like this:
```json