Commit Graph

663 Commits

Author SHA1 Message Date
kontrollanten
e1ab52d7ec Add migrate-to-object-storage script (#4481)
* add migrate-to-object-storage-script

closes #4467

* add migrate-to-unique-playlist-filenames script

* fix(migrate-to-unique-playlist-filenames): update master/segments256

run updateMasterHLSPlaylist and updateSha256VODSegments after
file rename.

* Improve move to object storage scripts

* PR remarks

Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-11-09 11:05:35 +01:00
Chocobozzz
8aad7ae413 Fix transcoding job with resolution 2021-11-05 14:19:42 +01:00
Chocobozzz
fd5fa94bbc Remove unnecessary env 2021-11-02 10:30:50 +01:00
Chocobozzz
efcadd3d14 Fix "Off" player string localization 2021-10-21 11:01:10 +02:00
Chocobozzz
cf0c8ee588 Fix admin edition disabling feature 2021-10-14 11:35:43 +02:00
Chocobozzz
87c0f718dc Fix benchmark test 2021-10-14 08:30:17 +02:00
Chocobozzz
624e42fdf9 Remove peertube watch and peertube repl
I don't have time to maintain these scripts that cause some install
issues/maintenance difficulties
2021-09-10 15:06:57 +02:00
Chocobozzz
6d210220be Fix NSFW filter and add tests 2021-09-03 16:35:18 +02:00
Chocobozzz
2ede07153c Fix hls redundancy pruning 2021-09-02 15:10:40 +02:00
Chocobozzz
12d6b873cd Improve e2e workflow and add doc 2021-09-02 09:07:42 +02:00
Chocobozzz
3419e0e1fe Migrate to webdriverio 2021-09-01 15:06:46 +02:00
Chocobozzz
736c64ca4b Fix benchmark script 2021-08-30 14:22:33 +02:00
Chocobozzz
41fb13c330 esModuleInterop to true 2021-08-27 15:12:22 +02:00
Chocobozzz
50bb71bade Update contributor list 2021-08-26 10:01:42 +02:00
Chocobozzz
1fd8803cd9 No need to install client dependencies for upgrade 2021-08-26 10:01:42 +02:00
Chocobozzz
33a53638c2 Embed stats only when needed 2021-08-18 10:32:40 +02:00
Chocobozzz
1f6125be8b Optimize torrent URL update 2021-08-18 09:14:51 +02:00
Chocobozzz
c186a67f90 Support short uuid for scripts 2021-08-17 11:06:10 +02:00
Chocobozzz
66a7fc9473 Remove optimize old videos script
It is not compatible with HLS and I don't have time to maintain it
2021-08-17 10:33:36 +02:00
Jelle Besseling
0305db28c9 Add support for saving video files to object storage (#4290)
* 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>
2021-08-17 08:26:20 +02:00
Chocobozzz
de34551da3 Typo 2021-08-11 14:43:03 +02:00
Chocobozzz
eb8bd9ab1a Try to fix openapi script 2021-08-11 14:38:07 +02:00
Chocobozzz
679c12e69c Improve target bitrate calculation 2021-08-06 14:13:26 +02:00
Chocobozzz
15a7eafb89 Refactor video links builders 2021-07-26 15:04:37 +02:00
Chocobozzz
764b1a14fc Use random names for VOD HLS playlists 2021-07-26 11:29:31 +02:00
Chocobozzz
13e1337791 Speed up plugin transcoding tests 2021-07-22 08:55:14 +02:00
Chocobozzz
a24bd1ed41 Merge branch 'next' into develop 2021-07-21 15:51:30 +02:00
Chocobozzz
2b9f672b58 Improve plugin constant tests 2021-07-21 15:44:28 +02:00
Chocobozzz
c63830f154 Rename captions commands 2021-07-21 13:58:35 +02:00
Chocobozzz
254d3579f5 Use an object to represent a server 2021-07-20 15:27:18 +02:00
Chocobozzz
89d241a79c Shorter server command names 2021-07-20 15:27:18 +02:00
Chocobozzz
d23dd9fbfc Introduce videos command 2021-07-20 15:27:18 +02:00
Chocobozzz
9293139fde Introduce sql command 2021-07-20 15:27:18 +02:00
Chocobozzz
12edc1495a Introduce comments command 2021-07-20 15:27:18 +02:00
Chocobozzz
a2470c9f4b Introduce captions command 2021-07-20 15:27:17 +02:00
Chocobozzz
329619b345 Introduce CLI command 2021-07-20 15:27:16 +02:00
Chocobozzz
13c749c121 Fix angular builds 2021-07-05 15:19:23 +02:00
Chocobozzz
ed76401ecd Add ms to parse log dates 2021-06-29 15:22:12 +02:00
Chocobozzz
8cbc40b2fe Move to sass module 2021-06-28 10:54:02 +02:00
Chocobozzz
8cc6120118 Upgrade server dependencies 2021-06-25 17:39:27 +02:00
Chocobozzz
29b7426c67 Speedup CI 2021-06-17 10:43:34 +02:00
Chocobozzz
8ebf2a5d5d Refactor live manager 2021-06-17 08:47:03 +02:00
Chocobozzz
51f636ad0f Display locale date time in parse log 2021-06-15 10:40:06 +02:00
Chocobozzz
3d470a530c Faster ci using compiled ts files 2021-06-15 08:21:12 +02:00
Chocobozzz
71d4af1efc Use raw SQL for most of video queries 2021-06-11 14:09:52 +02:00
Chocobozzz
27bc958674 Bidi support 2021-06-07 18:14:05 +02:00
frankstrater
5ed25fb76e Remove annoying superfluous slash 2021-06-02 16:51:23 +02:00
Chocobozzz
4d7ce9218a Merge branch 'release/3.2.0' into develop 2021-05-28 15:54:48 +02:00
Chocobozzz
86dc0b9cc9 Fix upgrade script 2021-05-28 15:54:18 +02:00
Chocobozzz
5351a0584f Replace local menu icon 2021-05-28 14:56:42 +02:00