]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commit - server/tests/api/videos/video-transcoder.ts
stricter youtubedl format selectors (#3516)
authorRigel Kent <sendmemail@rigelk.eu>
Fri, 15 Jan 2021 14:56:56 +0000 (15:56 +0100)
committerGitHub <noreply@github.com>
Fri, 15 Jan 2021 14:56:56 +0000 (15:56 +0100)
commit454c20fa7cdb05eba7f1be3c83389b54807af0b3
treee9b364da69eaf88f0470414c506c3b5631984c60
parentd43c6b1ffc5e6c895f9e9f9de6625f17a9755c20
stricter youtubedl format selectors (#3516)

* stricter youtubedl format selectors

make sure selectors avoid av1, and otherwise match as closely to the
maximum resolution enabled for transcoding

* add support for merge formats in youtubedl

* avoid vp9.2 in youtubedl to avoid any HDR

* move getEnabledResolutions, safer replace of imported extension

* add test for youtube-dl selectors
15 files changed:
client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html
client/src/app/+my-library/my-video-imports/my-video-imports.component.html
server/controllers/api/config.ts
server/controllers/api/videos/import.ts
server/controllers/static.ts
server/helpers/youtube-dl.ts
server/lib/job-queue/handlers/video-import.ts
server/lib/video-transcoding.ts
server/middlewares/validators/videos/video-imports.ts
server/tests/api/videos/video-imports.ts
server/tests/api/videos/video-transcoder.ts
server/tools/peertube-import-videos.ts
shared/core-utils/miscs/http-error-codes.ts
shared/extra-utils/videos/video-imports.ts
shared/models/server/job.model.ts