Gimp-Forum.net
insert image layer into all vid frames with GAP - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP)
+--- Thread: insert image layer into all vid frames with GAP (/Thread-insert-image-layer-into-all-vid-frames-with-GAP)



insert image layer into all vid frames with GAP - gts6 - 10-15-2017

Hello, using GAP is there a way to accomplish this?  Id like to insert a layer into every frame of video using GAP and have the new layer appear in the same location in each frame. I can do it manually one frame at a time which is time-consuming (and beside that, when doing it manually I cannot figure out a way to get the new layer to appear in the same exact location  on each frame autmomatically) I have to drag the new layer into place on each frame and i can never get it to the exact same spot.

thanks!


RE: insert image layer into all vid frames with GAP - Ofnuts - 10-15-2017

GAP can do it, or my interleave-layers script.


RE: insert image layer into all vid frames with GAP - gts6 - 10-15-2017

(10-15-2017, 07:52 PM)Ofnuts Wrote: GAP can do it, or my interleave-layers script.

Ok, but HOW do I do in GAP? i havent been able to figure out a way.  Is there a way without relying on your script? If not then ill have to try to figure it out with the script


RE: insert image layer into all vid frames with GAP - rich2005 - 10-16-2017

(10-15-2017, 08:01 PM)gts6 Wrote:
(10-15-2017, 07:52 PM)Ofnuts Wrote: GAP can do it, or my interleave-layers script.

Ok, but HOW do I do in GAP? i havent been able to figure out a way.  Is there a way without relying on your script? If not then ill have to try to figure it out with the script

Plenty of 'tutorials' using GAP if you search. Same as GAP, they tend to be old and confusing. Remember GAP has barely changed since Gimp 2.4 Fixed a bit for Gimp 2.6 Flaky with Gimp 2.8


example: http://www.gimptalk.com/index.php?/topic/50772-gap-add-new-layer-to-all-frames/ best of luck with that one.

There are some enthusiasts at http://gimpchat.com You could ask there.

Using Ofnuts plugin: a couple of how-to videos.

https://youtu.be/Rw-Dk0oRdh4 this adds both a background and adds text. 3 and a half mins, you could skip the first couple of minutes to get to the plugin.

https://youtu.be/FLHaTGh2ztQ This is a bit slower 6 minutes - aimed at beginners - again adding text.

The main points - unoptimise the animation if required - use RGB mode - have the same number of layers.


RE: insert image layer into all vid frames with GAP - gts6 - 10-16-2017

(10-16-2017, 07:59 AM)rich2005 Wrote:
(10-15-2017, 08:01 PM)gts6 Wrote:
(10-15-2017, 07:52 PM)Ofnuts Wrote: GAP can do it, or my interleave-layers script.

Ok, but HOW do I do in GAP? i havent been able to figure out a way.  Is there a way without relying on your script? If not then ill have to try to figure it out with the script

Plenty of 'tutorials' using GAP if you search. Same as GAP, they tend to be old and confusing. Remember GAP has barely changed since Gimp 2.4 Fixed a bit for Gimp 2.6 Flaky with Gimp 2.8


example: http://www.gimptalk.com/index.php?/topic/50772-gap-add-new-layer-to-all-frames/ best of luck with that one.

There are some enthusiasts at http://gimpchat.com You could ask there.

Using Ofnuts plugin: a couple of how-to videos.

https://youtu.be/Rw-Dk0oRdh4 this adds both a background and adds text. 3 and a half mins, you could skip the first couple of minutes to get to the plugin.

https://youtu.be/FLHaTGh2ztQ This is a bit slower 6 minutes - aimed at beginners - again adding text.

The main points - unoptimise the animation if required - use RGB mode - have the same number of layers.


thanks! Ill have to start looking into these resources, thanks a bunch


RE: insert image layer into all vid frames with GAP - gts6 - 10-17-2017

it doesnt seem to be working for what i need. the plugin works fine when dealing with layers, but im working with video with GAP and it loads the frames into FRAMES. the script doesnt seem to be working on frames, unless im doing something wrong, but i have no idea if that is the case, maybe it just doesnt work with frames.

although i CAN load the video frames into LAYERS and then work with it using the script plugin, i cant figure out how to export it back out to video.


RE: insert image layer into all vid frames with GAP - Ofnuts - 10-17-2017

Gimp is primarily an editor for still images. Animations are supported because they are a frequent use of the GIF image format, but of course animations on export are only for GIF (and perhaps the odd animated image format).

When editing animations, frames are implemented as individual layers. One layer in the final image is one frame in the animation.

If your workflow is from video to video, better use a video editor. The GIF animations are of rather low quality due to the restricted number of colors (256 colors across all frames for the GIFs produced by Gimp).


RE: insert image layer into all vid frames with GAP - rich2005 - 10-17-2017

Quote:although i CAN load the video frames into LAYERS and then work with it using the script plugin, i cant figure out how to export it back out to video.

As mentioned, GAP is a seriously old plugin. It comes with an old cut-down version of ffmpeg which, from memory, at best makes an either some sort of .avi (maybe motionJPEG) or .mpg (type 1 )

You can get an up-to-date ffmpeg for Windows, but not so easy to mux a load of images into video due to syntax changes.

Another alternative is ImageMagick, the windows version comes with ffmpeg and will convert a gif to an mpg.
or
As Ofnuts suggested a video editor. Openshot is free and easy to use  http://www.openshot.org