aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-file.ts
Commit message (Collapse)AuthorAgeFilesLines
* esModuleInterop to trueChocobozzz2021-08-271-1/+1
|
* Add support for saving video files to object storage (#4290)Jelle Besseling2021-08-171-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for saving video files to object storage * Add support for custom url generation on s3 stored files Uses two config keys to support url generation that doesn't directly go to (compatible s3). Can be used to generate urls to any cache server or CDN. * Upload files to s3 concurrently and delete originals afterwards * Only publish after move to object storage is complete * Use base url instead of url template * Fix mistyped config field * Add rudenmentary way to download before transcode * Implement Chocobozzz suggestions https://github.com/Chocobozzz/PeerTube/pull/4290#issuecomment-891670478 The remarks in question: Try to use objectStorage prefix instead of s3 prefix for your function/variables/config names Prefer to use a tree for the config: s3.streaming_playlists_bucket -> object_storage.streaming_playlists.bucket Use uppercase for config: S3.STREAMING_PLAYLISTS_BUCKETINFO.bucket -> OBJECT_STORAGE.STREAMING_PLAYLISTS.BUCKET (maybe BUCKET_NAME instead of BUCKET) I suggest to rename moveJobsRunning to pendingMovingJobs (or better, create a dedicated videoJobInfo table with a pendingMove & videoId columns so we could also use this table to track pending transcoding jobs) https://github.com/Chocobozzz/PeerTube/pull/4290/files#diff-3e26d41ca4bda1de8e1747af70ca2af642abcc1e9e0bfb94239ff2165acfbde5R19 uses a string instead of an integer I think we should store the origin object storage URL in fileUrl, without base_url injection. Instead, inject the base_url at "runtime" so admins can easily change this configuration without running a script to update DB URLs * Import correct function * Support multipart upload * Remove import of node 15.0 module stream/promises * Extend maximum upload job length Using the same value as for redundancy downloading seems logical * Use dynamic part size for really large uploads Also adds very small part size for local testing * Fix decreasePendingMove query * Resolve various PR comments * Move to object storage after optimize * Make upload size configurable and increase default * Prune webtorrent files that are stored in object storage * Move files after transcoding jobs * Fix federation * Add video path manager * Support move to external storage job in client * Fix live object storage tests Co-authored-by: Chocobozzz <me@florianbigard.com>
* Filter host for channels and playlists searchChocobozzz2021-07-281-1/+1
|
* Use random names for VOD HLS playlistsChocobozzz2021-07-261-12/+33
|
* Avoid error when file has no torrent fileChocobozzz2021-05-251-0/+4
|
* Stricter models typingChocobozzz2021-05-121-1/+2
|
* Async torrent creationChocobozzz2021-02-251-0/+8
|
* CleanupChocobozzz2021-02-181-2/+2
|
* Don't guess remote tracker URLChocobozzz2021-02-181-7/+2
|
* Dissociate video file names and video uuidChocobozzz2021-02-181-31/+150
|
* Upgrade sequelize to v6Chocobozzz2020-12-091-1/+1
|
* Fix stat file size with HLSChocobozzz2020-11-101-5/+28
|
* Don't add live videos in redundancyChocobozzz2020-11-091-1/+1
|
* Regenerate miniature on live saveChocobozzz2020-11-091-0/+4
|
* Add live notification testsChocobozzz2020-11-091-0/+4
|
* Add check constraints live testsChocobozzz2020-11-091-0/+8
|
* Live streaming implementation first stepChocobozzz2020-11-091-2/+2
|
* Split types and typingsChocobozzz2020-06-181-2/+2
|
* Video file metadata PR cleanupChocobozzz2020-03-101-40/+39
|
* Add video file metadata to download modal, via ffprobe (#2411)Rigel Kent2020-03-101-10/+86
| | | | | | | | | | | | | | | | | | | * 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
* Add infohash cacheChocobozzz2020-01-031-1/+8
|
* Use a migration script to generate HLS torrent filesChocobozzz2019-12-121-1/+1
|
* Add ability to disable webtorrentChocobozzz2019-11-251-6/+81
| | | | In favour of HLS
* Update server dependenciesChocobozzz2019-10-211-1/+1
|
* Stronger model typingsChocobozzz2019-08-191-1/+2
|
* Add audio support in uploadChocobozzz2019-05-161-0/+5
|
* Upgrade sequelizeChocobozzz2019-04-241-15/+12
|
* Update P2P media loader peer versionChocobozzz2019-04-081-0/+24
|
* findById -> findByPkChocobozzz2019-02-211-1/+1
|
* Add hls support on serverChocobozzz2019-02-111-3/+3
|
* Add totalLocalVideoFilesSize in statsChocobozzz2019-01-151-0/+20
|
* Add import finished and video published notifsChocobozzz2019-01-091-2/+0
|
* Support additional video extensionsChocobozzz2018-12-111-1/+3
|
* Delete correctly redundancy filesChocobozzz2018-10-031-0/+13
|
* Fix video files duplicated when fps is nullChocobozzz2018-09-261-2/+2
| | | | Null values are not considered equal in a UNIQUE index
* Improve redundancy: add 'min_lifetime' configurationChocobozzz2018-09-241-0/+6
|
* Basic video redundancy implementationChocobozzz2018-09-131-1/+24
|
* Filter tracker based on infohashChocobozzz2018-08-141-0/+15
|
* Optimize SQL queriesChocobozzz2018-07-241-0/+4
|
* Handle higher FPS for high resolution (test)Chocobozzz2018-06-291-2/+13
|
* Move models to typescript-sequelizeChocobozzz2017-12-131-67/+42
|
* Misc cleanupChocobozzz2017-11-271-12/+4
|
* Modify video file size to bigintChocobozzz2017-09-221-1/+1
|
* Move video file metadata in their own tableChocobozzz2017-08-251-0/+89
Will be used for user video quotas and multiple video resolutions