This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-01-18 18:37:24

ScratchMasterZag
Scratcher
Registered: 2011-12-16
Posts: 9

How do you get all the frames of a video into costumes in scratch?

I have veiwed a project were someone showed an animation made in blender by getting all the frames and putting the frames in costumes then making scratch rapidly switch costumes. Is there an easy way to import all the frames of a video into scratch costumes or do i have to insert them all indivitualy?

http://scratch.mit.edu/projects/Friezeshrew/2191456

for the project

project made by  Friezeshrew

Offline

 

#2 2012-01-18 18:56:24

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: How do you get all the frames of a video into costumes in scratch?

If I understand what you mean, you can put the costume images together in a folder, highlight them all, and then drag them into the costumes tab in Scratch.


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#3 2012-01-19 11:53:11

ScratchMasterZag
Scratcher
Registered: 2011-12-16
Posts: 9

Re: How do you get all the frames of a video into costumes in scratch?

bobbybee wrote:

If I understand what you mean, you can put the costume images together in a folder, highlight them all, and then drag them into the costumes tab in Scratch.

I see what you mean, but is there a fast way to get all the frames in a video into pictures so i can do that?

Offline

 

#4 2012-01-19 12:46:15

Overture
Scratcher
Registered: 2012-01-09
Posts: 91

Re: How do you get all the frames of a video into costumes in scratch?

You can make it into an animated .GIF file and when you import that into scratch as a sprite, it will make every frame of the .GIF as a different costume


http://img856.imageshack.us/img856/4728/overt.png

Offline

 

#5 2012-01-19 12:51:56

Purika
Scratcher
Registered: 2011-01-26
Posts: 100+

Re: How do you get all the frames of a video into costumes in scratch?

Here is good way (Windows)

Download the Video to JPG converter from here:
http://www.dvdvideosoft.com/products/dv … verter.htm

Pick Every Frame then convert the video.

Drag it into a Scratch sprite as bobbybee said.

IMPORTANT: Note the FPS (Frames Per Second) of the video, and for example if its 25 make the script:    (It is 0.04 because 1 divided by 25 equals 0.04)
[blocks]
<forever>
<wait( 0.04
<next costume>
<end>
[/blocks]

ALSO IMPORTANT: If it is a long video, the project might be bigger than ten megabytes (that means you can't upload it). If this happens try reducing the FPS

Last edited by Purika (2012-01-19 12:59:18)


https://lh3.googleusercontent.com/-ZlPXbnYAtro/TxRNNopA6XI/AAAAAAAAAvY/worvlbyfCYI/s589/Purika.gif
If I was three birds, I could see myself fly below us!  big_smile

Offline

 

#6 2012-01-19 13:23:31

ScratchMasterZag
Scratcher
Registered: 2011-12-16
Posts: 9

Re: How do you get all the frames of a video into costumes in scratch?

Overture wrote:

You can make it into an animated .GIF file and when you import that into scratch as a sprite, it will make every frame of the .GIF as a different costume

i tried that on a gif file, but it only imported the first frame of the gif file.

Offline

 

#7 2012-01-19 13:36:44

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: How do you get all the frames of a video into costumes in scratch?

ScratchMasterZag wrote:

Overture wrote:

You can make it into an animated .GIF file and when you import that into scratch as a sprite, it will make every frame of the .GIF as a different costume

i tried that on a gif file, but it only imported the first frame of the gif file.

Ahh yes.

Heres what you do.

1) Import the file ONCE.
2) On the same sprite, import the file again.
3) Delete the first costume, voila!


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#8 2012-01-19 15:43:58

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: How do you get all the frames of a video into costumes in scratch?

Are you able to get this working?


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#9 2012-01-19 16:42:20

Purika
Scratcher
Registered: 2011-01-26
Posts: 100+

Re: How do you get all the frames of a video into costumes in scratch?

If you can't get a gif file, my version works perfectly as well. (That's what I use)  smile


https://lh3.googleusercontent.com/-ZlPXbnYAtro/TxRNNopA6XI/AAAAAAAAAvY/worvlbyfCYI/s589/Purika.gif
If I was three birds, I could see myself fly below us!  big_smile

Offline

 

#10 2012-01-20 10:25:01

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: How do you get all the frames of a video into costumes in scratch?

Servine wrote:

ScratchMasterZag wrote:

Overture wrote:

You can make it into an animated .GIF file and when you import that into scratch as a sprite, it will make every frame of the .GIF as a different costume

i tried that on a gif file, but it only imported the first frame of the gif file.

Ahh yes.

Heres what you do.

1) Import the file ONCE.
2) On the same sprite, import the file again.
3) Delete the first costume, voila!

NOBODY ever listens to me > sad


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#11 2012-01-20 10:28:40

Purika
Scratcher
Registered: 2011-01-26
Posts: 100+

Re: How do you get all the frames of a video into costumes in scratch?

Servine wrote:

Servine wrote:

ScratchMasterZag wrote:


i tried that on a gif file, but it only imported the first frame of the gif file.

Ahh yes.

Heres what you do.

1) Import the file ONCE.
2) On the same sprite, import the file again.
3) Delete the first costume, voila!

NOBODY ever listens to me > sad

You are right! It's just they might not have a gif image.


https://lh3.googleusercontent.com/-ZlPXbnYAtro/TxRNNopA6XI/AAAAAAAAAvY/worvlbyfCYI/s589/Purika.gif
If I was three birds, I could see myself fly below us!  big_smile

Offline

 

#12 2012-01-20 11:30:26

Overture
Scratcher
Registered: 2012-01-09
Posts: 91

Re: How do you get all the frames of a video into costumes in scratch?

Servine wrote:

ScratchMasterZag wrote:

Overture wrote:

You can make it into an animated .GIF file and when you import that into scratch as a sprite, it will make every frame of the .GIF as a different costume

i tried that on a gif file, but it only imported the first frame of the gif file.

Ahh yes.

Heres what you do.

1) Import the file ONCE.
2) On the same sprite, import the file again.
3) Delete the first costume, voila!

Importing the file twice, especially if it's a big file would take a while to work. It'd be best if you drew a new sprite first (maybe a zigzag line) then imported the gif (then you delete the zigzag placeholder costume)


http://img856.imageshack.us/img856/4728/overt.png

Offline

 

#13 2012-01-20 15:54:05

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: How do you get all the frames of a video into costumes in scratch?

Overture wrote:

Servine wrote:

ScratchMasterZag wrote:


i tried that on a gif file, but it only imported the first frame of the gif file.

Ahh yes.

Heres what you do.

1) Import the file ONCE.
2) On the same sprite, import the file again.
3) Delete the first costume, voila!

Importing the file twice, especially if it's a big file would take a while to work. It'd be best if you drew a new sprite first (maybe a zigzag line) then imported the gif (then you delete the zigzag placeholder costume)

On the first import, only the first frame is added.


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#14 2012-01-20 19:00:54

ScratchMasterZag
Scratcher
Registered: 2011-12-16
Posts: 9

Re: How do you get all the frames of a video into costumes in scratch?

Purika wrote:

Servine wrote:

Servine wrote:


Ahh yes.

Heres what you do.

1) Import the file ONCE.
2) On the same sprite, import the file again.
3) Delete the first costume, voila!

NOBODY ever listens to me > sad

You are right! It's just they might not have a gif image.

i have a gif image

Offline

 

#15 2012-01-20 19:02:17

ScratchMasterZag
Scratcher
Registered: 2011-12-16
Posts: 9

Re: How do you get all the frames of a video into costumes in scratch?

Servine wrote:

ScratchMasterZag wrote:

Overture wrote:

You can make it into an animated .GIF file and when you import that into scratch as a sprite, it will make every frame of the .GIF as a different costume

i tried that on a gif file, but it only imported the first frame of the gif file.

Ahh yes.

Heres what you do.

1) Import the file ONCE.
2) On the same sprite, import the file again.
3) Delete the first costume, voila!

did not work. so i import it once, then i import the gif file again into a diffrent costume, and then i delete the first one?

Offline

 

#16 2012-01-21 04:47:52

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: How do you get all the frames of a video into costumes in scratch?

ScratchMasterZag wrote:

Servine wrote:

ScratchMasterZag wrote:


i tried that on a gif file, but it only imported the first frame of the gif file.

Ahh yes.

Heres what you do.

1) Import the file ONCE.
2) On the same sprite, import the file again.
3) Delete the first costume, voila!

did not work. so i import it once, then i import the gif file again into a diffrent costume, and then i delete the first one?

No No.

On the sprite you want to import the GIF, go to the costumes tab.

Now, import the GIF file needed,
DON'T DO ANYTHING apart from re-importing the GIF.

Delete un-neede costumes


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

#17 2012-01-21 06:21:08

Purika
Scratcher
Registered: 2011-01-26
Posts: 100+

Re: How do you get all the frames of a video into costumes in scratch?

Servine wrote:

ScratchMasterZag wrote:

Servine wrote:


Ahh yes.

Heres what you do.

1) Import the file ONCE.
2) On the same sprite, import the file again.
3) Delete the first costume, voila!

did not work. so i import it once, then i import the gif file again into a diffrent costume, and then i delete the first one?

No No.

On the sprite you want to import the GIF, go to the costumes tab.

Now, import the GIF file needed,
DON'T DO ANYTHING apart from re-importing the GIF.

Delete un-neede costumes

Yeah, you can just drag it from the folder!  smile


https://lh3.googleusercontent.com/-ZlPXbnYAtro/TxRNNopA6XI/AAAAAAAAAvY/worvlbyfCYI/s589/Purika.gif
If I was three birds, I could see myself fly below us!  big_smile

Offline

 

Board footer