{"id":18377292,"url":"https://github.com/bbc/clever-thumbnailer","last_synced_at":"2025-04-06T21:31:31.126Z","repository":{"id":136960079,"uuid":"40191111","full_name":"bbc/clever-thumbnailer","owner":"bbc","description":"Audio thumbnail generator","archived":false,"fork":false,"pushed_at":"2020-10-02T14:17:58.000Z","size":258,"stargazers_count":28,"open_issues_count":1,"forks_count":2,"subscribers_count":41,"default_branch":"master","last_synced_at":"2025-03-22T06:51:21.961Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bbc.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-08-04T14:55:20.000Z","updated_at":"2024-08-21T00:38:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"f9e6b5d9-2653-418e-b699-dcc75a5e12ad","html_url":"https://github.com/bbc/clever-thumbnailer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbc%2Fclever-thumbnailer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbc%2Fclever-thumbnailer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbc%2Fclever-thumbnailer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbc%2Fclever-thumbnailer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbc","download_url":"https://codeload.github.com/bbc/clever-thumbnailer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247555120,"owners_count":20957709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T00:27:37.816Z","updated_at":"2025-04-06T21:31:31.121Z","avatar_url":"https://github.com/bbc.png","language":"C","readme":"CleverThumbnailer\n=================\n\n[![Travis Build Status](https://travis-ci.org/bbc/clever-thumbnailer.svg?branch=master)](https://travis-ci.org/bbc/clever-thumbnailer)\n\nCleverthumbnailer is a command line tool that analyses songs and creates short audio thumbnails of them.\n\nAlgorithm\n---------\n\nGiven a full length piece of music in WAVE format (`*.bwf` and `*.wav`), cleverthumbnailer attempts to generate a short extract most representative of the track in general. It bases this decision on three factors:\n\n1. **Segment Detection**. Using the [QMUL Segmenter](http://dx.doi.org/10.1109/TASL.2007.910781) algorithm, distinct musical sections of a piece are found. In western pop music, this algorithm detects transitions between verses, choruses, and bridges. In western classical music, segment boundaries are often found at key changes/modulations.\n2. **RMS Energy profiling**. The varying dynamics of a piece of music are\ncalculated by tracking the RMS energy over the course of a piece. Sections of a piece that are loud (by default) or have a high amount of dynamic variation (`--dynamic` flag) are preferred for inclusion in the audio snippet generated.\n3. **Applause detection**. An algorithm that determines [spectral centroid](https://dx.doi.org/10.1121%2F1.381843) over time is used to detect applause within a recording. Periods of applause are avoided in the resulting audio thumbnail. \n\nInstallation\n------------\n\n\n\nUsage\n-----\n\n```\nclever-thumbnailer version 0.1.0\n\nUsage: clever-thumbnailer [options] \u003cinputfile\u003e \u003coutputfile\u003e\n   -a             Enable applause detection\n   -c \u003ccropin\u003e    Crop time from start in seconds (default 7.0)\n   -C \u003ccropout\u003e   Crop time from end in seconds (default 7.0)\n   -d             Rate sections by dynamic range rather than max loudness\n   -f \u003cfadein\u003e    Fade-in duration in seconds (default 0.5)\n   -F \u003cfadeout\u003e   Fade-out duration in seconds (default 2.0)\n   -h             Display this help message\n   -l \u003clength\u003e    Thumbnail length in seconds (default 30.0)\n   -p \u003cprelude\u003e   Seconds of additional lead-in (default 10.0)\n   -q             Enable quiet mode\n   -v             Enable verbose mode\n```\n\n\nCredits\n-------\n\nThe code in this repository was created by Jon Tutcher in 2015 for [BBC Research \u0026 Development](http://www.bbc.co.uk/rd).\n\n[QM-DSP](https://code.soundsoftware.ac.uk/projects/qm-dsp) was created by Queen Mary University of London; the segmenter module used here was developed by Mark Levy and Chris Cannam.\n\n\nLicense\n-------\n\nThis project is licensed under the GNU GPLv2 license. For terms and conditions, see [LICENSE](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbc%2Fclever-thumbnailer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbc%2Fclever-thumbnailer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbc%2Fclever-thumbnailer/lists"}