Commit Graph

2890 Commits (cc4bf76c13e38e9065d49161b6e0485657424577)

Author SHA1 Message Date
Chocobozzz 527a52ac42
Add ability to filter out public videos from admin 2021-11-12 14:23:22 +01:00
Chocobozzz 8db19c959e
Remove contributors list from /about/peertube
Some contributors don't want to be associated to a particular peertube
instance
2021-11-12 11:00:51 +01:00
Chocobozzz 3ef5909aec
Fix extendsLocalExpiration for redundancy 2021-11-12 09:02:53 +01:00
Chocobozzz 597f771f3f
Fix video update transaction 2021-11-10 15:52:22 +01:00
Chocobozzz 17ddba4950
Fix thumbnail update 2021-11-10 15:13:56 +01:00
Chocobozzz a2a81f5a7f
Prevent concurrent video update 2021-11-10 14:57:09 +01:00
Chocobozzz 5cf027bdc4
Force video updatedAt update on update 2021-11-10 14:34:02 +01:00
Chocobozzz d78b51aa4e
Fix tests 2021-11-10 14:25:33 +01:00
Chocobozzz 67eeec8b95
Add minimum bitrate limit 2021-11-10 11:04:00 +01:00
Chocobozzz 9390403250
Add ffmpeg tags for ffmpeg logs 2021-11-10 09:53:55 +01:00
Chocobozzz 020d3d3d79
Remove resumable cache after upload success 2021-11-10 09:43:33 +01:00
Chocobozzz d7ce63d3dd
Fix error log of bad import 2021-11-09 15:07:06 +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 dedcd583b2
Fix remote interaction
When we fetch a ressource that is a redirection of another ressource
2021-11-05 14:11:19 +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 8dd754c767
Added 144p encoding (#4492)
* Added 144p encoding

Implements https://github.com/Chocobozzz/PeerTube/issues/4428

* Fixed typo in core-utils

* Increased BitPerPixel for 144p

* Disabled 144p by default in test.yaml

* Another try at fixing tests

* Fixed test in video-transcoder (api-3)

* Fixed test in video-imports (api-4)

* Fixed test in live-constraints (api-2)

* Tried to fix tests in api-3 again

* Revert "Tried to fix tests in api-3 again"

This reverts commit 266e1143fa37f333d149c2c2791c7bd33621ac14.

* Fixed test in config.ts (api-2)

* Try to fix test in video-hls.ts (api-3)

* Fixed test in video-transcoder.ts (api-3)

* Fix tests

Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-11-05 10:23:02 +01:00
Chocobozzz d324756edb
Add ability to filter by file type 2021-11-03 11:32:41 +01:00
Chocobozzz 7e7d8e4853
Some fixes for admin videos list 2021-11-02 11:13:13 +01:00
Chocobozzz 3c10840fa9 Add video file size info in admin videos list 2021-10-29 11:48:21 +02:00
Chocobozzz 2760b454a7 Deprecate filter video query
Introduce include and isLocal instead
2021-10-29 11:48:21 +02: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
Chocobozzz 5842a85424
Remove unnecessary package
https://github.com/standard/standard/issues/1316
2021-10-26 15:08:58 +02:00
Chocobozzz b9fbc17609
Fix lint 2021-10-26 08:37:03 +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 b2ad0090c1
Don't write youtube-dl stdout in log
It's too big
2021-10-25 10:18:41 +02:00
Chocobozzz 0c691a182c
Fix sequelize order typings 2021-10-22 16:40:48 +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 7fb2c60bbe
Remove sync call in logger
Winston already does it
2021-10-22 16:25:16 +02:00
Chocobozzz d1bfbdeb20
Random listen for mocked servers 2021-10-22 14:31:38 +02:00
Chocobozzz 5480933b7f
Add peertube short link import test 2021-10-22 14:25:32 +02:00
Chocobozzz ab4001aade
Provide origin URL to client and fix remote share 2021-10-22 14:11:58 +02:00
Chocobozzz 7f91ecbde4
Completely remove torrent static path 2021-10-22 10:32:53 +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 97b6428af7
Breaking: fix inconsistencies in configuration 2021-10-20 16:29:41 +02:00
Chocobozzz 400043b1be
Add ability to search by URL with query params 2021-10-20 15:26:38 +02:00
Chocobozzz 64553e8809
Add ability to filter logs by tags 2021-10-20 14:33:38 +02:00
Chocobozzz c4c0c31144
Fix my live videos filter 2021-10-20 10:04:06 +02:00
Chocobozzz 978c87e7f5
Add channel filters for my videos/followers 2021-10-20 09:25:44 +02:00
Chocobozzz 906f46d084
Split check user params tests 2021-10-20 09:25:44 +02:00
Chocobozzz 4beda9e12a
Add ability to view my followers 2021-10-20 09:25:44 +02:00
Chocobozzz 9593a78ae1
Refactor sort middlewares 2021-10-20 09:25:44 +02:00
Chocobozzz 27c3c9456d
Increase some timeouts 2021-10-18 10:23:45 +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 b3fc41a165
Fix youtube-dl update with proxy 2021-10-15 08:32:06 +02:00
Chocobozzz 1ffb5fb682
Increase test timeout 2021-10-15 08:23:02 +02:00
Chocobozzz f0ab2aed3d
Fix lint 2021-10-14 14:14:57 +02:00
Chocobozzz 37cd44d04f
Remove deprecated torrent static route 2021-10-14 11:39:06 +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 179bfea5e0
Fix import tests 2021-10-14 09:36:55 +02:00
Chocobozzz 87c0f718dc
Fix benchmark test 2021-10-14 08:30:17 +02:00
Chocobozzz 1cf0df024e
Fix actor follow counts calculation 2021-10-13 16:18:42 +02:00
Chocobozzz f87d82b93d
Fix config test cleanup 2021-10-13 11:52:42 +02:00
Chocobozzz 9db437c815
Process slow followers in unicast job queue 2021-10-13 11:47:32 +02:00
Chocobozzz e81f6ccf98
Fix requests timeout 2021-10-13 09:57:20 +02:00
Chocobozzz ac0725aa88
Increase videos search test before timeout 2021-10-13 09:18:48 +02:00
Chocobozzz 3b3490e41a
Increase HDR timeout import 2021-10-13 09:18:48 +02:00
Chocobozzz d41a380550
Fix check after init script 2021-10-13 08:44:34 +02:00
Chocobozzz 87699a09ce
Add object storage test 2021-10-12 15:36:44 +02:00
Chocobozzz 577280e4c0
Upgrade server tools 2021-10-12 14:34:29 +02:00
Chocobozzz 05c0535df7
Update server dependencies 2021-10-12 14:31:59 +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
Chocobozzz 10ef089102
Merge branch 'release/3.4.0' into develop 2021-10-12 13:50:48 +02:00
kontrollanten c80e458afb
extend client-overrides with default images (#4392)
* extend client-overrides with default images

Add:
* default-playlist.png
* default-avatar-account.png
* default-avatar-videochannel.png

solves #4108

* Rename to default-avatar-video-channel.png

Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-10-12 13:50:40 +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 f7bb2bb5a7
Don't use min FPS, throw instead
Avoir creating a big output from a very low FPS input file
2021-10-12 10:37:25 +02:00
Chocobozzz 9f430a53be
Fix bitrate tests 2021-10-12 09:18:54 +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 e5d9877f06
Simpler ID match 2021-10-11 14:57:53 +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 5773128647
Improve regexp performance 2021-10-11 14:37:35 +02:00
Chocobozzz 1db57e6f96
Fix useless condition 2021-10-11 14:16:31 +02:00
Chocobozzz 4d6952361e
Fix multiple \n in md to plain text 2021-10-11 14:15:42 +02:00
Chocobozzz ab632f438e
Fix channel handle search 2021-10-11 14:12:45 +02:00
Chocobozzz 8bd67ef6af
Remove uneeded language injection
It's already handled by angular build
2021-10-11 14:00:09 +02:00
Chocobozzz d00e9c54f3
Merge branch 'next' into develop 2021-10-11 09:37:30 +02:00
Chocobozzz 37e0a1c055
Increase live tests timeout 2021-10-11 09:37:27 +02:00
Chocobozzz 9db2330e4a
Fix notification on create transcoding job 2021-10-11 09:37:27 +02:00
Chocobozzz 731a32e334
More robust youtube-dl thumbnail import 2021-10-11 09:37:26 +02:00
Chocobozzz e93ee83825
Handle oembed with params in URL 2021-10-11 09:37:26 +02:00
Chocobozzz ab7b4f525b
Remove unused comments 2021-10-11 09:37:26 +02:00
Chocobozzz 93a1e67f86
Fix channel search with complete handle 2021-10-11 09:37:26 +02:00
Chocobozzz 42cc1887af
Stop indexing /about/peertube 2021-10-11 09:37:26 +02:00
Chocobozzz d8fb3a2f0d
Increase live tests timeout 2021-10-08 16:00:41 +02:00
Chocobozzz efa3fef23e
Fix notification on create transcoding job 2021-10-08 15:40:23 +02:00
Chocobozzz f82416cc58
More robust youtube-dl thumbnail import 2021-10-08 15:06:45 +02:00
Chocobozzz 7d786e5c16
Handle oembed with params in URL 2021-10-08 14:49:15 +02:00
Chocobozzz 9da443f374
Remove unused comments 2021-10-08 11:22:22 +02:00
Chocobozzz b0268e27e1
Fix channel search with complete handle 2021-10-08 11:15:06 +02:00
Chocobozzz 655c957cc3
Stop indexing /about/peertube 2021-10-08 11:06:40 +02:00
Chocobozzz 89ac282e04
Fix embed api 2021-09-10 15:53:33 +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 afe501a6cd
Fix client tests 2021-09-09 09:47:59 +02:00
Chocobozzz 790c2837dd
Fix silent 500 after resumable upload 2021-09-09 09:35:30 +02:00
Chocobozzz b4c945f3c7
Fix config injection with custom HTML/CSS 2021-09-09 09:13:45 +02:00
Chocobozzz 414f77c8d8
Don't force youtube-dl host 2021-09-08 16:55:42 +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 23fdb0ff38
Add latin to languages 2021-09-07 09:05:57 +02:00
Chocobozzz 61e9908c31
Increase timeout 2021-09-07 08:33:58 +02:00
Chocobozzz ddd677e4fd
Remove unused timeout option 2021-09-07 08:33:51 +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 70430c2796
Wait mock server termination 2021-09-06 08:13:11 +02:00
Chocobozzz f4e75a6fd0
Increase contact form tests timeout 2021-09-02 09:11:51 +02:00
Chocobozzz 3419e0e1fe
Migrate to webdriverio 2021-09-01 15:06:46 +02:00
Chocobozzz f2e31d589c
Fix pending job table migration 2021-08-30 16:28:36 +02:00
Chocobozzz fcf9ae8aa6
Reduce 4k transcode test time 2021-08-30 10:38:50 +02:00
Chocobozzz e4671228c8
Fix ws import 2021-08-30 09:47:17 +02:00
Chocobozzz e874edd9f8
forceConsistentCasingInFileNames to true 2021-08-30 09:37:18 +02:00
Chocobozzz e3c9ea7226
Add peertube import test 2021-08-27 16:21:19 +02:00
Chocobozzz 41fb13c330
esModuleInterop to true 2021-08-27 15:12:22 +02:00
Chocobozzz 8f58172565
Allow accounts to skip account setup modal 2021-08-27 10:15:55 +02:00
Chocobozzz e111a5a3a1
Don't throw when there is no error 2021-08-26 15:51:37 +02:00
Chocobozzz 095094872a
Remove too much log for webtorrent download 2021-08-26 15:28:51 +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 7b6cf83e33
Fix redundancy remove on host redundancy update 2021-08-26 10:01:42 +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 851675c559
Rename jobs list command 2021-08-26 10:01:42 +02:00
smilekison 8729a87024
Support proxies for PeerTube (#4346)
* Updated with latest code

* Updated Support proxies for PeerTube

* Support Proxies for PeerTube (Updated with change request)

* Cleanup proxy PR

Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-08-25 15:08:37 +02:00
Ms Kimsible 4e1592daa4
Alert user for low quota and video auto-block on upload page (#4336)
* Replace wording of instance contact

* Add contact-us button to no-quota alert on upload page

* Add alert for accounts with auto-blocked videos on upload page

* Add alert for accounts without enough quota + refacto on upload page

* Using ng-container and ng-template

* Add alert for daily quota

* Add hook filter for upload page alert messages

* Add instance name as subtitle in contact modal

* Fix eslint max-len on  string

* Fix missing word in quota left daily message - upload page

Co-authored-by: Kimsible <kimsible@users.noreply.github.com>
2021-08-25 11:38:10 +02:00
Chocobozzz e5d3e0c79d
Fix object storage migration
It's too long on big instances
2021-08-19 09:27:14 +02:00
Chocobozzz 586a7478b6
Fix caption log 2021-08-18 11:25:08 +02:00
Chocobozzz 1d1da33661
More robust optimize transcoding job 2021-08-18 10:59:38 +02:00
Chocobozzz cbb1d46b91
Fix hls tests 2021-08-18 10:02:48 +02:00
Chocobozzz f645af4396
Remove useless condition 2021-08-18 09:33:48 +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 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 5b075bc549
Fix search index tests 2021-08-11 11:49:01 +02:00
Chocobozzz 31aa391d13
Update server dependencies 2021-08-11 11:49:00 +02:00
Chocobozzz 18998c45c0
Correctly handle large HLS files for redundancy 2021-08-06 15:25:45 +02:00
Chocobozzz 7942e72e38
Fix cli build 2021-08-06 14:39:28 +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 45570e9397
Fix upload without files 2021-08-05 14:24:03 +02:00
Chocobozzz 27db78400c
Fix backend channel name validator consistency 2021-08-05 13:54:35 +02:00