Update server dependencies

Breaking: rename parse-log script option `-nt` to `-n`
This commit is contained in:
Chocobozzz
2025-02-03 09:55:58 +01:00
parent 98adb32185
commit cfd8c3c40e
5 changed files with 2069 additions and 1960 deletions

View File

@@ -68,10 +68,10 @@ export class ProcessLiveRTMPHLSTranscoding {
const bitrate = await getVideoStreamBitrate(this.payload.input.rtmpUrl, probe)
const { ratio } = await getVideoStreamDimensionsInfo(this.payload.input.rtmpUrl, probe)
const m3u8Watcher = watch(this.outputPath + '/*.m3u8')
const m3u8Watcher = watch(this.outputPath, { ignored: (path, stats) => stats?.isFile() && !path.endsWith('.m3u8') })
this.fsWatchers.push(m3u8Watcher)
const tsWatcher = watch(this.outputPath + '/*.ts')
const tsWatcher = watch(this.outputPath, { ignored: (path, stats) => stats?.isFile() && !path.endsWith('.ts') })
this.fsWatchers.push(tsWatcher)
m3u8Watcher.on('change', p => {