通过 YouTube 数据 API 确定视频编解码器? [英] Determining video codec via YouTube data API?
问题描述
是否可以通过 YouTube 数据 API 确定特定 youtube 视频是使用 H.264 还是 FLV 编码的?如果是这样,如何?
Is it possible to determine whether a particular youtube video is encoded with H.264 or FLV through the YouTube data API? If so, how?
我可以开始下载文件并检查视频流的编码方式(当然是通过编程方式),但我想使用 YouTube 数据 API 来避免所有这些开销.
I can start a file download and check how the video stream was encoded (programmatically, of course), but I'd like to use the YouTube data API to avoid all that overhead.
推荐答案
这是不可能的,除非您正在做一些有问题的事情(关于 YouTube 的 API TOS),否则您永远不需要这样做;)
This isn't possible, and you shouldn't ever need to do this unless you are doing something questionable (with regards to YouTube's API TOS) ;)
如果您提供有关您正在尝试做的事情的更多详细信息,也许还有其他解决方案?
If you give more details about what you are trying to do, perhaps there's another solution?
这篇关于通过 YouTube 数据 API 确定视频编解码器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!