Git Product home page Git Product logo

video-corruptor's Introduction

Thanks blinkodemia and all the people from discord.gg/linux for motivating me into making this.


This is a simple (or not) video corruptor script that uses GStreamer and FFmpeg.

Latest Changelog

  • Added controllable intermediate audio rate
  • Added the -r switch
  • Added the --audio switch
  • GStreamer command fixes
  • Some code maintenence

How 2 use dis? (yep, this is just the help message.)

Files:
 -i=<input>
 -o=<output> (.mp4 will get automatically added!)

Corruption:
 -f=<filter>
 -s=<filter args>
 -c=<video color format>
 -g=<gstreamer config>
 -a=<intermediate audio format>
 -r=<intermediate audio frequency>
 -v=<intermediate video format>
 -au=<complex audio input>

Other:
 --help		Show this help message
 --license	Self-explanatory
 --debug	Debug info, don't delete temp files
 --lavfi	Presume lavfi -au format
 --audio	Enable audio (DANGEROUS!)
 
Examples:
$ ./corruptor.sh -i=input.mp4 -f=lowpass
$ ./corruptor.sh -i=input.mp4 -o=output -f=custom -s="acrusher=bits=16:samples=200:mix=0.2"
$ ./corruptor.sh -i=input.mp4 -o=/tmp/somevideo -f=custom --lavfi -au="anoisesrc=c=brown:amplitude=0.04" -s="[0:a][1:a]amix=inputs=2:duration=first"

Info:
If no output is specified, input file hash + .mp4 will be used instead.
If -au is specified, "-af" in ffcmd will get replaced with "-filter_complex"
Enabling audio may cause encoder issues, VERY loud sounds and overbloated video outputs (up to 20GB)

Known Bugs

  • GStreamer freezes (mainly from --audio)
  • FFmpeg jank If you have problems with ffmpeg, please doube-check the command.
  • Cannot use paths like ~/Videos/video.mp4 for inputs and outputs

TODO

  • SoX filters? No.

video-corruptor's People

Contributors

mtrkss avatar

Watchers

 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.