This is more like a basic tutorial on how to perform background removal in videos and then layer them one over another.
Video Creation Steps:
List of media used by us (Credits list)
- Daffodil by Andreas at https://pixabay.com/videos/daffodil-narcissus-easter-spring-34826/
- Alarm clock at https://pixabay.com/videos/alarm-clock-watch-time-retro-15629/
- Fire by Christopher O’Toole at https://pixabay.com/videos/fire-burn-flame-hot-heat-glow-21531/
- Woman from Romana at https://pixabay.com/photos/woman-girl-eye-model-scarf-arabic-590490/
- Music by Julius H at https://pixabay.com/music/folk-beltane-celtic-firedance-music-613/ (*Added as an extra)
Video Background removal
For this challenge, we had decidedly chosen non standard color, hence manual correction was done
Daffodil : [[5, 10, 10], [32, 36, 240]]
Alarm clock : [[15,150,10], [21,250,250]]
The fire worked fine with “black all” option
The clock video we got had 256 frames only while the flower had 1410. Hence we set the FPS for clock video to be 1/6 th of the original value so that they both can complete together.
woman @(-20,2,20,0,0,0,.5,.5,.5) #1 alarm @(0,0,0,0,0,0,.893,.893,.893) #1-#1410 fire @(-40,1,0,0,0,0,1.78,1.78,1.78) #1-#1410 flower @(-27,0,0,0,0,0,.893,.893,.893) #1-#1410
And that’s all. This was indeed quite simple. Wanna improve further?
- The memory almost hid the wall as we had 3 HD videos, plus an image, all playing at the same time.
- If you have lower specs but large files (more than 3-4 thousand frames), the better (and sensible) option will be to break the video in parts (by creating models manually with limited frames) and then merge finally.