https://github.com/bakape/thumbnailer
Go media thumbnailer
https://github.com/bakape/thumbnailer
cgo ffmpeg go golang thumbnail thumbnailer
Last synced: 11 months ago
JSON representation
Go media thumbnailer
- Host: GitHub
- URL: https://github.com/bakape/thumbnailer
- Owner: bakape
- License: mit
- Created: 2016-12-13T09:22:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-11-17T23:57:24.000Z (over 2 years ago)
- Last Synced: 2024-06-19T15:43:17.505Z (almost 2 years ago)
- Topics: cgo, ffmpeg, go, golang, thumbnail, thumbnailer
- Language: Go
- Homepage:
- Size: 22.8 MB
- Stars: 149
- Watchers: 9
- Forks: 36
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://godoc.org/github.com/bakape/thumbnailer)
[](https://travis-ci.com/bakape/thumbnailer)
# thumbnailer
Package thumbnailer provides a more efficient media thumbnailer than available
with native Go processing libraries through ffmpeg bindings.
Use
```
go get -u github.com/bakape/thumbnailer/v2
```
to install the library in your project.
For a comprehensive list of file formats supported by default see
main.go:Process().
## Dependencies
* Go >= 1.10
* C11 compiler
* make
* pkg-config
* pthread
* ffmpeg >= 4.1 libraries (libavcodec, libavutil, libavformat, libswscale)
NB:
* ffmpeg should be compiled with all the dependency libraries for formats you
want to process. On most Linux distributions you should be fine with
the packages in the stock repositories.
* Ubuntu patches to ffmpeg on some Ubuntu versions <19.10 break this library.
In this case, please compile from unmodified ffmpeg sources using:
```
sudo apt build-dep ffmpeg
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
cd ffmpeg
git checkout n4.1
./configure
make -j`nproc`
sudo make install
```