Plays pokemon video using costumes at 8 FPS for Chromebook Uses 2 free console tools ffmpeg and imagemagick Partial image version https://scratch.mit.edu/projects/937511366
Plays pokemon video at video frame rate of 8 on chromebook (480 frames at 480x360) 26Mb at steady 25-30 FPS device speed. This uses costumes unlike my previous projects that use pen and allows saving on scratch site. Surprising tricky to get smooth video playback on low speed devices like chomebook, but this method seems to work at a reasonable quality, even on devices with limited memory If you use more that 500 frames, it may also run out of memory and shows strange question marks images instead of your costumes. Aim for all your images to be lower than 100kb. Uploading 480x360 jpg, gif or png, get resized to 960x720 on import due the scratch 3.0 bitmapResolution:2. Careful with this step as the image compression is lost, which may cause you to run out of memory. Instead use svg costumes with embedded base64 png image to overcome this issue. It uses posterize rather than dithering to ensure base64 is optimized for compression. Stamped costume works better than visible costumes for full size images. This method uses 2 free console tools ffmpeg and imagemagick with the following workflow below: 1: Extract All Frames at 8 FPS: ffmpeg -i 480.mp4 -r 8 %d.png 2: Posterize each image eg: magick convert 1.png -posterize 16 -colors 32 .\posterize\1.png 3: Convert each image to SVG eg: magick convert .\posterize\1.png .\svg\1.svg 4: Create scratch project 5: Import images to sprite 6: Play video