Skip to content

mingl0280/FFT_Video_H264

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

H.264 Video FFT Noise adder

This tool is used to add a high-frequency FFT noise to any video input.

Requirements

I only tested this on Python 3.10, but for Python 3.8 it should also work.

How to use this tool

1. Create a python venv.

python3 -m venv <current_path_absolute>
cd venv/Scripts

Then run activate.bat for Windows or ./activate for Linux.

2. Install required packages:

python -m pip install -r requirements.txt

3. Install cupy for your CUDA version.

Please check your CUDA version based on the following instructions:

  1. Windows:

Go to "Settings->Apps" and search for "cuda".

  1. Linux:
nvcc --version

Install cupy

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>

Run the script.

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.

Other stuff

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages