Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevenjoezhang/video-thumbnail
生成视频缩略图(CSS Sprite) | Creating video thumbnails with ffmpeg and python
https://github.com/stevenjoezhang/video-thumbnail
ffmpeg python thumbnail-images
Last synced: 3 months ago
JSON representation
生成视频缩略图(CSS Sprite) | Creating video thumbnails with ffmpeg and python
- Host: GitHub
- URL: https://github.com/stevenjoezhang/video-thumbnail
- Owner: stevenjoezhang
- License: gpl-3.0
- Created: 2018-04-28T02:40:38.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T20:23:36.000Z (about 1 year ago)
- Last Synced: 2023-12-15T22:15:53.877Z (about 1 year ago)
- Topics: ffmpeg, python, thumbnail-images
- Language: Python
- Homepage:
- Size: 688 KB
- Stars: 12
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Video Thumbnail
基于 ffmpeg 和 Python3 创建视频在不同时间的截图,并将它们合成一张缩略图。
Creating video thumbnails, based on ffmpeg and Python (support Python3 only).## Requirements
Python3 and ffmpeg is required. You can use `apt`, `yum` or `brew` to install them.
## Install
```bash
# Clone this repository
git clone https://github.com/stevenjoezhang/video-thumbnail.git
# Go into the repository
cd video-thumbnail
```## Usage
```bash
python3 run.py /path/to/example.mp4
```
or```bash
bash run.sh /path/to/example.mp4
```You may edit the files yourself. For example, you can change the value of `width_i` in `image.py`.
## Credits
* [Mimi](https://zhangshuqiao.org) Developer of this project.
## License
Released under the GNU General Public License v3
http://www.gnu.org/licenses/gpl-3.0.html## Todo
Use https://github.com/kkroening/ffmpeg-python
## Demo
![](sample.jpg)