aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/fixtures/peertube-plugin-test-transcoding-one
diff options
context:
space:
mode:
authorThéo Le Calvar <tlc@kher.nl>2021-04-06 15:12:38 +0200
committerChocobozzz <chocobozzz@cpy.re>2021-04-09 15:53:18 +0200
commitd2351bcfd4cfed4b728df170593e0c6b66aa6762 (patch)
treefa5748dce3a9d42972aea3642826732a19188cda /server/tests/fixtures/peertube-plugin-test-transcoding-one
parentd5fc35c24d496b097dbe222db53355cc339d8606 (diff)
downloadPeerTube-d2351bcfd4cfed4b728df170593e0c6b66aa6762.tar.gz
PeerTube-d2351bcfd4cfed4b728df170593e0c6b66aa6762.tar.zst
PeerTube-d2351bcfd4cfed4b728df170593e0c6b66aa6762.zip
add tests for inputOptions and videoFilters in trancode plugins
Diffstat (limited to 'server/tests/fixtures/peertube-plugin-test-transcoding-one')
-rw-r--r--server/tests/fixtures/peertube-plugin-test-transcoding-one/main.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/server/tests/fixtures/peertube-plugin-test-transcoding-one/main.js b/server/tests/fixtures/peertube-plugin-test-transcoding-one/main.js
index 5990ce1ce..366b827a9 100644
--- a/server/tests/fixtures/peertube-plugin-test-transcoding-one/main.js
+++ b/server/tests/fixtures/peertube-plugin-test-transcoding-one/main.js
@@ -13,6 +13,30 @@ async function register ({ transcodingManager }) {
13 } 13 }
14 14
15 { 15 {
16 const builder = () => {
17 return {
18 videoFilters: [
19 'fps=10'
20 ]
21 }
22 }
23
24 transcodingManager.addVODProfile('libx264', 'video-filters-vod', builder)
25 }
26
27 {
28 const builder = () => {
29 return {
30 inputOptions: [
31 '-r 5'
32 ]
33 }
34 }
35
36 transcodingManager.addVODProfile('libx264', 'input-options-vod', builder)
37 }
38
39 {
16 const builder = (options) => { 40 const builder = (options) => {
17 return { 41 return {
18 outputOptions: [ 42 outputOptions: [
@@ -23,8 +47,21 @@ async function register ({ transcodingManager }) {
23 47
24 transcodingManager.addLiveProfile('libx264', 'low-live', builder) 48 transcodingManager.addLiveProfile('libx264', 'low-live', builder)
25 } 49 }
50
51 {
52 const builder = () => {
53 return {
54 inputOptions: [
55 '-r 5'
56 ]
57 }
58 }
59
60 transcodingManager.addLiveProfile('libx264', 'input-options-live', builder)
61 }
26} 62}
27 63
64
28async function unregister () { 65async function unregister () {
29 return 66 return
30} 67}