/play

Fun stuff to play with

Primary LanguageTypeScript

Play - not really sure what this repo is about...

Add a play button

Add a play button and text to an image. Try it here.

play-button-demo

Repeat pattern design

Design a repeat pattern. Try it here.

repeat-demo

Chat

A simple chat app. Try it here.

chat-demo

Pixel

Play video in terminal! video 视频

pixel-demo

# Step 0: Use ffmpeg or other tools to generate images
ffmpeg -i ../video/bad_apple.mp4 -vf fps=24 -vsync 0 %d.png

# Step 1: Compile executable
go build cmd/pixel/pixel.go

# Step 2: Encode images to binary
# -o: output file path
# -f: frame rate
# -w, -h: width, height
# images files, separated by space
./pixel -o ../test/out.pixel -f 24 -w 100 -h 100 $(ls *.png | sort -n)

# Step 3: Decode
./pixel -d ../tmp/test/out.pixel