Skip to main content

small video cut tools

Project description

cutmv

项目介绍

调用ffmpeg库实现视频剪辑

该库需要依赖ffmpeg软件。所以在调用该库写代码时,请首先确保您的计算机中已安装ffmpeg并将ffmpeg软件路径加入环境变量。

计划目标

  • 全格式音频文件分段切割
  • 全格式视频文件分段切割
  • 全格式音频格式转换
  • 全格式视频格式转换

项目文件参数说明

  • s_time :音视频文件分割起始时间
  • e_time :音视频文件分割截至时间
  • files :需要切割的文件名
  • i_format :输出格式

版本修正

  • 2020-12-10 [v0.0.3]:修正了代码中的小错误
  • 2020-12-10 [v0.0.4]:追加批量压制视频功能

代码演示:

  • 调用 cutmv 批量剪辑视频
import os
import cutmv

if __name__ == "__main__":
    rootdir = './'
    list = os.listdir(rootdir)  # 列出文件夹下所有的目录与文件
    for i in range(0, len(list)):
        cutmv.video_cut(0, 480, list[i], '.mp4')
  • 调用 cutmv 批量压制视频
import cutmv

if __name__ == "__main__":
    cutmv.video_compress('./', './压制/', '600k')

合作及交流

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

cutmv-0.0.4.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cutmv-0.0.4-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file cutmv-0.0.4.tar.gz.

File metadata

  • Download URL: cutmv-0.0.4.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for cutmv-0.0.4.tar.gz
Algorithm Hash digest
SHA256 2225349f687cbc66b702a563a6361cca1dcc4f01cfbc9769320e9d92ae6948f0
MD5 b8cd39b309afa5ef0292fec7900b0844
BLAKE2b-256 08c0e1a8cbde2627783ff2b4b567cdb861a74e1180659f7b3cab474cd89e0249

See more details on using hashes here.

File details

Details for the file cutmv-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: cutmv-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for cutmv-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6963845ef051700d07ebeedda8e6d6b8eba730bd0ef7cd9d62d1847971ece55a
MD5 a053669c5bfcd34666b65469a1e98370
BLAKE2b-256 d219eb287011a94b8d811353dcb746e885136cb444ec7b69e6a66f4a1b8947b4

See more details on using hashes here.

Supported by

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