Python program for processing a temporal median filter effect across a set of frames from a video.
-
Install ffmpeg
-
Create a python virtual environment
mkdir venv python3 -m venv venv source venv/bin/activate
-
Install requirements
pip install -r requirements.txt
-
Run the code!
python temporal_median.py -i "<set_of_frames>" -o "<output_path>" -l <number of frames to process> -offset <length of filter in frames> -simul <frames to process simultaneously>
Ex.
python temporal_median.py -i img/trimmed_saigon_1.mp4 -v
Original:
https://www.youtube.com/watch?v=LUGksGa4WJA
TMF:
https://www.youtube.com/watch?v=6K8_iQOxo4w
Original: https://www.youtube.com/watch?v=8QCsQnr2w4w
TMF: https://www.youtube.com/watch?v=Yhy1uc9s8IU
Similar to zo7's median-video (but that one is in C++ and requires OpenCV). https://github.com/zo7/median-video