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.
REQ: Flag to get duration of video without downloading #859
Comments
|
You can get the JSON without downloading the video with |
|
Yes, a --get-duration flag would be helpful. I currently use the JSON flag without downloading the video like you suggested, but for repeatedly finding videos of a certain length this method can be time consuming. |
|
ref: #826 |
|
Any updates to this? This is something which will be very helpful. |
|
In youtube-dl 2013.12.16 and newer, you can use the
It is meant for interactive use. In an automated process, you should use
|
The ability to quickly get the duration of the requested video without downloading would be a very helpful feature. Currently, the only way (to my knowledge) to get the video duration is to download a JSON file for the video and parse out the 'duration' entry.