YouTube Importer fails to import 1080p versions of the videos
Summary
The YouTube Importer doesn't transcode 1080p videos
Steps to reproduce
Just import a 1080p video
Platform information
All
What is the current bug behavior?
First problem:
We're trying to get 1080p format from streamingData
but those are in adaptiveFormats
Second problem: adaptive formats have separete video and audio streams, so we need to merge them using ffmpeg
Third problem: We're expecting itag 37 for 1080p, but there's also several. e.g: 137 is normal 30fps 1080p, and 299 is the 60fps version. After testing I noticed that if you have, let's say, 1080p 60fps, YouTube provides you the 30fps link too, but it won't work (links return 404 response code). I haven't yet tested if this same behaviour happens with HDR versions too.
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)