SandCastleIcon.png This article has links to websites or programs outside of Scratch and Wikipedia. Remember to stay safe while using the internet, as we cannot guarantee the safety of other websites.

This tutorial will show how to port a video into a Scratch project.

Obtaining a Copy of the Video

Note Warning: The usage of copyrighted material might be illegal. Please check the video's license and its suitability for publishing if the project will be shared.

If the video is saved on a computer, skip this step. Otherwise, follow these steps.

  1. Go to the webpage with the video (such as YouTube or Vimeo)
  2. Use a screen recording software to screen record the video playing (note, a video downloader can be used, however most of them are unsafe)[citation needed]. If needed, crop the video to the part that contains the playing video.

Splitting the Video into Parts

  1. Take the copy of the video, and convert it to a .mp3 file (which will contain the audio). Zamzar can be used for this step.
  2. Take the copy of the video (not the audio version), and convert it to a .gif file (which will contain the visuals). Zamzar can also be used.

Putting the Parts in a Scratch Project

  1. Create a new project that will contain the video
  2. Import the .gif file into the Scratch editor
    Note Note: With longer videos, this may take a long time. Be patient.
  3. Import the .mp3 file into the Scratch editor.

Combining the Parts into a Video

  1. Make the .gif file run. One can use this code:
    when green flag clicked
    repeat (. . .::grey) // number of costumes
        next costume
        wait (. . .::grey) seconds // increase the time for a slower video, decrease it for a faster one
    end
    
  2. Make the .mp3 file run with the .gif file
    when green flag clicked
    start sound (mp3 file v)
    repeat (. . .::grey) // number of costumes
        next costume
        wait (. . .::grey) seconds // increase the time for a slower video, decrease it for a faster one
    end
    
  3. Click the green flag to watch it.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.