It appears you have not registered with our community. To register please click here ...

Share this topic on AskShare this topic on Del.icio.usShare this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on MagnoliaShare this topic on MySpaceShare this topic on RedditShare this topic on SlashdotShare this topic on SquidooShare this topic on StumbleUponShare this topic on TechnoratiShare this topic on TwitterShare this topic on YahooShare this topic on Google buzz

Author Topic: Importing Video into your GIMP Projects!  (Read 1841 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline fencepost

  • Cheif Editor
  • ********
  • Posts: 2518
  • Karma: 0
    • fence-post.deviantart.com
Importing Video into your GIMP Projects!
« on: August 20, 2006, 10:44:40 AM »


In this tutorial, I will show you how to import video footage into GIMP using the GAP (GIMP Animation Package), which is a separate download from GIMP. We will create the the animated signature above using either the quicktime movie or avi file and the background that I have provided for your use.  Don't misunderstand me....the sig we are creating is only an example, not something I consider to be incredible. 

Although this tutorial is very simple in nature, please keep in mind, importing movies using GAP is not limited to animated avatars and signatures.  I'm only presenting it for sig creation right now because it's something that a lot of people are interested in and it's an easy format for web-based images. The possibilities are really endless.  Using the features of GIMP and GAP, you could create wonderful home movies to share with friends and family.    Just don't show them too many home movies or they'll probably not want to visit your home anymore!

This tutorial is written for someone who has a pretty good use of GIMP features.  The only thing we will be using GAP for is the conversion process.  So, if you've never experimented with GAP or you've been afraid to, try this tutorial out.  I'm sure you'll find it to be straightforward.

I'm using GAP version 2.2.0 for Windows.  This version contains the necessary programming implementations to convert video footage.  So, if you don't have at least this version of GAP, I suggest you download it here: Windows Users (You are not allowed to view links. Register or Login
http://gimp-win.sourceforge.net/stable.html
) and Linux users (You are not allowed to view links. Register or Login
http://gimp.org/downloads/
).

GAP has the ability to convert not just QuickTime movies (mov), but avis, mpgs, mpegs, and from what I've read, some dvd formats (vob files.)  I've not been successful with the vob format, but I have with the others.

As I said above, I am providing you with a Quicktime movie (mov file), which are very common in digital cameras (which is what I'm really interested in) and an avi file for you to follow along with. You can download the video files as well as a sig template as an attachment to the bottom of this post beneath my name (called WorkingFiles.zip).

 The avi has been resized to the proper size to fit the signature because the original size was in excess of 13 Mb.  I've provided both just in case you didn't have any footage to experiment with.  The video is of me on the lawnmower, just in case you're interested.

When you extracted the tutorial from the zip file, you'll notice there are two folders.  The Tutorial Images folder contains the screenshots for the tutorial.  The Working Files contains the video and sig background files.

Let's begin:

Step 1:

In the main GIMP window, go to the Xtns Menu > Split Video Into Frames > Extract Videorange.



Step 2:

When the following window appears, we will be concerned with letter A-E in red below.

A:  This is where you tell GAP to look for your file.  If you know the file path name to the video, type or copy/paste the pathname here.

B:  If you don't know the file path name, click this button and you'll be given a window with dropdown menus to search for it.

Using A or B, go ahead and enter the file path name to the Quicktime movie (mov).  You can experiment with the avi file later.

C:  Enter the the video frame range you want to convert.  I already know that my video has 68 frames in it.  So, go ahead and enter the number 68 in the "To Frame" area.

D:  If you don't know which frames you want to convert, click this button.  You'll be given a preview window that will show you the number of frames in your video and you can watch the video as well.

E:  For this tutorial, we will just be telling GAP to make one multi-layer image.  However, if you were going to do additional modifications in GIMP or GAP, you probably would want to leave this one deselected so that each frame was added to its own image.  But, for this tutorial, go ahead and select it.



Here's a screenshot of what the Video Range window looks like (Letter D above)



You may also see this menu appear when opening up the Select Videorange window (Letter D). If you do, clicking either button is fine.  I just chose yes.  The window is pretty self-explanatory.



Now, click OK to convert the video.  Here's a partial screenshot of the imported video footage.



IMPORTANT:  When working on video footage in this fashion, it appears that the Undo capabilities are disabled.  This could be very problematic if you make a mistake.  However, one way to work around it, just in case you do make a mistake, is to have a good spare ready to go.  To do that, go to the Image Menu > Duplicate (Ctrl+D) and GIMP will make an exact copy ready for use if you need it.  Just make sure you're always working on the right copy!  So, if you do make a mistake and there's no easy way to correct it, shut down the one with the error(s) without saving and start again fresh with the copy.  Otherwise, you'll need to begin all over.

Step 3:

Now the next thing we need to do is resize the image to fit our sig background.  Since I already know what the dimensions are, I'll give them to you here.  For any sigs you do in the future, you'll need to figure out the best dimensions on your own.

To scale the image, go to the Image Menu > Scale Image:



and choose the following settings:



I don't have a screenshot for the results of this last step, but your image should have be resized accordingly.

Step 4:

Now, let's resize the canvas so we can add our sig background.  To do this, go to the Image Menu > Canvas Size



and set the parameters as follows:



Add the Width and Height of the sig background we want to add (Ours is 325 W and 110 H).  I'm centering mine in the image, but it doesn't really matter because we're going to move it anyway. Click Resize.

Here's the output.  I've added a checkerboard to show that it has a transparent background.



Step 5:

To add the background sig, go to the File Menu > Open as Layer...



And point GIMP to the location of the sig background in the window that opens and the background will be added to the image.  Or, you can just drop/drag the sig background onto the frames.

Step 6:

The sig background needs to be moved to the bottom.  To do so, we need to add an Alpha Channel to the very bottom layer or we won't be allowed to move the background to the bottom. To do this, go to the very bottom of the layer stack, right-click on the bottom layer, and choose Add Alpha Channel.



Next, click on the sig background layer in the dialog window and drag it to the very bottom of the stack.  Your layers should look like this:



and your image window like this:



Step 7:

Now, we need to move the video into place.  This would be very difficult to do each layer manually, and I was going to write a script for linking all the layers, but saulgoode at gimptalk.com told me you can link all layers just by clicking the chain next to the image and then doing a Shift+Click on the same layer.  Thanks for the great tip, saulgoode!

Click on the chain next to any frame to turn on the link button, then Shift+Click on the same frame to link all layers.  Make sure you turn off the chain next to the background image or you'll be moving the background also.

Here's two screenshots of before and after linking:



Now, with any one of the linked layers highlighted (in blue as shown above), use your grab your move tool (4-headed arrow), make sure it's settings are as follows, and move the layer to a location similar to mine below.  You can also use the arrow keys to nudge it in place.



Step 8:

Here's where we bring it to a close.  Go back to the layer dialog window (the place that shows all your layers stacked up) and highlight the first layer up from the main sig background.  (no screenshot for this).

We need to merge this layer with the background:

Go to the Layer Menu > Merge Down



Step 9:

Test out your animation.  Filters Menu > Animation > Playback.

If you're pleased with the result:  You can try different optimization settings to reduce the filesize.  I'll leave this up to you, but here's the menus you'll be interested in:



AND



If you want to add a pause in the final frame before it starts all over again, double-click on the very top frame and insert a larger number in the (xxxx ms) section.  1/2 second = 500 ms, 1 second = 1,000 ms, 2 seconds = 2,000 ms, etc.



Step 10:

Save as an animated gif.

File Menu > Save or Save as.... Pick the name and add the ".gif" extension to the end.  Here's the settings to use for the windows that appear:






Again, your results should be something similar to this:



I hope you enjoyed this tutorial. If you have any questions or comments, please send me a note

Remember, GIMP and GAP are a lot more than sigs and avatars.  This was only a primer for bigger and better things.I look forward to seeing your results.

Cheers!

Art








« Last Edit: May 15, 2010, 07:38:52 PM by Hi-T3k~HillBilly »
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Offline paladin169

  • Elder Member
  • *****
  • Posts: 1601
  • Karma: 0
  • Cookies!
Re: Importing Video into you GIMP Projects using GAP!
« Reply #1 on: August 20, 2006, 10:52:18 AM »
Nice job, I'll try this.
Formerly sponge!


spanky

  • Guest
Re: Importing Video into you GIMP Projects!
« Reply #2 on: August 20, 2006, 12:58:15 PM »
Awsome!

I never experimented with that link tool now I know what it can do


Offline fencepost

  • Cheif Editor
  • ********
  • Posts: 2518
  • Karma: 0
    • fence-post.deviantart.com
Re: Importing Video into you GIMP Projects!
« Reply #3 on: August 20, 2006, 04:48:56 PM »
Awsome!

I never experimented with that link tool now I know what it can do

What's the link tool?  Were you thinking of something else when you were typing?   :D

« Last Edit: August 20, 2006, 04:49:20 PM by fencepost »
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

spanky

  • Guest
Re: Importing Video into you GIMP Projects!
« Reply #4 on: August 20, 2006, 05:31:19 PM »
Oh not link tool but that link thing

that chain thing in the layer pallete thats what Im thinkin of :)

Offline fencepost

  • Cheif Editor
  • ********
  • Posts: 2518
  • Karma: 0
    • fence-post.deviantart.com
Re: Importing Video into you GIMP Projects!
« Reply #5 on: August 21, 2006, 06:03:50 AM »
Ok, I'm a dufus!  I learned a new thing and forgot about it already.  Thanks for reminding me how much of a dufus I am!  ;D

Art
Posted on: August 21, 2006, 09:09:12 AM
I thought this one would be popular with you guys/gals.  Has anyone tried it out yet?  I know it hasn't been downloaded very much, so I'm just wondering if you're reluctant to do it because of GAP, don't like the example (come on, it's just an example), or just don't have an interest in importing video.  I know this used to be a very popular idea.  Maybe I missed the memo that it was no longer in style. *peeks over at "memo" in-basket, but it's too full of unread material*

I'd like some feedback.  That way I know whether I need to correct the tutorial with better examples or whatever....BTW, I'm not looking for statements like, "WOW, You are the best!" or "Great tutorial" or anything like that....real feedback"  Of course, if you don't have any thing to offer, I understand that as well.

Thanks, Art
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Offline insane_freak

  • Member
  • ***
  • Posts: 226
  • Karma: 0
    • insane_freak's page
Re: Importing Video into you GIMP Projects!
« Reply #6 on: August 21, 2006, 06:52:34 AM »
hey fencepost O_O im doin your tut... and the links to the provided stuff are not working :-\ i guess ill use my own stuff then ...ill defenetly finish this tut..for all the hard work you've done and stuff and no one is trying this  ;D so i guess you could fix that  :)

edit : lol i didnt look everywere in the file i downloaded .. i found it already sorry ..but i will deff finish this tut  ;D
« Last Edit: August 21, 2006, 06:54:35 AM by insane_freak »
You are not allowed to view links. Register or Login

Offline fencepost

  • Cheif Editor
  • ********
  • Posts: 2518
  • Karma: 0
    • fence-post.deviantart.com
Re: Importing Video into you GIMP Projects!
« Reply #7 on: August 21, 2006, 06:56:54 AM »
If you just extract everything in the zip file to your desktop (or some other convenient location, but all files must be in the same location) all the links will work.

Looking forward to your feedback!

Art
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Offline insane_freak

  • Member
  • ***
  • Posts: 226
  • Karma: 0
    • insane_freak's page
Re: Importing Video into you GIMP Projects!
« Reply #8 on: August 21, 2006, 07:47:38 AM »
easyest tut ever great results i love it... i recomend it to everyone posible O_O this is a techniqe you will never forget  ;D here is my result ... it may suck but t could be way better .. i used one of my old backgrounds and a skateboard movie i have  :P
« Last Edit: August 21, 2006, 08:34:44 AM by insane_freak »
You are not allowed to view links. Register or Login

Offline Kenny

  • Sr. Member
  • ****
  • Posts: 784
  • Karma: -1
  • Love my name
Re: Importing Video into you GIMP Projects!
« Reply #9 on: August 21, 2006, 07:47:55 AM »
Fence, that is awesome. YOu should edit that video so as you go out you are coming in the other side :P

Unfortunately, I have no movies <_<