Analog videotape emulator, written in Python
Here's a simplified explanation of how the code works:
- The chrominance and luminance signals are separated
- Chrominance and luminance channels are compressed and processed separately.
- The images are re-assembled
Change the parameters to your liking, then hit record to tape, select the file you want to record, and wait until the process ends. NOTE: the output video doesn't have sound, so it needs to be added after the effect is applied.
from vhs import VHS
...
vhs = new VHS(lumaCompressionRate, lumaNoiseSigma, lumaNoiseMean, chromaCompressionRate, chromaNoiseIntensity, verticalBlur,horizontalBlur, borderSize)
#optional
vhs.generation = 3
- clone this repo
- run pip install requirements.txt
- run python index.py to open UI interface
- River of the valley explanation on how VHS damage is simulated