简体   繁体   English

如何使用Python从视频创建缩略图

[英]How to create thumbnail from videos using Python

My video formats are jpeg,yuy2 etc.Need to convert into thumbnails. 我的视频格式是jpeg,yuy2等。需要转换为缩略图。 Is there a default size for thumbnail. 缩略图有默认尺寸吗?

You can use ffmpeg to work with videos (converting, thumbnail creation, ...). 您可以使用ffmpeg处理视频(转换,缩略图创建等)。 There is a good package to work with ffpmeg in python named python-video-converter . 在python中有一个很好的软件包可以与ffpmeg一起使用,名为python-video-converter You can have control over each parameter using ffmpeg. 您可以使用ffmpeg控制每个参数。 Also using great Pillow package on python, you can manipulate images easily. 同样在python上使用出色的Pillow软件包,您可以轻松地操作图像。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM