Discuss Scratch

ben_19046
Scratcher
14 posts

How to upload a video on scratch?

Hi, today I was creating a project (tutorial) in which I need to upload a video which is a 1 minute video. Can any one tell how?
NightmareMoonChan
Scratcher
100+ posts

How to upload a video on scratch?

you cant upload mp4s but you can upload .gifs and it will break the frames into costumes and you just put
repeat (how many frames/costumes it is)
next costume

end

Last edited by NightmareMoonChan (Sept. 10, 2021 19:50:26)

samq64
Scratcher
1000+ posts

How to upload a video on scratch?

ben_19046 wrote:

I was creating a project (tutorial)
I would recommend that you find a way to do it without the video. If you still need to upload a 1 min video you can try using the steps below but be aware that the project is unlikely to save and even if it does the project will crash low-RAM devices.
  1. Convert your video to a gif so it can be imported into Scratch.
  2. Compress the gif. I would start by resizing the gif below 480x360. Add more compression if necessary.
  3. Convert your video to an mp3 to get just the audio.
  4. Compress the mp3 if nessesary.
  5. Upload your gif as a new sprite.
  6. Save your project. It might take a while and will not save with huge gifs.
  7. Open the sounds tab and upload your mp3.
  8. Save your project again. It might take a will not save with huge mp3s.
  9. Open the code tab and add these scripts:
    when green flag clicked
    switch costume to [frame 1 v]
    repeat (number of frames)
    next costume
    Wait ((1)/(framerate)) secs // framerate must be less than 30
    end
    When green flag clicked
    Play sound [Video sound.mp3 v] until done

Last edited by samq64 (Sept. 10, 2021 20:20:27)

ben_19046
Scratcher
14 posts

How to upload a video on scratch?

NightmareMoonChan wrote:

you cant upload mp4s but you can upload .gifs and it will break the frames into costumes and you just put
repeat (how many frames/costumes it is)
next costume

end
Thank you
I know how to upload gif and what will be the coding to show each frames smoothly
graham3078
Scratcher
100+ posts

How to upload a video on scratch?

you can't, but you can upload gifs.

Powered by DjangoBB