Force vp9 encoder (Very good)
This commit is contained in:
parent
ab9ef8f46e
commit
ceb9403b32
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ expressManager.app.get("/download", async (req, res) => {
|
||||||
while (videoFormat == undefined) {
|
while (videoFormat == undefined) {
|
||||||
for (let i = 0; i < info.formats.length; i++) {
|
for (let i = 0; i < info.formats.length; i++) {
|
||||||
const format = info.formats[i];
|
const format = info.formats[i];
|
||||||
if (format.hasVideo && !format.hasAudio && format.height && format.height.toString() == qualityLabel.toString()) {
|
if (format.hasVideo && !format.hasAudio && format.height && format.height.toString() == qualityLabel.toString() && (format.videoCodec.includes("vp9") || format.codecs.includes("vp9"))) {
|
||||||
videoFormat = format
|
videoFormat = format
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue