You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, is it possible to improve the fetch speed for video information in the following call somehow?
var res = await ytdl.RunVideoDataFetch("https://www.youtube.com/watch?v=_QdPW8JrYzQ");
I was wondering if you could limit the information you want to get.
For example, you wand just search for the title, thumbnail and the format list of a single video.
The text was updated successfully, but these errors were encountered:
Hey, I think improving the speed of video information fetching would mainly happen on the yt-dlp side as it is responsible for extracting & parsing the video information and passing it in json format. RunVideoDataFetch() uses yt-dlp's --dump-json for fetching video information, which always returns the full data. I'm not aware of an option that extracts & returns partial data to make it faster. Let me know if you have any suggestions regarding this though.
Getting the same information using RunVideoDataFetch takes about 3.2 seconds - so yeah, it sounds like the delay is in the yt-dlp.exe processing/parsing.
You can limit the data returned using yt-dlp.exe by specifying the output, but it is not any faster. Example::
And you will see it still takes about 3 seconds so I'm guessing it's doing the same thing as the full fetch, but only printing what you asked for (but not in JSON - just text).
Hi, is it possible to improve the fetch speed for video information in the following call somehow?
var res = await ytdl.RunVideoDataFetch("https://www.youtube.com/watch?v=_QdPW8JrYzQ");
I was wondering if you could limit the information you want to get.
For example, you wand just search for the title, thumbnail and the format list of a single video.
The text was updated successfully, but these errors were encountered: