Skip to main content

视频与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

l0n0lvedio2image-1.0.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

l0n0lvedio2image-1.0.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file l0n0lvedio2image-1.0.2.tar.gz.

File metadata

  • Download URL: l0n0lvedio2image-1.0.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for l0n0lvedio2image-1.0.2.tar.gz
Algorithm Hash digest
SHA256 be36d1b19f65047a5ab90d145ad3000019a406acb3b6bcdcdfa1d3787252ddd1
MD5 d2efdfc03584a9db8fa6fe22fae4bd61
BLAKE2b-256 e0f57a8e91e146df31e344e4655b208c19562fffab2fa109805aca5ca4b177ea

See more details on using hashes here.

File details

Details for the file l0n0lvedio2image-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for l0n0lvedio2image-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 79fb09e3553726553d2a26840ef9ed1deffd9422b213bb940038a89f1e0b9ccd
MD5 f788d4876328c4e570fbc76f564aa995
BLAKE2b-256 55fbb104bda87b66e6ff2e3036b8795b8038b0b1b8ace8e65fac0b5e9de67058

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page