ffmpeg-service/server/ffmpeg/startup.mjs

12 lines
338 B
JavaScript
Raw Permalink Normal View History

2022-05-25 18:47:38 +00:00
import Encoder from './encoder.mjs'
export function startup(core) {
core.db.data.ffmpeg = core.db.data.ffmpeg || {}
core.db.data.ffmpeg.program = 'ffmpeg.exe'
core.db.data.ffmpeg.options = ['--help']
core.db.write()
return new Encoder({
program: core.db.data.ffmpeg.program,
options: core.db.data.ffmpeg.options,
})
}