Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Change transcoding default conf options

Chocobozzz1125c40a32cf
diff --git a/config/default.yaml b/config/default.yaml
index 0d0e788dd8..3243d016d6 100644
--- a/config/default.yaml
+++ b/config/default.yaml
@@ -61,14 +61,14 @@ user:
# In addition, if some resolutions are enabled the mp4 video file will be transcoded to these new resolutions.
# Uses a lot of CPU and increases storage!
transcoding:
- enabled: false
+ enabled: true
threads: 2
resolutions: # Only created if the original video has a higher resolution
- 240p: true
- 360p: true
- 480p: true
- 720p: true
- 1080p: true
+ 240p: false
+ 360p: false
+ 480p: false
+ 720p: false
+ 1080p: false
instance:
name: 'PeerTube'
diff --git a/config/production.yaml.example b/config/production.yaml.example
index 0b15c7b960..b43d778e1b 100644
--- a/config/production.yaml.example
+++ b/config/production.yaml.example
@@ -61,14 +61,14 @@ user:
# If enabled, the video will be transcoded to mp4 (x264) with "faststart" flag
# Uses a lot of CPU!
transcoding:
- enabled: false
+ enabled: true
threads: 2
resolutions: # Only created if the original video has a higher resolution
- 240p: true
- 360p: true
- 480p: true
- 720p: true
- 1080p: true
+ 240p: false
+ 360p: false
+ 480p: false
+ 720p: false
+ 1080p: false
instance:
name: 'PeerTube'
diff --git a/config/test.yaml b/config/test.yaml
index efca85aff4..b830a42e7d 100644
--- a/config/test.yaml
+++ b/config/test.yaml
@@ -25,3 +25,9 @@ signup:
transcoding:
enabled: true
threads: 2
+ resolutions:
+ 240p: true
+ 360p: true
+ 480p: true
+ 720p: true
+ 1080p: true