![]() |
How to combine a video that has green screen with a background image - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions) +--- Thread: How to combine a video that has green screen with a background image (/Thread-How-to-combine-a-video-that-has-green-screen-with-a-background-image) |
How to combine a video that has green screen with a background image - mariah701 - 03-02-2025 How do I combine this image with this video, so the green screen removed into and the image as the background instead anyone know, I been trying and my brain still cant process it [img] ![]() https://imgur.com/a/Ci93Hux RE: How to combine a video that has green screen with a background image - rich2005 - 03-02-2025 Well somebody might come up with a scheme for using Gimp but IMHO Not really a job for Gimp. The video you linked is only 13.3 seconds long but it is also 30 frames-per-second which in Gimp gives 399 layers to edit, individually to remove the green background. Add to that, the green is not uniform in colour (more later). You can use a command line application ffmpeg and convert green to transparency (alpha mask) Code: ffmpeg -i B9MoCO8.mp4 -vf "chromakey=0x00a300:0.1:0.2" -c copy -c:v png output.mov where 0x00a300 is a green value from the video. That was about a mid-value green but still makes for noticable semi transparency. You need to experiment and try to get a better result. Output is a .mov because .mp4 does not support transparency. To put that over the static background, use a simple video editor such as Openshot - looks like this. A final edit is a crop - that jpeg image is not a standard video frame size. [attachment=13136] example https://i.imgur.com/44EP3Cj.mp4 and it still has the audio. RE: How to combine a video that has green screen with a background image - mariah701 - 03-02-2025 (Yesterday, 07:06 PM)rich2005 Wrote: Well somebody might come up with a scheme for using Gimp but IMHO thanks, gonna try it myself, I need the character to be fully visible like they do in certain tiktok videos so no transparency downloading Openshot right now and will try it myself RE: How to combine a video that has green screen with a background image - rich2005 - 03-02-2025 (Yesterday, 07:34 PM)mariah701 Wrote: thanks, gonna try it myself, I need the character to be fully visible like they do in certain tiktok videos so no transparency Apparently you can use a greenscreen in Openshot. Do a search plenty like this https://www.youtube.com/watch?v=kaXj2ZX_QB0 I would try and find a better video as well, that "green" background is more of gradient |