The post-production suite of Ghosts (US version). It’s 3:00 AM. SAM (the lead editor) stares at a timeline. On screen, a perfect take of Episode 8’s climax: Thor, Sass, and Isaac argue about who gets to “possess” the new smart speaker.
Sam closes her laptop. “Leo… what did you just overlay from the B-cam?”
A glitch. Right as Thor shouts “YOU VILLAGERS!”, a digital artifact the size of a coffee mug — a ghostly green smear — flickers over his face. It’s in every single camera angle. The raw footage from the A-cam has a corrupted frame range: frame 14203 to frame 14456 .
The Spectral Artifact
# Step 1: Isolate the corrupted segment from the master clip (clip_A.mov) ffmpeg -i clip_A.mov -ss 00:09:27.000 -t 00:00:10.120 -c copy corrupted_segment.mov ffmpeg -i clip_B.mov -ss 00:09:27.000 -t 00:00:10.120 -c copy clean_segment.mov Step 3: Overlay the clean Thor face (masked) onto the corrupted frames (Simplified — they'd use a generated alpha mask) ffmpeg -i corrupted_segment.mov -i clean_segment.mov -filter_complex "[1:v]scale=1920:1080,setpts=PTS+0.04/TB[clean]; [0:v][clean]overlay=420:240:shortest=1" -c:v prores_ks -profile:v 3 fixed_segment.mov Step 4: Replace the corrupted frames in the original file ffmpeg -i original_episode.mov -i fixed_segment.mov -filter_complex "[0:v]trim=0:14202,setpts=PTS-STARTPTS[v0]; [1:v]setpts=PTS+14203/24000[v1]; [0:v]trim=14457:999999,setpts=PTS-STARTPTS+14457/24000[v2]; [v0][v1][v2]concat=n=3:v=1:a=0" -c:v copy -c:a copy ghosts_s01e08_fixed.mov
Based on a true post-production emergency. No ghosts were harmed. FFmpeg is not responsible for spectral bleed-through.
“It’s like a ghost in the machine. Literally. We can’t recolor it, can’t mask it. The network wants the final master in two hours.”
“Not by hand. By ffmpeg .”