-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtemplate.ffmpeg-over-ip.server.jsonc
37 lines (31 loc) · 1.66 KB
/
template.ffmpeg-over-ip.server.jsonc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
// This is a "jsonc" file and therefore supports comments in addition to standard JSON syntax
// LOG CONFIGURATION OPTIONS (use only one):
"log": "stdout", // type: "stdout" | "stderr" | any string (file path) | false
// Other possibilities (EXAMPLES - choose only one):
// "log": "$TMPDIR/ffmpeg-over-ip.server.log", // Uses the operating system temp folder
// "log": false, // Turns off logging completely
// "log": "stderr", // Log to stderr
// "log": "/var/log/messages.log", // Log to a specific file
"address": "0.0.0.0:5050", // type: string, format: "host:port" or "/path/to/unix.sock"
// You can use either "host:port" format for TCP connections or a path to a Unix socket
// Examples:
// "address": "127.0.0.1:5050" // Listen only on localhost
// "address": "0.0.0.0:5050" // Listen on all interfaces (default)
// "address": "/tmp/ffmpeg-over-ip.sock" // Use Unix socket
"authSecret": "YOUR-CLIENT-PASSWORD-HERE", // type: string
// ^ Ideally more than 15 characters long
"ffmpegPath": "/usr/bin/ffmpeg", // type: string
// ^ For windows, you may have to use slash twice because of how strings in JSON work, so C:\Windows would be "C:\\Windows" etc
"debug": false, // type: boolean
// ^ When set to true, command stdout/stderr will be logged to the server logs
// This is useful for troubleshooting ffmpeg commands
"rewrites": [
["/data/movies/", "M:\\movies\\"],
["/data/tv/", "M:\\tv\\"],
["/config/data/transcodes/", "N:\\transcodes\\"],
// ^ VERY IMPORTANT! For path rewrites BOTH input and output MUST have trailing slashes
// You can also use rewrites to map codecs, ie:
["libfdk_aac", "aac"]
]
}