Full Source: https://gitlab.com/BCable/gimp
This requires GIMP2 at the moment, as GIMP3 is not released as of writing but the beta is released for Python3 support. GIMP3’s Python-fu functions are not actually functional yet but this code will need to be adjusted.
Source:
https://gitlab.com/BCable/gimp/-/blob/master/mv_edits/aespa_whiplash_wm/Makefile
Music Video Source: https://www.youtube.com/watch?v=jWQx2f-CErU
This step takes the music video and cuts the video into a shortened version with ffmpeg.
Source:
https://gitlab.com/BCable/gimp/-/blob/master/mv_edits/shared/ffmpeg_gif.sh
https://gitlab.com/BCable/gimp/-/blob/master/mv_edits/shared/cut_mv_gif.sh
This step lops off beginning and end frames using GIMP that are extraneous. Essentially, the ffmpeg output will be imprecise, so this adds precision.
Source:
https://gitlab.com/BCable/gimp/-/blob/master/mv_edits/shared/cut_mv_beginend.sh
https://gitlab.com/BCable/gimp/-/blob/master/mv_edits/shared/cut_mv_beginend.py
This step takes the result of the “Whiplash” logo, and extracts the black background using the selection tools, with an appropriate threshold, then scales and moves the logo as necessary to create a watermark or “bug” in various ways. The frames from the two videos are interlaced using GIMP layering and a GIF is saved appropriately.
Lining up animation frames is necessary as they will have different numbers of frames as well.
Source:
https://gitlab.com/BCable/gimp/-/blob/master/mv_edits/shared/watermark.py