https://github.com/ninjamar/scratch-video-player
A program to generate a compressed video that can be played in my scratch video player
https://github.com/ninjamar/scratch-video-player
Last synced: about 1 year ago
JSON representation
A program to generate a compressed video that can be played in my scratch video player
- Host: GitHub
- URL: https://github.com/ninjamar/scratch-video-player
- Owner: ninjamar
- License: mit
- Created: 2024-05-29T08:13:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-04T18:45:52.000Z (almost 2 years ago)
- Last Synced: 2025-06-17T04:02:10.265Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 66.7 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Scratch Video Player
These are some scripts I used to generate the data from my [scratch video player](https://scratch.mit.edu/projects/602626065/)
# Usage
Get a gif
```bash
bash conv.sh input.gif inputDimensions generated.gif outputDimensions
python3 make.py generated.gif WIDTHxHEIGHT output.txt
```
### Example
```bash
bash conv.sh rickroll.gif 1280x720 small.gif 96x54
python3 make.py small.gif 96x54 rickroll.txt
```
Upload the generated txt file to the list `data` in the [scratch video player](https://scratch.mit.edu/projects/602626065/). Apparently scratch stores lists twice in the project.json, so the generated text file has to be less than 2.5 mb.