Add video file metadata to download modal, via ffprobe (#2411)
authorRigel Kent <sendmemail@rigelk.eu>
Tue, 10 Mar 2020 13:39:40 +0000 (14:39 +0100)
committerGitHub <noreply@github.com>
Tue, 10 Mar 2020 13:39:40 +0000 (14:39 +0100)
commit8319d6ae72d4da6de51bd3d4b5c68040fc8dc3b4
tree1f87041b2cd76222844960602cdc9f52fe206c7b
parentedb868655e52f934a71141175cf9dc6cb4753e11
Add video file metadata to download modal, via ffprobe (#2411)

* Add video file metadata via ffprobe

* Federate video file metadata

* Add tests for file metadata generation

* Complete tests for videoFile metadata federation

* Lint migration and video-file for metadata

* Objectify metadata from getter in ffmpeg-utils

* Add metadataUrl to all videoFiles

* Simplify metadata API middleware

* Load playlist in videoFile when requesting metadata
23 files changed:
client/src/app/shared/video/modals/video-download.component.html
client/src/app/shared/video/modals/video-download.component.scss
client/src/app/shared/video/modals/video-download.component.ts
client/src/app/shared/video/video.service.ts
client/src/sass/bootstrap.scss
server/controllers/api/videos/index.ts
server/helpers/ffmpeg-utils.ts
server/helpers/middlewares/videos.ts
server/initializers/constants.ts
server/initializers/migrations/0485-video-file-metadata.ts [new file with mode: 0644]
server/lib/activitypub/videos.ts
server/lib/video-transcoding.ts
server/middlewares/validators/videos/videos.ts
server/models/redundancy/video-redundancy.ts
server/models/utils.ts
server/models/video/video-file.ts
server/models/video/video-format-utils.ts
server/models/video/video.ts
server/tests/api/videos/video-transcoder.ts
shared/extra-utils/videos/videos.ts
shared/models/activitypub/objects/common-objects.ts
shared/models/videos/video-file-metadata.ts [new file with mode: 0644]
shared/models/videos/video-file.model.ts