Sign inSign up

andarius/go-videothumbnail

By andarius

Updated 5 months ago

Generate thumbnails from videos

Image
0

667

andarius/go-videothumbnail repository overview

Go-videothumbnail

Generate thumbnails from videos.

Endpoint: /gen-thumb will return the dimensions of the video and the thumbnail.

How to use
# 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

Tag summary

Content type

Image

Digest

sha256:5d021b25d

Size

51.8 MB

Last updated

5 months ago

docker pull andarius/go-videothumbnail