]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commit
Implement remote runner jobs in server
authorChocobozzz <me@florianbigard.com>
Fri, 21 Apr 2023 12:55:10 +0000 (14:55 +0200)
committerChocobozzz <chocobozzz@cpy.re>
Tue, 9 May 2023 06:57:34 +0000 (08:57 +0200)
commit0c9668f77901e7540e2c7045eb0f2974a4842a69
tree226d3dd1565b0bb56588897af3b8530e6216e96b
parent6bcb854cdea8688a32240bc5719c7d139806e00b
Implement remote runner jobs in server

Move ffmpeg functions to @shared
168 files changed:
config/default.yaml
config/production.yaml.example
server.ts
server/controllers/api/config.ts
server/controllers/api/index.ts
server/controllers/api/jobs.ts
server/controllers/api/runners/index.ts [new file with mode: 0644]
server/controllers/api/runners/jobs-files.ts [new file with mode: 0644]
server/controllers/api/runners/jobs.ts [new file with mode: 0644]
server/controllers/api/runners/manage-runners.ts [new file with mode: 0644]
server/controllers/api/runners/registration-tokens.ts [new file with mode: 0644]
server/controllers/api/videos/transcoding.ts
server/controllers/api/videos/upload.ts
server/controllers/bots.ts
server/controllers/object-storage-proxy.ts
server/helpers/core-utils.ts
server/helpers/custom-validators/misc.ts
server/helpers/custom-validators/runners/jobs.ts [new file with mode: 0644]
server/helpers/custom-validators/runners/runners.ts [new file with mode: 0644]
server/helpers/debounce.ts [new file with mode: 0644]
server/helpers/ffmpeg/codecs.ts [new file with mode: 0644]
server/helpers/ffmpeg/ffmpeg-commons.ts [deleted file]
server/helpers/ffmpeg/ffmpeg-edition.ts [deleted file]
server/helpers/ffmpeg/ffmpeg-encoders.ts [deleted file]
server/helpers/ffmpeg/ffmpeg-image.ts [new file with mode: 0644]
server/helpers/ffmpeg/ffmpeg-images.ts [deleted file]
server/helpers/ffmpeg/ffmpeg-live.ts [deleted file]
server/helpers/ffmpeg/ffmpeg-options.ts [new file with mode: 0644]
server/helpers/ffmpeg/ffmpeg-presets.ts [deleted file]
server/helpers/ffmpeg/ffmpeg-vod.ts [deleted file]
server/helpers/ffmpeg/ffprobe-utils.ts [deleted file]
server/helpers/ffmpeg/framerate.ts [new file with mode: 0644]
server/helpers/ffmpeg/index.ts
server/helpers/image-utils.ts
server/helpers/peertube-crypto.ts
server/helpers/token-generator.ts [new file with mode: 0644]
server/helpers/webtorrent.ts
server/initializers/checker-after-init.ts
server/initializers/checker-before-init.ts
server/initializers/config.ts
server/initializers/constants.ts
server/initializers/database.ts
server/initializers/installer.ts
server/initializers/migrations/0765-remote-transcoding.ts [new file with mode: 0644]
server/lib/hls.ts
server/lib/job-queue/handlers/transcoding-job-builder.ts [new file with mode: 0644]
server/lib/job-queue/handlers/video-file-import.ts
server/lib/job-queue/handlers/video-import.ts
server/lib/job-queue/handlers/video-live-ending.ts
server/lib/job-queue/handlers/video-studio-edition.ts
server/lib/job-queue/handlers/video-transcoding.ts
server/lib/job-queue/job-queue.ts
server/lib/live/live-manager.ts
server/lib/live/live-segment-sha-store.ts
server/lib/live/live-utils.ts
server/lib/live/shared/muxing-session.ts
server/lib/live/shared/transcoding-wrapper/abstract-transcoding-wrapper.ts [new file with mode: 0644]
server/lib/live/shared/transcoding-wrapper/ffmpeg-transcoding-wrapper.ts [new file with mode: 0644]
server/lib/live/shared/transcoding-wrapper/index.ts [new file with mode: 0644]
server/lib/live/shared/transcoding-wrapper/remote-transcoding-wrapper.ts [new file with mode: 0644]
server/lib/object-storage/index.ts
server/lib/object-storage/proxy.ts [new file with mode: 0644]
server/lib/peertube-socket.ts
server/lib/plugins/plugin-helpers-builder.ts
server/lib/runners/index.ts [new file with mode: 0644]
server/lib/runners/job-handlers/abstract-job-handler.ts [new file with mode: 0644]
server/lib/runners/job-handlers/abstract-vod-transcoding-job-handler.ts [new file with mode: 0644]
server/lib/runners/job-handlers/index.ts [new file with mode: 0644]
server/lib/runners/job-handlers/live-rtmp-hls-transcoding-job-handler.ts [new file with mode: 0644]
server/lib/runners/job-handlers/runner-job-handlers.ts [new file with mode: 0644]
server/lib/runners/job-handlers/shared/index.ts [new file with mode: 0644]
server/lib/runners/job-handlers/shared/vod-helpers.ts [new file with mode: 0644]
server/lib/runners/job-handlers/vod-audio-merge-transcoding-job-handler.ts [new file with mode: 0644]
server/lib/runners/job-handlers/vod-hls-transcoding-job-handler.ts [new file with mode: 0644]
server/lib/runners/job-handlers/vod-web-video-transcoding-job-handler.ts [new file with mode: 0644]
server/lib/runners/runner-urls.ts [new file with mode: 0644]
server/lib/runners/runner.ts [new file with mode: 0644]
server/lib/schedulers/runner-job-watch-dog-scheduler.ts [new file with mode: 0644]
server/lib/server-config-manager.ts
server/lib/transcoding/create-transcoding-job.ts [new file with mode: 0644]
server/lib/transcoding/default-transcoding-profiles.ts
server/lib/transcoding/ended-transcoding.ts [new file with mode: 0644]
server/lib/transcoding/hls-transcoding.ts [new file with mode: 0644]
server/lib/transcoding/shared/ffmpeg-builder.ts [new file with mode: 0644]
server/lib/transcoding/shared/index.ts [new file with mode: 0644]
server/lib/transcoding/shared/job-builders/abstract-job-builder.ts [new file with mode: 0644]
server/lib/transcoding/shared/job-builders/index.ts [new file with mode: 0644]
server/lib/transcoding/shared/job-builders/transcoding-job-queue-builder.ts [new file with mode: 0644]
server/lib/transcoding/shared/job-builders/transcoding-runner-job-builder.ts [new file with mode: 0644]
server/lib/transcoding/transcoding-quick-transcode.ts [new file with mode: 0644]
server/lib/transcoding/transcoding-resolutions.ts [new file with mode: 0644]
server/lib/transcoding/transcoding.ts [deleted file]
server/lib/transcoding/web-transcoding.ts [new file with mode: 0644]
server/lib/uploadx.ts
server/lib/video-blacklist.ts
server/lib/video-file.ts
server/lib/video-studio.ts
server/lib/video.ts
server/middlewares/auth.ts
server/middlewares/doc.ts
server/middlewares/error.ts
server/middlewares/rate-limiter.ts
server/middlewares/validators/config.ts
server/middlewares/validators/runners/index.ts [new file with mode: 0644]
server/middlewares/validators/runners/job-files.ts [new file with mode: 0644]
server/middlewares/validators/runners/jobs.ts [new file with mode: 0644]
server/middlewares/validators/runners/registration-token.ts [new file with mode: 0644]
server/middlewares/validators/runners/runners.ts [new file with mode: 0644]
server/middlewares/validators/sort.ts
server/middlewares/validators/videos/video-live.ts
server/middlewares/validators/videos/video-studio.ts
server/middlewares/validators/videos/videos.ts
server/models/runner/runner-job.ts [new file with mode: 0644]
server/models/runner/runner-registration-token.ts [new file with mode: 0644]
server/models/runner/runner.ts [new file with mode: 0644]
server/models/shared/update.ts
server/models/video/video-job-info.ts
server/models/video/video-live-session.ts
server/models/video/video.ts
server/types/express.d.ts
server/types/models/runners/index.ts [new file with mode: 0644]
server/types/models/runners/runner-job.ts [new file with mode: 0644]
server/types/models/runners/runner-registration-token.ts [new file with mode: 0644]
server/types/models/runners/runner.ts [new file with mode: 0644]
shared/core-utils/common/number.ts
shared/core-utils/common/promises.ts
shared/extra-utils/index.ts
shared/ffmpeg/ffmpeg-command-wrapper.ts [new file with mode: 0644]
shared/ffmpeg/ffmpeg-edition.ts [new file with mode: 0644]
shared/ffmpeg/ffmpeg-images.ts [new file with mode: 0644]
shared/ffmpeg/ffmpeg-live.ts [new file with mode: 0644]
shared/ffmpeg/ffmpeg-utils.ts [new file with mode: 0644]
shared/ffmpeg/ffmpeg-version.ts [new file with mode: 0644]
shared/ffmpeg/ffmpeg-vod.ts [new file with mode: 0644]
shared/ffmpeg/ffprobe.ts [moved from shared/extra-utils/ffprobe.ts with 91% similarity]
shared/ffmpeg/index.ts [new file with mode: 0644]
shared/ffmpeg/shared/encoder-options.ts [new file with mode: 0644]
shared/ffmpeg/shared/index.ts [new file with mode: 0644]
shared/ffmpeg/shared/presets.ts [new file with mode: 0644]
shared/models/index.ts
shared/models/runners/abort-runner-job-body.model.ts [new file with mode: 0644]
shared/models/runners/accept-runner-job-body.model.ts [new file with mode: 0644]
shared/models/runners/accept-runner-job-result.model.ts [new file with mode: 0644]
shared/models/runners/error-runner-job-body.model.ts [new file with mode: 0644]
shared/models/runners/index.ts [new file with mode: 0644]
shared/models/runners/list-runner-jobs-query.model.ts [new file with mode: 0644]
shared/models/runners/list-runner-registration-tokens.model.ts [new file with mode: 0644]
shared/models/runners/list-runners-query.model.ts [new file with mode: 0644]
shared/models/runners/register-runner-body.model.ts [new file with mode: 0644]
shared/models/runners/register-runner-result.model.ts [new file with mode: 0644]
shared/models/runners/request-runner-job-body.model.ts [new file with mode: 0644]
shared/models/runners/request-runner-job-result.model.ts [new file with mode: 0644]
shared/models/runners/runner-job-payload.model.ts [new file with mode: 0644]
shared/models/runners/runner-job-private-payload.model.ts [new file with mode: 0644]
shared/models/runners/runner-job-state.model.ts [new file with mode: 0644]
shared/models/runners/runner-job-success-body.model.ts [new file with mode: 0644]
shared/models/runners/runner-job-type.type.ts [new file with mode: 0644]
shared/models/runners/runner-job-update-body.model.ts [new file with mode: 0644]
shared/models/runners/runner-job.model.ts [new file with mode: 0644]
shared/models/runners/runner-registration-token.ts [new file with mode: 0644]
shared/models/runners/runner.model.ts [new file with mode: 0644]
shared/models/runners/unregister-runner-body.model.ts [new file with mode: 0644]
shared/models/server/custom-config.model.ts
shared/models/server/job.model.ts
shared/models/server/server-config.model.ts
shared/models/server/server-error-code.enum.ts
shared/models/users/user-right.enum.ts
shared/models/videos/live/live-video-error.enum.ts