aboutsummaryrefslogtreecommitdiffhomepage
path: root/support
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-09 15:31:09 +0200
committerChocobozzz <chocobozzz@cpy.re>2021-04-09 15:53:18 +0200
commita60696ab185406700a5277edae54016b0add7b89 (patch)
tree5a2b4a813af3afe02251551147033f9f903dbb34 /support
parent3e03b961b8ab897500dfea626f808c009f64e551 (diff)
downloadPeerTube-a60696ab185406700a5277edae54016b0add7b89.tar.gz
PeerTube-a60696ab185406700a5277edae54016b0add7b89.tar.zst
PeerTube-a60696ab185406700a5277edae54016b0add7b89.zip
Add scale filter to documentation
Diffstat (limited to 'support')
-rw-r--r--support/doc/plugins/guide.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/support/doc/plugins/guide.md b/support/doc/plugins/guide.md
index ea33b8d9f..e30d95fc9 100644
--- a/support/doc/plugins/guide.md
+++ b/support/doc/plugins/guide.md
@@ -341,9 +341,16 @@ async function register ({
341 const streamString = streamNum ? ':' + streamNum : '' 341 const streamString = streamNum ? ':' + streamNum : ''
342 342
343 // You can also return a promise 343 // You can also return a promise
344 // All these options are optional and defaults to [] 344 // All these options are optional
345 return { 345 return {
346 scaleFilter: {
347 // Used to define an alternative scale filter, needed by some encoders
348 // Default to 'scale'
349 name: 'scale_vaapi'
350 },
351 // Default to []
346 inputOptions: [], 352 inputOptions: [],
353 // Default to []
347 outputOptions: [ 354 outputOptions: [
348 // Use a custom bitrate 355 // Use a custom bitrate
349 '-b' + streamString + ' 10K' 356 '-b' + streamString + ' 10K'