mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Implement remote runner jobs in server
Move ffmpeg functions to @shared
This commit is contained in:
parent
6bcb854cde
commit
0c9668f779
168 changed files with 6907 additions and 2803 deletions
|
@ -0,0 +1,20 @@
|
|||
import { LiveRTMPHLSTranscodingJobHandler } from '@server/lib/runners'
|
||||
import { AbstractTranscodingWrapper } from './abstract-transcoding-wrapper'
|
||||
|
||||
export class RemoteTranscodingWrapper extends AbstractTranscodingWrapper {
|
||||
async run () {
|
||||
await new LiveRTMPHLSTranscodingJobHandler().create({
|
||||
rtmpUrl: this.inputUrl,
|
||||
toTranscode: this.toTranscode,
|
||||
video: this.videoLive.Video,
|
||||
outputDirectory: this.outDirectory,
|
||||
playlist: this.streamingPlaylist,
|
||||
segmentListSize: this.segmentListSize,
|
||||
segmentDuration: this.segmentDuration
|
||||
})
|
||||
}
|
||||
|
||||
abort () {
|
||||
this.emit('end')
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue