checkRemoteRedundancyConfig()
checkStorageConfig()
checkTranscodingConfig()
+ checkImportConfig()
checkBroadcastMessageConfig()
checkSearchConfig()
checkLiveConfig()
async function checkFFmpegVersion () {
const version = await getFFmpegVersion()
- const { major, minor } = parseSemVersion(version)
+ const { major, minor, patch } = parseSemVersion(version)
if (major < 4 || (major === 4 && minor < 1)) {
- logger.warn('Your ffmpeg version (%s) is outdated. PeerTube supports ffmpeg >= 4.1. Please upgrade.', version)
+ logger.warn('Your ffmpeg version (%s) is outdated. PeerTube supports ffmpeg >= 4.1. Please upgrade ffmpeg.', version)
+ }
+
+ if (major === 4 && minor === 4 && patch === 0) {
+ logger.warn('There is a bug in ffmpeg 4.4.0 with HLS videos. Please upgrade ffmpeg.')
}
}
}
}
+function checkImportConfig () {
+ if (CONFIG.IMPORT.VIDEO_CHANNEL_SYNCHRONIZATION.ENABLED && !CONFIG.IMPORT.VIDEOS.HTTP) {
+ throw new Error('You need to enable HTTP import to allow synchronization')
+ }
+}
+
function checkBroadcastMessageConfig () {
if (CONFIG.BROADCAST_MESSAGE.ENABLED) {
const currentLevel = CONFIG.BROADCAST_MESSAGE.LEVEL