diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-22 08:46:55 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-22 08:55:14 +0200 |
commit | 13e13377918b65c30b9334920fef4b43e70b964e (patch) | |
tree | a2e01e845d32663cbf4dbe1fd4be7f3fcf4244db /server/tests/fixtures | |
parent | 7c94e1e7b61e9d3cff4a98a90bbad8d85bfc145d (diff) | |
download | PeerTube-13e13377918b65c30b9334920fef4b43e70b964e.tar.gz PeerTube-13e13377918b65c30b9334920fef4b43e70b964e.tar.zst PeerTube-13e13377918b65c30b9334920fef4b43e70b964e.zip |
Speed up plugin transcoding tests
Diffstat (limited to 'server/tests/fixtures')
-rw-r--r-- | server/tests/fixtures/peertube-plugin-test-transcoding-one/main.js | 7 | ||||
-rw-r--r-- | server/tests/fixtures/video_very_short_240p.mp4 | bin | 0 -> 9352 bytes |
2 files changed, 3 insertions, 4 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 59b136947..c4ae777f5 100644 --- a/server/tests/fixtures/peertube-plugin-test-transcoding-one/main.js +++ b/server/tests/fixtures/peertube-plugin-test-transcoding-one/main.js | |||
@@ -18,12 +18,12 @@ async function register ({ transcodingManager }) { | |||
18 | const builder = (options) => { | 18 | const builder = (options) => { |
19 | return { | 19 | return { |
20 | outputOptions: [ | 20 | outputOptions: [ |
21 | '-r:' + options.streamNum + ' 5' | 21 | '-r:' + options.streamNum + ' 50' |
22 | ] | 22 | ] |
23 | } | 23 | } |
24 | } | 24 | } |
25 | 25 | ||
26 | transcodingManager.addLiveProfile('libx264', 'low-live', builder) | 26 | transcodingManager.addLiveProfile('libx264', 'high-live', builder) |
27 | } | 27 | } |
28 | } | 28 | } |
29 | 29 | ||
@@ -45,7 +45,7 @@ async function register ({ transcodingManager }) { | |||
45 | const builder = () => { | 45 | const builder = () => { |
46 | return { | 46 | return { |
47 | inputOptions: [ | 47 | inputOptions: [ |
48 | '-r 5' | 48 | '-r 50' |
49 | ] | 49 | ] |
50 | } | 50 | } |
51 | } | 51 | } |
@@ -82,7 +82,6 @@ async function register ({ transcodingManager }) { | |||
82 | } | 82 | } |
83 | } | 83 | } |
84 | 84 | ||
85 | |||
86 | async function unregister () { | 85 | async function unregister () { |
87 | return | 86 | return |
88 | } | 87 | } |
diff --git a/server/tests/fixtures/video_very_short_240p.mp4 b/server/tests/fixtures/video_very_short_240p.mp4 new file mode 100644 index 000000000..95b6be92a --- /dev/null +++ b/server/tests/fixtures/video_very_short_240p.mp4 | |||
Binary files differ | |||