Chocobozzz
fb3c9e2bf5
Translate plugin settings
2021-12-29 14:08:07 +01:00
Chocobozzz
10a72a7e61
Fix tests
2021-12-28 14:12:57 +01:00
Chocobozzz
f1569117f9
Cleanup unavailable remote AP resource
2021-12-28 11:37:05 +01:00
Chocobozzz
ae4e417ab0
Update CREDITS
2021-12-24 14:56:33 +01:00
Chocobozzz
e5d91a9b9c
Upgrade redis dep
2021-12-24 14:52:24 +01:00
Chocobozzz
c7cdac4409
Fix type conflict
2021-12-24 10:40:51 +01:00
Chocobozzz
d17c7b4e8c
Fix shared imports
2021-12-24 10:14:47 +01:00
Chocobozzz
5354af75b3
Fix video import transcoding
2021-12-23 13:40:47 +01:00
Chocobozzz
dbd9fb44dd
Don't stuck state when move transcoding job failed
2021-12-23 11:13:06 +01:00
Chocobozzz
482b26231b
Fix audio only transcoding
2021-12-23 10:57:55 +01:00
Chocobozzz
293074ae79
Fix video upload with big preview
2021-12-17 15:50:02 +01:00
Chocobozzz
f304a1580b
Fix build
2021-12-17 13:58:07 +01:00
Chocobozzz
c55e3d7227
Move test functions outside extra-utils
2021-12-17 12:24:03 +01:00
Chocobozzz
6b5f72beda
Move typescript utils in its own directory
2021-12-16 18:04:16 +01:00
Chocobozzz
754c52b9b9
Add ffprobe helper
2021-12-16 17:00:46 +01:00
Chocobozzz
2e9c7877eb
Add videos.getFiles plugin helper
2021-12-16 16:49:43 +01:00
Chocobozzz
b65de1be4d
Use different p2p policy for embeds and webapp
2021-12-16 10:08:55 +01:00
Chocobozzz
a9bfa85d2c
Add ability for admins to set default p2p policy
2021-12-16 10:08:55 +01:00
lutangar
06aad80165
chore(refactor): remove shared folder dependencies to the server
...
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
2021-12-16 10:08:43 +01:00
Chocobozzz
3cf68b869d
Ability for admins to set default upload values
2021-12-14 17:17:01 +01:00
Chocobozzz
14857212f1
Move b frame strategy in transcoding profile
...
We may use a too high value for some encoders and it allows to specify
custom values/strategy
2021-12-14 10:46:31 +01:00
Chocobozzz
ab18fadfd1
Fix AP audience
2021-12-13 17:33:59 +01:00
Chocobozzz
b5e1cd9a30
Handle channel owner update of remote server
2021-12-13 16:03:16 +01:00
Chocobozzz
9e847c17f9
No notification on moderator abuse
2021-12-09 14:27:32 +01:00
Chocobozzz
9b293cd6a2
Update torrent metadata on video update
2021-12-08 11:07:19 +01:00
Chocobozzz
636d73c588
Merge branch 'release/4.0.0' into develop
2021-12-07 13:47:34 +01:00
Chocobozzz
4c6757f2fd
Fix live log tags
2021-12-07 13:45:01 +01:00
Chocobozzz
80badf493a
Add mute status in account and channel pages
2021-12-07 09:46:01 +01:00
Chocobozzz
0bc53e2029
Add ability to redirect users on external auth
2021-12-03 17:04:47 +01:00
Chocobozzz
9ea02c48a7
Merge branch 'release/4.0.0' into develop
2021-12-03 14:40:52 +01:00
Chocobozzz
025d858e79
Fix pending transcoding with failed job
2021-12-03 14:40:29 +01:00
Chocobozzz
6d472b4046
Decrease time to cleanup resumable uploads
2021-12-03 14:01:38 +01:00
Chocobozzz
9213df1d79
Fix comment
2021-12-03 10:49:36 +01:00
Chocobozzz
63a3d336f6
Remove uneeded function
2021-12-03 10:14:33 +01:00
Chocobozzz
ca87d95bcb
Fix plugin upgrade
...
Correctly decache all plugin paths
2021-12-03 10:14:17 +01:00
kontrollanten
5fc44b57f8
Add header Vary Accept-Language ( #4588 )
...
* nginx: add header Vary Accept-Language
solves #3647
* Revert "nginx: add header Vary Accept-Language"
This reverts commit 90dccf5324
.
* add resp header Vary Accept-Language
solves #3647
* don't add vary header to embed page
2021-12-02 09:14:54 +01:00
Chocobozzz
1da843eeac
Don't notify when transcoding ends on manual run
2021-12-01 12:33:46 +01:00
Chocobozzz
a5ee023cf3
Fix redundancy timeout
2021-11-30 08:40:30 +01:00
Chocobozzz
55cb8bc73c
Correctly escape meta tags
2021-11-30 08:31:56 +01:00
Chocobozzz
7b0c61e743
Fix build
2021-11-29 15:46:52 +01:00
Chocobozzz
4c99953acd
Fix redundancy timeout
2021-11-29 15:45:02 +01:00
Chocobozzz
fa7388f087
Fix transcoding job count inconsistency
2021-11-29 11:20:17 +01:00
Chocobozzz
7137377d09
Auto update publishedAt in live restream
2021-11-26 17:36:55 +01:00
lutangar
7226e90fdc
Add `req` and `res` as controllers hooks parameters
...
Hooks prefixed by `action:api` now give access the original express req and res.
Checkout guide.md for possible usage.
2021-11-25 09:54:22 +01:00
Chocobozzz
450de91e22
Fix E2E tests
2021-11-24 10:49:12 +01:00
Chocobozzz
ad5db1044c
Add ability to run transcoding jobs
2021-11-18 15:20:57 +01:00
Chocobozzz
b46cf4b920
Add ability to remove hls/webtorrent files
2021-11-18 09:04:30 +01:00
Chocobozzz
3455c2656e
Test and log request retries
2021-11-16 11:34:24 +01:00
Chocobozzz
a2f99b54df
Optimize AP fetch
2021-11-16 10:28:31 +01:00
Chocobozzz
3ef5909aec
Fix extendsLocalExpiration for redundancy
2021-11-12 09:02:53 +01:00
Chocobozzz
67eeec8b95
Add minimum bitrate limit
2021-11-10 11:04:00 +01:00
Chocobozzz
020d3d3d79
Remove resumable cache after upload success
2021-11-10 09:43:33 +01:00
Chocobozzz
51353d9a03
Refactor video views
...
Introduce viewers attribute for live videos
Count views for live videos
Reduce delay to see the viewer update for lives
Add ability to configure video views buffer interval and view ip
expiration
2021-11-09 15:00:31 +01:00
Chocobozzz
221ee1adc9
Add transcoding fail message in client
2021-11-09 15:00:21 +01:00
kontrollanten
4e29f4fe23
video: add video stranscoding_failed state
2021-11-09 15:00:21 +01:00
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
5037e0e474
Correctly close RTMPS server too
2021-11-05 11:40:49 +01:00
Chocobozzz
df1db951c5
Support RTMPS
2021-11-05 11:38:17 +01:00
Florian CUNY
754b6f5f41
Made the video channels limit (per user) server-wide configurable ( #4491 )
...
* Made the video channels limit (per user) server-wide configurable
Implements https://github.com/Chocobozzz/PeerTube/issues/3092
Also added a "quota bar" in the account's settings page
* Fixed lint errors
* Another pass at fixing lint errors
* Applied code suggestions
* Removed 'video channels quota'
2021-10-26 16:42:10 +02:00
Rigel Kent
276250f0a3
prevent multiple post-process triggering of upload-resumable ( #4175 )
...
* 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>
2021-10-25 17:42:20 +02:00
Chocobozzz
532e6a4172
Remove aws bug workaround
...
This has been fixed in https://github.com/aws/aws-sdk-js-v3/pull/2835
2021-10-22 16:30:55 +02:00
Chocobozzz
619537426b
Constants consistency
2021-10-22 10:28:00 +02:00
Chocobozzz
62549e6c98
Rewrite youtube-dl import
...
Use python3 binary
Allows to use a custom youtube-dl release URL
Allows to use yt-dlp (youtube-dl fork)
Remove proxy config from configuration to use HTTP_PROXY and HTTPS_PROXY
env variables
2021-10-22 10:25:24 +02:00
Chocobozzz
400043b1be
Add ability to search by URL with query params
2021-10-20 15:26:38 +02:00
Chocobozzz
1e2fe802d1
Force live type specification in first step
2021-10-15 11:45:03 +02:00
Chocobozzz
bacb544dbb
Remove old federation compatibility
2021-10-15 09:44:21 +02:00
Chocobozzz
f0ab2aed3d
Fix lint
2021-10-14 14:14:57 +02:00
Chocobozzz
cf0c8ee588
Fix admin edition disabling feature
2021-10-14 11:35:43 +02:00
Chocobozzz
e1a570abff
Fix user subscription follows count
2021-10-14 10:52:15 +02:00
Chocobozzz
1cf0df024e
Fix actor follow counts calculation
2021-10-13 16:18:42 +02:00
Chocobozzz
9db437c815
Process slow followers in unicast job queue
2021-10-13 11:47:32 +02:00
Chocobozzz
d41a380550
Fix check after init script
2021-10-13 08:44:34 +02:00
Chocobozzz
80dea8f4d6
Rename config key
2021-10-12 14:25:30 +02:00
kontrollanten
7399a79f73
add option to always show channel display name ( #4422 )
...
* add option to always show channel display name
closes #4040
* show avatar in video miniatures
closes #4040
* Revert "show avatar in video miniatures"
This reverts commit 79b1a84140
.
* channel display name: fix review comments
2021-10-12 14:23:44 +02:00
Jelle Besseling
8d8a037e3f
Allow configuration to be static/readonly ( #4315 )
...
* Allow configuration to be static/readonly
* Make all components disableable
* Improve disabled component styling
* Rename edits allowed field in configuration
* Fix CI
2021-10-12 13:33:44 +02:00
Chocobozzz
badacdbb4a
Merge branch 'release/3.4.0' into develop
2021-10-11 16:00:39 +02:00
Chocobozzz
41085b1583
Fix live bitrate
2021-10-11 15:59:38 +02:00
Chocobozzz
40a8c0a4c4
Fix email logger typings
2021-10-11 14:55:02 +02:00
Chocobozzz
5ac6449735
Remove useless condition
2021-10-11 14:40:53 +02:00
Chocobozzz
8bd67ef6af
Remove uneeded language injection
...
It's already handled by angular build
2021-10-11 14:00:09 +02:00
Chocobozzz
9db2330e4a
Fix notification on create transcoding job
2021-10-11 09:37:27 +02:00
Chocobozzz
efa3fef23e
Fix notification on create transcoding job
2021-10-08 15:40:23 +02:00
Chocobozzz
b4c945f3c7
Fix config injection with custom HTML/CSS
2021-09-09 09:13:45 +02:00
Chocobozzz
1c93ad0778
Fix object storage multipart upload
2021-09-08 16:45:02 +02:00
Chocobozzz
fb72d2e1c2
Fix infohash with object storage
2021-09-07 15:16:26 +02:00
Chocobozzz
02b286f890
More robust webtorrent redundancy download
...
Avoid issues with inconsistencies between magnet infohash and torrent
infohash, blocking webtorrent upload that will timeout
2021-09-06 16:19:49 +02:00
Chocobozzz
41fb13c330
esModuleInterop to true
2021-08-27 15:12:22 +02:00
Chocobozzz
0bae66632a
More logs for webtorrent download
2021-08-26 15:19:11 +02:00
Chocobozzz
52b1fd15fa
Better logs for redundancy
2021-08-26 11:02:41 +02:00
Chocobozzz
5a298a5a3d
Better logs for transcoding
2021-08-26 10:01:42 +02:00
Chocobozzz
98ab5dc810
Remove useless async
2021-08-26 10:01:42 +02:00
Chocobozzz
1d1da33661
More robust optimize transcoding job
2021-08-18 10:59:38 +02:00
Chocobozzz
0d4a3c62ab
Set ACL when uploading objects
2021-08-18 09:19:09 +02:00
Chocobozzz
1f6125be8b
Optimize torrent URL update
2021-08-18 09:14:51 +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
18998c45c0
Correctly handle large HLS files for redundancy
2021-08-06 15:25:45 +02:00
Chocobozzz
679c12e69c
Improve target bitrate calculation
2021-08-06 14:13:26 +02:00
Chocobozzz
c826f34a45
Limit live bitrate
2021-08-06 10:39:40 +02:00
Chocobozzz
e83d06a702
Remove deprecated transcoding job names
2021-08-05 14:29:44 +02:00
Chocobozzz
352819ef92
Do not index remote actors
2021-08-05 13:29:55 +02:00
Chocobozzz
d26836cd95
Refactor notifier
2021-08-02 10:39:51 +02:00
Chocobozzz
a892c54a82
Fix oembed for playlists
2021-07-27 17:37:59 +02:00
Chocobozzz
5d0095fde1
Fix build
2021-07-26 16:05:49 +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
83903cb65d
Generate random uuid for video files
2021-07-26 11:29:31 +02:00
Chocobozzz
7a397c7f15
Upgrade server dependencies
2021-07-22 12:01:58 +02:00
Chocobozzz
a24bd1ed41
Merge branch 'next' into develop
2021-07-21 15:51:30 +02:00
Chocobozzz
4d029ef8ec
Add ability for instances to follow any actor
2021-07-21 13:35:31 +02:00
Chocobozzz
c0e8b12e7f
Refactor requests
2021-07-20 15:27:18 +02:00
Chocobozzz
12edc1495a
Introduce comments command
2021-07-20 15:27:18 +02:00
lutangar
dc3d902234
Introduce generic video constant manager for plugins
...
Allow a plugin developer to get back constants values,
and reset constants deletions or additions.
2021-07-16 17:49:40 +02:00
Chocobozzz
c171d85253
Fix webfinger tls only
2021-07-01 17:04:13 +02:00
Chocobozzz
06c2759338
Fix hooks definition
2021-07-01 16:47:14 +02:00
Chocobozzz
9c2e051c56
Handle broken plugin install
2021-06-30 11:45:20 +02:00
Chocobozzz
d4a8e7a65f
Support short uuid for GET video/playlist
2021-06-29 14:56:35 +02:00
Chocobozzz
37a44fc915
Add ability to search playlists
2021-06-25 14:44:01 +02:00
Chocobozzz
33eb19e519
It's not the week-end yet
2021-06-17 17:25:19 +02:00
Chocobozzz
e466544fb9
Fix muxing cleanup
2021-06-17 17:09:58 +02:00
Chocobozzz
52fb1d97ba
Fix prune storage tests
2021-06-17 11:09:54 +02:00
Chocobozzz
609a444202
Fix memory leak
2021-06-17 09:47:41 +02:00
Chocobozzz
c6406f4750
Don't retry UpdateVideosScheduler transactions
2021-06-17 08:51:29 +02:00
Chocobozzz
8ebf2a5d5d
Refactor live manager
2021-06-17 08:47:03 +02:00
Chocobozzz
fd6584844b
Resolve object id from actors too
2021-06-16 10:01:31 +02:00
Chocobozzz
799ece6aae
Add ability to delete previously added constants
2021-06-15 15:18:11 +02:00
Chocobozzz
4c3e4c3d93
Fix lint
2021-06-15 14:19:30 +02:00
Chocobozzz
eae0365b5c
Fix missing transactions
2021-06-15 10:40:06 +02:00
Chocobozzz
e54bd458c1
Remove unnecessary await
2021-06-15 10:40:06 +02:00
Chocobozzz
7500d6c900
Use a global request timeout
2021-06-15 08:21:31 +02:00
Chocobozzz
a9fbc2aaa1
Handle short video links
2021-06-14 16:05:25 +02:00
Chocobozzz
367994c521
Improve captions AP updater
2021-06-14 13:35:52 +02:00
Chocobozzz
fd6a74a835
Refactor schedule update
2021-06-11 14:33:34 +02:00
Chocobozzz
20a206c3d1
Refactor include checks
2021-06-11 14:26:37 +02:00
Chocobozzz
71d4af1efc
Use raw SQL for most of video queries
2021-06-11 14:09:52 +02:00
Chocobozzz
ca4b4b2e55
Fetch directly all video attributes for get API
2021-06-11 09:57:19 +02:00
Chocobozzz
e5dbd5084e
Refactor video query builder
2021-06-10 09:22:58 +02:00
Chocobozzz
57a0a9cde4
Optimize AP video captions update
2021-06-09 16:22:01 +02:00
Chocobozzz
4ead40e776
Cache refresh actor promise
2021-06-09 13:34:40 +02:00
Chocobozzz
bbfdeb3921
Fix actor image update
2021-06-08 18:12:49 +02:00
Chocobozzz
28dfb44b14
Try to speed up AP update transaction
2021-06-08 17:41:48 +02:00
Chocobozzz
9de33c6bd9
Add logs for refresh functions
2021-06-08 16:22:23 +02:00
Chocobozzz
7ffa92d6e4
Log rate AP fetch error as info
...
It's not really a warning, we could have many invalid rates in the
federation
2021-06-08 13:57:08 +02:00
Chocobozzz
318b0bd0c2
Fix "height not divisible by 2" ffmpeg error
2021-06-08 11:28:51 +02:00
Chocobozzz
765b150245
Fix lint
2021-06-08 10:19:04 +02:00
Chocobozzz
ea54cd04c1
Fix video upload with a capitalized ext
2021-06-08 10:01:50 +02:00
Chocobozzz
9cc4b9c61f
Fix process delete promise return
2021-06-07 13:20:08 +02:00
Chocobozzz
91f8f8db97
createThumbnail -> updateThumbnail
2021-06-04 15:45:44 +02:00
Chocobozzz
868fce62f8
fetch -> load
...
avoid confusion with AP fetch functions
2021-06-03 18:10:56 +02:00
Chocobozzz
10363c74c1
Move middleware utils in middlewares
...
helpers modules should not import models
2021-06-03 18:03:36 +02:00