aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/fixtures/peertube-plugin-test-transcoding-one/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/fixtures/peertube-plugin-test-transcoding-one/main.js')
-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}