I want to check for the available resolutions over the api call when I am retrieving the video details against their video ids (e.g – Im69kzhpR3I[youtube] or 64765355[vimeo]). See My Application searches videos against a keyword. I am using youtube Data API’s search/list
endpoint & vimeo’s videos
endpoint. I want to get the available resolutions during these calls if possible.
I am using Youtube-Dl library with Youtube-Dl working on back. I could use the youtube-Dl directly on shell. But this library was pretty convenient. What my problem is that the library disabled the --list-formats
parameter so can’t check before downloading using youtube-dl. so I want to fetch the available options prior & then pick one which I will provide to the library.
Advertisement
Answer
** Update:
Well My patience outran.. ended up fetching the best possible mp4 based format through the --list-formats
through exec()
.