aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/videos/upload.ts
Commit message (Collapse)AuthorAgeFilesLines
* Fix upload notificationChocobozzz2022-08-091-0/+9
|
* Use bullmq job dependencyChocobozzz2022-08-091-38/+30
|
* Move to bullmqChocobozzz2022-08-091-2/+2
|
* Rename video full loadingChocobozzz2022-06-281-1/+1
|
* store uploaded video filename (#4885)kontrollanten2022-06-211-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * store uploaded video filename closes #4731 * dont crash if videos channel exist * migration: use raw query * video source: fixes after code review * cleanup * bump migration * updates after code review * refactor: use checkUserCanManageVideo * videoSource: add openapi doc * test(check-params/video-source): fix timeout * Styling * Correctly set original filename as source Co-authored-by: Chocobozzz <me@florianbigard.com>
* Add video edition finished notificationChocobozzz2022-03-221-2/+2
|
* Process video torrents in orderChocobozzz2022-03-161-36/+28
| | | | Prevent update before video torrent generation for example
* Refactor user build and express file middlewaresChocobozzz2022-03-041-12/+3
|
* Add basic video editor supportChocobozzz2022-02-281-4/+4
|
* Upgrade uploadx dependencyChocobozzz2022-01-181-4/+1
|
* Move uuid stuff in extra utilsChocobozzz2021-12-291-2/+2
| | | | Since it requires an external dependency
* Fix shared importsChocobozzz2021-12-241-2/+1
|
* Fix audio only transcodingChocobozzz2021-12-231-7/+10
|
* Move test functions outside extra-utilsChocobozzz2021-12-171-2/+1
|
* chore(refactor): remove shared folder dependencies to the serverlutangar2021-12-161-2/+2
| | | | | | | | | | | Many files from the `shared` folder were importing files from the `server` folder. When attempting to use Typescript project references to describe dependencies, it highlighted a circular dependency beetween `shared` <-> `server`. The Typescript project forbid such usages. Using project references greatly improve performance by rebuilding only the updated project and not all source files. > see https://www.typescriptlang.org/docs/handbook/project-references.html
* Add upload/import/go live video attributes hooksChocobozzz2021-12-101-1/+2
|
* Decrease time to cleanup resumable uploadsChocobozzz2021-12-031-6/+3
|
* Add `req` and `res` as controllers hooks parameterslutangar2021-11-251-4/+5
| | | | | Hooks prefixed by `action:api` now give access the original express req and res. Checkout guide.md for possible usage.
* Remove resumable cache after upload successChocobozzz2021-11-101-7/+19
|
* prevent multiple post-process triggering of upload-resumable (#4175)Rigel Kent2021-10-251-6/+12
| | | | | | | | | * prevent multiple post-process triggering of upload-resumable * switch from 409 to 503 for upload being processed * Improve resumable upload check Co-authored-by: Chocobozzz <me@florianbigard.com>
* Fix silent 500 after resumable uploadChocobozzz2021-09-091-4/+1
|
* Migrate to webdriverioChocobozzz2021-09-011-3/+3
|
* esModuleInterop to trueChocobozzz2021-08-271-1/+1
|
* Add support for saving video files to object storage (#4290)Jelle Besseling2021-08-171-12/+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>
* Improve target bitrate calculationChocobozzz2021-08-061-1/+1
|
* Use random names for VOD HLS playlistsChocobozzz2021-07-261-5/+7
|
* Generate random uuid for video filesChocobozzz2021-07-261-2/+2
|
* Refactor requestsChocobozzz2021-07-201-1/+1
|
* Support short uuid for GET video/playlistChocobozzz2021-06-291-0/+2
|
* Fix video upload with a capitalized extChocobozzz2021-06-081-2/+2
|
* refactor docMiddleware to support operationId-only formRigel Kent2021-06-041-4/+4
|
* Refactor server errors handlerChocobozzz2021-06-021-0/+4
|
* refactor API errors to standard error formatRigel Kent2021-06-021-2/+5
|
* Refactor a little bit controllersChocobozzz2021-05-121-0/+269