Generate thumbnails from videos.
Endpoint: /gen-thumb will return the dimensions of the video and the thumbnail.
# Start docker image
docker run --name thumb-gen \
-v "$(pwd)/static/:/static" \
-p 127.0.0.1:8080:8080 \
-u "$(id -u):$(id -g)" \
-d \
andarius/go-videothumbnail:latest
# Call endpoint
curl http://127.0.0.1:8080/gen-thumb\?path\=/static/video.mp4\&output\=/static/thumb.png
# Stop docker image
docker stop thumb-gen && docker rm thumb-gen
Content type
Image
Digest
sha256:5d021b25d…
Size
51.8 MB
Last updated
5 months ago
docker pull andarius/go-videothumbnail