This tool is used to add a high-frequency FFT noise to any video input.
I only tested this on Python 3.10, but for Python 3.8 it should also work.
python3 -m venv <current_path_absolute>
cd venv/Scripts
Then run activate.bat
for Windows or ./activate
for Linux.
python -m pip install -r requirements.txt
Please check your CUDA version based on the following instructions:
- Windows:
Go to "Settings->Apps" and search for "cuda".
- Linux:
nvcc --version
Go to CuPy Install Guide and check which version you need to install.
Do not use the "pip install" command.
python -m pip install <cupy version you want>
python main.py -i <input_file_path> -o <output_file_path>
Note: input file must be in H.264 format.
No audio will be processed, so you need to manually remix the audio later.
Please check ffmpeg to see how to do that.
Thanks for ChatGPT GPT-4 model for generating the code.
I'm not familiar with Python and this is almost completely generated by it.
Apparently there are still some optimizations needs to be done, please give out advise in issues.