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?
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.
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?