aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/doc/plugins
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-09 10:36:21 +0200
committerChocobozzz <chocobozzz@cpy.re>2021-04-09 15:53:18 +0200
commit3e03b961b8ab897500dfea626f808c009f64e551 (patch)
treebfde6c71a4a63b77fe94536149d0b68cf02110c9 /support/doc/plugins
parentd2351bcfd4cfed4b728df170593e0c6b66aa6762 (diff)
downloadPeerTube-3e03b961b8ab897500dfea626f808c009f64e551.tar.gz
PeerTube-3e03b961b8ab897500dfea626f808c009f64e551.tar.zst
PeerTube-3e03b961b8ab897500dfea626f808c009f64e551.zip
Add ability for plugins to specify scale filter
Diffstat (limited to 'support/doc/plugins')
-rw-r--r--support/doc/plugins/guide.md7
1 files changed, 0 insertions, 7 deletions
diff --git a/support/doc/plugins/guide.md b/support/doc/plugins/guide.md
index 331813e4f..ea33b8d9f 100644
--- a/support/doc/plugins/guide.md
+++ b/support/doc/plugins/guide.md
@@ -328,8 +328,6 @@ function register (...) {
328Adding transcoding profiles allow admins to change ffmpeg encoding parameters and/or encoders. 328Adding transcoding profiles allow admins to change ffmpeg encoding parameters and/or encoders.
329A transcoding profile has to be chosen by the admin of the instance using the admin configuration. 329A transcoding profile has to be chosen by the admin of the instance using the admin configuration.
330 330
331Transcoding profiles used for live transcoding must not provide any `videoFilters`.
332
333```js 331```js
334async function register ({ 332async function register ({
335 transcodingManager 333 transcodingManager
@@ -346,9 +344,6 @@ async function register ({
346 // All these options are optional and defaults to [] 344 // All these options are optional and defaults to []
347 return { 345 return {
348 inputOptions: [], 346 inputOptions: [],
349 videoFilters: [
350 'vflip' // flip the video vertically
351 ],
352 outputOptions: [ 347 outputOptions: [
353 // Use a custom bitrate 348 // Use a custom bitrate
354 '-b' + streamString + ' 10K' 349 '-b' + streamString + ' 10K'
@@ -364,7 +359,6 @@ async function register ({
364 359
365 // And/Or support this profile for live transcoding 360 // And/Or support this profile for live transcoding
366 transcodingManager.addLiveProfile(encoder, profileName, builder) 361 transcodingManager.addLiveProfile(encoder, profileName, builder)
367 // Note: this profile will fail for live transcode because it specifies videoFilters
368 } 362 }
369 363
370 { 364 {
@@ -401,7 +395,6 @@ async function register ({
401 const builder = () => { 395 const builder = () => {
402 return { 396 return {
403 inputOptions: [], 397 inputOptions: [],
404 videoFilters: [],
405 outputOptions: [] 398 outputOptions: []
406 } 399 }
407 } 400 }