Is it possible to fetch some key-frames of a video by using the HTTP Range header

十年热恋 提交于 2021-01-29 08:29:16

问题


I've read the SO problem , and it seems not applying to my specific case.

Is it possible to fetch some key-frames of a video from web server by the HTTP Range header? For example, for a 30 seconds duration video, we'd like to analysis the I-frame around 00:00:02, 00:00:15, 00:00:28.

I need to analysis the videos from internal web server to detect if there's specific watermarks in it and some other analysis.

Since the first I-frame might be invalid sometimes(Logo for example), we were planning to extract the I-frame from the 00:00:02, the middle I-frame, and the last 2nd second I-frame.

For example, for a 30 seconds duration video, we'd like to analysis the I-frame around 00:00:02, 00:00:15, 00:00:28.

We could make it works while download the whole video, since most of the data we downloaded from the server are not being used. I was wondering if maybe we could only use the HTTP Range header to download partial data and analysis it?

来源:https://stackoverflow.com/questions/65209408/is-it-possible-to-fetch-some-key-frames-of-a-video-by-using-the-http-range-heade

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!