Discuss Scratch

Fuecoco666
New Scratcher
1 post

How do I load custom mpeg videos into scratch?

Most of my animations are exported into my device as Mpeg files and I want to add them as they are (sound included)
LittleGreyCells
Scratch Team
1000+ posts

How do I load custom mpeg videos into scratch?

Moved to Questions About Scratch
A-MARIO-PLAYER
Scratcher
1000+ posts

How do I load custom mpeg videos into scratch?

  1. convert the mp4 into a gif
  2. convert the mp4 into an mp3 as well
  3. import the gif into costumes
  4. import the mp3 into sounds
  5. this:
    when green flag clicked
    forever
    play sound (mp3 v) until done
    end

    when green flag clicked
    forever
    next costume
    wait ((1) / (30)) seconds :: control // change 30 to the video's fps

Last edited by A-MARIO-PLAYER (Sept. 1, 2024 19:52:26)

Crowsauiy
Scratcher
100+ posts

How do I load custom mpeg videos into scratch?

You have to convert the video into a gif, then convert it into an mp3 for audio, then use code to put it all together.
Fun_Cupcake_i81
Scratcher
1000+ posts

How do I load custom mpeg videos into scratch?

You can also convert it into a PNG sequence (not sure how many programs support this, I use Adobe Media Encoder which does) which is higher quality than GIF to my knowledge but also has a bigger file size so the Scratch project is more likely to lag a lot.
IceCreamTub
Scratcher
1000+ posts

How do I load custom mpeg videos into scratch?

I reccomend importing the video twice as 2 sprites just in case some frames end up missordered due to a slow internet connection

Powered by DjangoBB