视频与png图片之间的转换
Project description
安装
pip install l0n0lvedio2image
介绍
本工具需要在命令行中使用
将视频转换为png图片
usage: l0n0lvedio2img [-h] [-f FPS] vedio_path image_path
positional arguments:
vedio_path 视频路径
image_path 输出图片的路径
optional arguments:
-h, --help show this help message and exit
-f FPS, --fps FPS 每多少帧输出一次
例如:
l0n0lvedio2img vedio.mp4 ./outimg -f 5
执行完毕后,会在./outimg文件夹下生成视频每5帧的png图片
将图片转换为mp4(h.264)视频
usage: l0n0limg2vedio [-h] [-f FPS] image_path vedio_path
positional arguments:
image_path 图片目录
vedio_path 目标视频文件名
optional arguments:
-h, --help show this help message and exit
-f FPS, --fps FPS 视频的帧率
例如:
l0n0limg2vedio ./outimg vedio2.mp4 -f 5
执行完毕后,将会读取./outimg文件夹下图片, 按照文件名排序, 然后按照每5帧一张图,生成视频
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file l0n0lvedio2image-1.0.4.tar.gz
.
File metadata
- Download URL: l0n0lvedio2image-1.0.4.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c32dd7bb33b64f73df09f01290e79031f45cb7e01061091707aadf00f771c67 |
|
MD5 | 167f228307fab4611f0b648dc42304d7 |
|
BLAKE2b-256 | 38f5d5d100832394933f7a4c3f6f7a83675aaa27d5e020a76e9cffbefdca1518 |
File details
Details for the file l0n0lvedio2image-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: l0n0lvedio2image-1.0.4-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60e08d8e47f75010e8ff05879a8d574bf5972ae0d4192f6e4305123af8a67f4e |
|
MD5 | 5715c8429e75bb7c6ba54ebe1c340896 |
|
BLAKE2b-256 | caa9c2687e9a344cff44d628e1cee5e108c462b6058de04e1d0599b39c9e59a8 |