Discuss Scratch

edmundsa
Scratcher
1 post

How to put an MP4 into scratch

I was wondering how do you put an mp4 into scratch if it possable
BKFighter
Scratcher
1000+ posts

How to put an MP4 into scratch

Scratch only accepts .mp3 and .wav for audio, and no movie formats. You would have to convert the .mp4 into a .gif to upload it as a large number of costumes in Scratch, and then record the audio separetly, and play it while looping through the costumes, and find the fps for the gif so the video and audio match up.
footsocktoe
Scratcher
1000+ posts

How to put an MP4 into scratch

edmundsa wrote:

I was wondering how do you put an mp4 into scratch if it possable

mp4 is a video format. Convert it to an animated GIF file to use the video part in Scratch. You will need a separate audio file for the sound part of the video.
something786
Scratcher
6 posts

How to put an MP4 into scratch

I tried and it sorta crashed my scratch website. no clue if it works.
ScratchXT
Scratcher
100+ posts

How to put an MP4 into scratch

pardon my month necroposting, but heres what you should do.

1. download/render the mp4 that you want to import

2. split that mp4 into 2 files. a .gif and a .wav or a .mp3

3. make sure you know the fps of your original mp4 file before exporting as .gif! that way, audio won't go out of sync (youtube videos are roughly in the 29.889 fps mark or something, just check everytime in case if it's different)
once you have both files, import them in scratch, and make this script

when green flag clicked
switch costume to [costume1 v]
repeat until <(costume #) = [last costume in sprite]>
next costume
wait <[1] / (framerate)> secs
end

when green flag clicked
play sound [video_audio.mp3 v]

these scripts aren't tested, but you should get some results if your pc doesn't lag with flash. once 3.0 comes out it may work better. infact, do this on the beta site instead and see if the results are better. they probably will be
DerpyHead0
Scratcher
1000+ posts

How to put an MP4 into scratch

ScratchXT wrote:

pardon my month necroposting
this topic is from 2016, the other posts were necroposts too.
don't necropost tho
GBG11
New Scratcher
1 post

How to put an MP4 into scratch

BKFighter wrote:

Scratch only accepts .mp3 and .wav for audio, and no movie formats. You would have to convert the .mp4 into a .gif to upload it as a large number of costumes in Scratch, and then record the audio separetly, and play it while looping through the costumes, and find the fps for the gif so the video and audio match up.

This is to put music on your video game code

Powered by DjangoBB