2022-11-10 12:27:29 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
type Config struct {
|
2022-11-11 02:01:33 +00:00
|
|
|
// FFmpeg binary
|
|
|
|
ffmpeg string
|
|
|
|
// FFprobe binary
|
|
|
|
ffprobe string
|
|
|
|
|
|
|
|
// Size of each chunk in seconds
|
2022-11-10 17:39:09 +00:00
|
|
|
chunkSize int
|
2022-11-11 02:01:33 +00:00
|
|
|
// How many *chunks* to look behind before restarting transcoding
|
|
|
|
lookBehind int
|
2022-11-11 02:20:47 +00:00
|
|
|
// Number of chunks in goal to restart encoding
|
|
|
|
goalBufferMin int
|
|
|
|
// Number of chunks in goal to stop encoding
|
|
|
|
goalBufferMax int
|
2022-11-10 12:27:29 +00:00
|
|
|
}
|