Category: video

canvid.js tiny library for playing video on canvas elements

Half of the trick is done by converting the video into a long JPEG sprite, which is done beforehand with ffmpeg + ImageMagick. ffmpeg -i myvideo.mp4 -vf scale=375:-1 -r 5 frames/%04d.png montage -border 0 -geometry 375x -tile 6x -quality 60% frames/*.png myvideo.jpg The other half is the library. Better than animated GIFs.