Giter Site home page Giter Site logo

useful-tools's Introduction

一些自用小工具

批量视频片头剪切/batch cut the opening of the video

下载video-clip.py到需要剪切的视频同级目录。
进入源码自行修改片头秒数。
仅写了mp4格式,需其它格式只需if加个条件即可。
------------------
git clone https://github.com/mashaz/useful-tools.git
copy video-clip.py to videos' directory or copy videos to useful-tools, you can change the second in code you want
python2 video-clip.py

requirements

  • ffmpeg

批量图片指定区域截取

把全部待截图片放入images文件夹
下载image-crop.py到images文件夹同级目录。
进入源码自行修改截取区域大小。

requirements

  • PIL

批量清除(保留)制定格式文件

keep-image.py

现在直接用shell比较舒服

find . -name '[a-z].txt' -maxdepth 1 -exec rm {} \;

批量重命名

rename.py

useful-tools's People

Contributors

mashaz avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.