* Filter recommendation policy
This commit adds a new option attached to a video, that allows to chose
which kind of recommendation will appear below it in the viewer.
It currently allows four setups:
- Any video (same as currently)
- Local videos only
- Owner videos only
- Same channel videos only
This allows the user who owns the video to restrict the recommendations
associated to his videos.
* Remove old recommendation strategy endpoints
* Add tests
Tests for the recommendation feature
* Add a stateless /api/v1/recommendations/videos route
The route accepts a strategy and (optionnally) video ID as query params,
and returns a list of recommentations associated to the video and
matching the strategy
* Add stateless recommendation endpoint: client part
* Add an admin-configurable default strategy
* Add Federation recommendation strategy information
* User import/export settings
* Translate changes to French
* Use scope instead of strategy for recommendations
---------
Co-authored-by: Chocobozzz <[email protected]>
Only for a few routes, that consumes postgresql CPU
Re-implement sequelize connection routing mechanism, to support:
* Replica lag monitoring (to not select replicas that are too far
behind the primary)
* Be opt-in instead of opt-out (primary is used by default, a context
must be marked to use replicas)
* Handle "read-you-writes" mechanism (ensure that reads after writes
see the latest data, using the user ID to track recent writes)
* initial commit for filters
* lint fix
* lint update .5 -> 0.5
* Use same behaviour as user video language settings
* Reorganize content filters and settings
---------
Co-authored-by: Chocobozzz <[email protected]>
* Keep the 3D packing of videos that declare it in their container
A video with the packing declared in its container lost it in the web video and HLS files: the copy path writes an MP4 without it (seen with Matroska's StereoMode; the check reads the stream's stereo side data, so MP4's st3d box goes the same way), and libx264 only writes the frame packing SEI for the left eye first, as FFmpeg tells it "Inverted mode is not supported by x264".
Do not copy such a video, so that libx264 writes the SEI from the packing of the input, and when the right eye comes first put the left eye first with the stereo3d filter and give the packing to libx264 as frame-packing (the frames keep the inverted side data otherwise, and libx264 would drop the packing again).
Assisted-by: Claude Sonnet via Claude Code
* Handle rotation and move 3d to transcoding profile
---------
Co-authored-by: Chocobozzz <[email protected]>
Add an `onLocalVideo` query parameter to the video comments feed to
only list comments made on local (or remote) videos.
Signed-off-by: Thomas Citharel <[email protected]>
* Add ability to disable audit logs
Add a `log.audit.enabled` configuration option, mirroring the existing
`log.rotation.enabled` shape.
The guard lives in `auditLoggerWrapper`, which every `create`/`update`/
`delete` audit call routes through, so the 13 `auditLoggerFactory`
consumers need no change.
Closes#2686
* Add sort option to channel miniature markup
* Styling
---------
Co-authored-by: Chocobozzz <[email protected]>
Mirroring a big video could not take longer than 3 hours, and the HLS
download budget was taken from `import.videos.timeout`, so raising it to
let a mirror finish also changed video import behaviour.
Add `redundancy.videos.timeout`, feeding both the `video-redundancy` job
TTL and the HLS download budget, the same way `import.videos.timeout`
already feeds `video-import`.
Closes#5519
Simplifications:
* object_storage.enabled is now the only switch, and check at startup
bucket connection
* secondaries no longer adopt the storage directories of the primary
Add remote files caching in a dedicated bucket so secondaries can lazy
static serve them
Publish the youtube-dl cookies file through Redis to support it in
secondaries
Change nginx behaviour using an denylist to secondaries (instead of an
allowlist)