Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
How youtube-dl extracts (knows) frames per secont (fps) from Youtube video? #11758
Comments
|
Two places:
|
|
What do you think under "Youtube provide metadata" in this case? On which webpage? May you be please more specific? |
|
In most cases the info is in https://www.youtube.com/watch?v=[video_id]&gl=US&hl=en&has_verified=1&bpctr=9999999999. In some cases they are in DASH manifests. URLs to DASH manifests are dynamically generated by YouTube. Use --dump-pages to get real URLs for them. |
|
OK, still pretty technical answer but I helped me to make everything clean. Thank you! |
Hi, this is not an issue, this is a question:
How
youtube-dlknows which video format (possible video link) hasframes per second(fps)? How it does get the info?In
_formatsarray, there's nofpscol, or, better say, just few formats hasfpsdefined: 298, 299, 302, 303, 308, 315 (60 fps). In final json, some video formats has defined fps (format 278 has 13 fps, format 242 has 25 fps) and some has emptyfpsvalue.I found out this piece of code:
Can somebody explain me how
youtube-dlextract info about number of video frames?