https://github.com/twhlynch/mp42grab
A script to convert videos into 30x30 grayscale animations in Grab VR
https://github.com/twhlynch/mp42grab
grabvr mp4 opencv pixelart video vr
Last synced: 2 months ago
JSON representation
A script to convert videos into 30x30 grayscale animations in Grab VR
- Host: GitHub
- URL: https://github.com/twhlynch/mp42grab
- Owner: twhlynch
- Created: 2023-04-13T21:26:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-27T04:56:07.000Z (7 months ago)
- Last Synced: 2024-10-27T05:42:07.596Z (7 months ago)
- Topics: grabvr, mp4, opencv, pixelart, video, vr
- Language: Python
- Homepage: http://twhlynch.me/Mp42Grab/
- Size: 13.7 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mp42Grab
Put videos into GRAB!
Recommended to use videos less than 1 minute long, and dimensions of 30x30.
### Setup
- Get [Python](https://www.python.org/).
- Run `python3 -m venv .` to initialize a python environment.
- Run `bin/pip install -r requirements.txt` to install requirements.### Run
- Run `bin/python Mp42Grab.py VIDEO.mp4 XX YY`
> VIDEO is the path to the mp4 file.
>
> XX is the number of pixels to generate across the x axis
>
> YY is the number of pixels to generate across the y axis### Usage
The script should output file called `video_level.json`. You can convert it to a level file with any json to level tool such as any of the following tools:
- [JSON editor](https://grab-tools.live/editor)
> View > Performance > Toggle editor
>
> File > Open > JSON File- [Level JSON Tool](https://grab-tools.live/tools?tab=JSONButton)
- [Slin/GRAB-Level-Format](https://github.com/Slin/GRAB-Level-Format/tree/main) (main/tools)