Switch vp9 to avc

This commit is contained in:
bingus_violet 2024-09-15 14:49:35 -05:00
parent 89fac8e35f
commit 6970f4a718
2 changed files with 3 additions and 2 deletions

View file

@ -43,7 +43,8 @@ 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() && (format.videoCodec.includes("vp9") || format.codecs.includes("vp9"))) { if (format.hasVideo && !format.hasAudio && format.height && format.height.toString() == qualityLabel.toString() && (format.videoCodec.includes("avc1") || format.codecs.includes("avc1"))) {
// console.log(format.videoCodec)
videoFormat = format videoFormat = format
continue continue
} }

View file

@ -73,7 +73,7 @@
<br> <br>
<h2>Most recent change</h2> <h2>Most recent change</h2>
<p>Should now only downloading formats with the vp9 format. This means that most software (namely premiere pro) should be compatible with ALL videos. Please let me know if for some reason it fails to downlaod now!!! <p>Should now only downloading formats with the avc1 codec. This means that most software (namely premiere pro) should be compatible with ALL videos. Please let me know if for some reason it fails to downlaod now!!!
<br><br> <br><br>
I first attempted to fix this issue 8 months ago. I have been trying to fix this for 8 months. It was fixed by appending something to an if statement. <br>I hate my life.</p> I first attempted to fix this issue 8 months ago. I have been trying to fix this for 8 months. It was fixed by appending something to an if statement. <br>I hate my life.</p>
<h2>Status of the beta</h2> <h2>Status of the beta</h2>