Creating thumbnails from video files with Python

前端 未结 7 1789
陌清茗
陌清茗 2020-12-24 07:48

I need to create thumbnails for a video file once I\'ve uploaded to a webapp running python.

How would I go about this... I need a library that can basically either

7条回答
  •  孤城傲影
    2020-12-24 08:40

    A simple combination of PyMedia and PIL would do the trick for AVI, ASF, or MPEG files. PyMedia lets you extract the frames (using the decoder() routine), while PIL has a simple thumbnail() routine.

提交回复
热议问题