aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-01-18 11:40:31 +0100
committerChocobozzz <me@florianbigard.com>2021-01-18 11:40:31 +0100
commita8a63b1ffe3780615c1dba6b4d776535a0e3a83d (patch)
tree418fdcb17f37c845593dc9c4d723a70f4c14c0ad
parent1d22d2514f7be14d51ed2ab78e13df5da2646546 (diff)
downloadPeerTube-a8a63b1ffe3780615c1dba6b4d776535a0e3a83d.tar.gz
PeerTube-a8a63b1ffe3780615c1dba6b4d776535a0e3a83d.tar.zst
PeerTube-a8a63b1ffe3780615c1dba6b4d776535a0e3a83d.zip
Fix youtube-dl format fallback
-rw-r--r--server/helpers/youtube-dl.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/helpers/youtube-dl.ts b/server/helpers/youtube-dl.ts
index ebb788e8e..23982d528 100644
--- a/server/helpers/youtube-dl.ts
+++ b/server/helpers/youtube-dl.ts
@@ -126,7 +126,8 @@ function getYoutubeDLVideoFormat () {
126 `bestvideo[vcodec!*=av01][vcodec!*=vp9.2][height=${resolution}]+bestaudio`, // case #2 126 `bestvideo[vcodec!*=av01][vcodec!*=vp9.2][height=${resolution}]+bestaudio`, // case #2
127 `bestvideo[vcodec^=avc1][height<=${resolution}]+bestaudio[ext=m4a]`, // case #3 127 `bestvideo[vcodec^=avc1][height<=${resolution}]+bestaudio[ext=m4a]`, // case #3
128 `bestvideo[vcodec!*=av01][vcodec!*=vp9.2]+bestaudio`, 128 `bestvideo[vcodec!*=av01][vcodec!*=vp9.2]+bestaudio`,
129 'best[vcodec!*=av01][vcodec!*=vp9.2]' // case fallback 129 'best[vcodec!*=av01][vcodec!*=vp9.2]', // case fallback for known formats
130 'best' // Ultimate fallback
130 ].join('/') 131 ].join('/')
131} 132}
132 133