Skip to main content

A collection of Python utilities for handling media files.

Project description

image-utils

When I am doing my job, I always want some utils to help me work better

研究下这个:
https://github.com/BetaSu/second-curve/blob/main/docs/idea/flow.md

mp4处理

  • 转png/jpg等
  • 转mp3
  • 转gif
  • 转竖屏
  • 其他格式视频转mp4

mp3处理

  • 转文字
  • 转srt
  • mp3裁剪
  • mp3其他格式,eg:flac,WAV,AAC,Ogg,等互相转换

图片png/jpg处理

  • 添加文字
  • 图片文字识别
  • 图片按比例放缩/图片旋转
  • 图片转灰白
  • 图片按比例剪切
  • 图片格式相互转换

install

# pip freeze > requirements.txt
conda create -n dealMedia python=3.11
conda activate dealMedia
pip install -r requirements.txt

前往ffmpeg官网,下载对应版本的文件,解压放在本地文件并且配置环境变量,确保可以访问到

ffmpeg -version

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

easy-media-utils-0.1.0.tar.gz (33.0 kB view hashes)

Uploaded Source

Built Distribution

easy_media_utils-0.1.0-py3-none-any.whl (45.9 kB view hashes)

Uploaded Python 3

Supported by

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