Coder Social home page Coder Social logo

py_glitch's Introduction

PY_GLITCH 为了艺术而破坏

$ python py_glitch.py foler/我的视频.mp4

py_glich.py [-h] [--intensity INTENSITY] [--buffer BUFFERSIZE]
                   [--count COUNT] [--header HEADERSIZE]
                   input [output [output ...]]
  input                 源文件的路径
  output                输出文件夹的路径,默认为源文件所在文件夹

可选参数:
  -h           显示帮助信息
  --intensity  强度,默认为0.1
  --buffer     一次性随机的数据的大小,buffer越大,速度越快,图片适合10以下,视频适合使用100以上;buffer越大,速度越快,glitch越不明显
  --count      生成多少个文件
  --header     文件头部信息的大小,默认200,图片的header一般很小;破坏header将导致文件无法识别

一次性生成3个文件,并将intensity强度调低

$ python py_glitch.py foler/我的视频.mp4 /目标/文件夹 --count 3 --intensity 0.02

效果

a1 a2 b1 b2 c1 c2

py_glitch's People

Contributors

eisneim 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.