我如何过滤 Youtube 视频以仅包含具有特定时长的元素?

How could I filter Youtube videos for include only elements with specific lenght duration?

根据 Youtube API 数据,要按长度过滤视频,您建议以这种方式使用参数 duration

short – Only include videos that are less than four minutes long.
medium – Only include videos that are between four and 20 minutes long (inclusive).
long – Only include videos longer than 20 minutes

有没有其他方法可以使用 Youtube API 来过滤特定时间的视频?假设包括 2 分钟之间的所有元素。和 10 分钟。

是的,您可以使用 avconv 库分割来自任何 url 的视频。

https://libav.org/avconv.html