开发者

Generate thumbnail for video on external site

开发者 https://www.devze.com 2023-04-12 06:58 出处:网络
I have a lot of external links from users, and I need to scrap somehow the video content and generate thumbnail for it to display on my site.

I have a lot of external links from users, and I need to scrap somehow the video content and generate thumbnail for it to display on my site.

I know this is a simple task with django-oembed, but the list of providers is limited. I need to support sites without oembed too.

So the main task is to determine if p开发者_开发问答age contains the video or no, and generate thumbnail for it.

Can anybody suggest the best way?


You can use Pymedia to extract a frame from the video and PIL to create the thumbnail like suggested here

0

精彩评论

暂无评论...
验证码 换一张
取 消