distubejs / ytdl-core

YouTube video downloader in javascript.
MIT License
206 stars 43 forks source link

itag 270/312 is not VP9 but H.264 #67

Closed plasma119 closed 1 month ago

plasma119 commented 1 month ago

Describe the bug

Some videos has a 1080p "VP9" codec with itag 270/312 but actually is 1080p H.264, although using ytdl.chooseFormat with codec === vp9 does not include this format

itag 312 https://www.youtube.com/watch?v=SXb5KkZahkk https://www.youtube.com/watch?v=7ekZL8lco-w

itag 270 https://www.youtube.com/watch?v=ZI3ygHZOSDc

Also found this list of itag which does show those are H.264 codec https://gist.github.com/MartinEesmaa/2f4b261cb90a47e9c41ba115a011a4aa

Environment