/
README (full)
GStreamer Thumbnailers
This project provides two binaries that create a thumbnails for the libgnome-desktop thumbnailer:
gst-video-thumbnailertries to extract the stored cover art from a video file. If no cover art is found, it checks a few different frames and takes the frame with the largest variance between it's the pixels.gst-audio-thumbnailertries to extract the stored cover art from an audio file.
$ cargo run --bin gst-video-thumbnailer -- -p video.mp4 -o thumbnail.png -s 512
$ cargo run --bin gst-audio-thumbnailer -- -p audio.mp3 -o thumbnail.png -s 512
Dependencies
As the thumbnailers are using GStreamer for parsing and decoding the files, it is necessary to install the required GStreamer plugins with the codecs required for handling the files.
In addition, at least all plugins from GStreamer core and gst-plugins-base are required, as well as the autodetect and videofilter plugins from gst-plugins-good.
Benchmarking
To assess the performance impact of a code change:
- Checkout the
mainbranch - Call
cargo bench - Checkout your changes
- Run
cargo benchagain
This will give a report of the performance changes. If there are significant changes in either direction, these should be mentioned in merge requests.
Use of Generative AI
This project does not allow contributions generated by large languages models (LLMs) and chatbots. This ban includes, but is not limited to, tools like ChatGPT, Claude, Copilot, DeepSeek, and Devin AI. We are taking these steps as precaution due to the potential negative influence of AI generated content on quality, as well as likely copyright violations.
This ban of AI generated content applies to all parts of the projects, including, but not limited to, code, documentation, issues, and artworks. An exception applies for purely translating texts for issues and comments to English.
AI tools can be used to answer questions and find information. However, we encourage contributors to avoid them in favor of using existing documentation and our chats and forums. Since AI generated information is frequently misleading or false, we cannot supply support on anything referencing AI output.
| dir | benches/ |
| dir | debian/ |
| dir | src/ |
| dir | tests/ |
| file | .gitignore |
| file | .gitlab-ci.yml |
| file | .rustfmt.toml |
| file | Cargo.lock |
| file | Cargo.toml |
| file | LICENSE |
| file | NEWS |
| file | README.md |
| file | deny.toml |
| file | gst-audio-thumbnailer.thumbnailer.in |
| file | gst-thumbnailers.doap |
| file | gst-video-thumbnailer.thumbnailer.in |
| file | meson.build |
| file | meson_options.txt |