|This article has links to websites or programs not trusted by Scratch or hosted by 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
|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.
- Go to the webpage with the video (such as YouTube or Vimeo)
- Use a screen recording software to screen record the video playing (note, a video downloader can be used, however most of them are unsafe). If needed, crop the video to the part that contains the playing video.
Splitting the Video into Parts
- 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.
- 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
- Create a new project that will contain the video
- Import the .gif file into the Scratch editor
Note: With longer videos, this may take a long time. Be patient.
- Import the .mp3 file into the Scratch editor.
Combining the Parts into a Video
- 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
- 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
- Click the green flag to watch it.
The Wiki is working on a dark theme, and you're seeing it! Got feedback? Post on the Wiki Forum Topic.