{"id":50333422,"url":"https://github.com/maximelafarie/embed_lyrics","last_synced_at":"2026-05-29T11:30:42.438Z","repository":{"id":345351436,"uuid":"1167022209","full_name":"maximelafarie/embed_lyrics","owner":"maximelafarie","description":"A script to embed lyrics in audio files","archived":false,"fork":false,"pushed_at":"2026-02-25T21:36:26.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-07T16:07:43.820Z","etag":null,"topics":["audio","audio-processing","ffmpeg","lyrics","lyrics-plugin"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maximelafarie.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-25T21:32:12.000Z","updated_at":"2026-02-25T21:37:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/maximelafarie/embed_lyrics","commit_stats":null,"previous_names":["maximelafarie/embed_lyrics"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maximelafarie/embed_lyrics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximelafarie%2Fembed_lyrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximelafarie%2Fembed_lyrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximelafarie%2Fembed_lyrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximelafarie%2Fembed_lyrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maximelafarie","download_url":"https://codeload.github.com/maximelafarie/embed_lyrics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximelafarie%2Fembed_lyrics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33650712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["audio","audio-processing","ffmpeg","lyrics","lyrics-plugin"],"created_at":"2026-05-29T11:30:41.198Z","updated_at":"2026-05-29T11:30:42.429Z","avatar_url":"https://github.com/maximelafarie.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# embed_lyrics\n\nA zsh script that embeds `.lrc` (synced lyrics) files directly into audio file metadata, in a completely **lossless** way.\n\nParticularly useful for making lyrics compatible with [beets](https://beets.io/) and other tools that don't support standalone `.lrc` files.\n\n---\n\n## Dependencies\n\n- [ffmpeg](https://ffmpeg.org/) — embedding for mp3, m4a, ogg, opus, wav, aiff\n- [flac](https://xiph.org/flac/) (`metaflac`) — native lossless embedding for FLAC files\n\nInstall via Homebrew:\n\n```zsh\nbrew install ffmpeg flac\n```\n\n---\n\n## Installation\n\n```zsh\nchmod +x embed_lyrics.sh\nmv embed_lyrics.sh /usr/local/bin/embed_lyrics\n```\n\nThe script is then available from any directory.\n\n---\n\n## Usage\n\n```zsh\n# Current directory (recursive)\nembed_lyrics\n\n# Specified directory\nembed_lyrics ~/Music\nembed_lyrics /Volumes/NAS/Albums\n```\n\n---\n\n## Behaviour\n\nThe script recursively scans the target directory and, for each audio file found, checks whether a `.lrc` file with the same name exists in the same folder.\n\n```\nArtist - Album/\n├── 01 - Track.flac   ← audio file\n├── 01 - Track.lrc    ← will be embedded then deleted\n├── 02 - Track.flac\n└── ...               ← no .lrc → silently skipped\n```\n\n- ✅ **Successful embed** → the `.lrc` file is deleted\n- ❌ **Failure** → the `.lrc` file is kept and an error is displayed\n\n---\n\n## Supported formats\n\n| Format           | Method                    | Re-encoding |\n| ---------------- | ------------------------- | ----------- |\n| `.flac`          | `metaflac` (`LYRICS` tag) | ❌ No        |\n| `.mp3`           | `ffmpeg -c copy`          | ❌ No        |\n| `.m4a`           | `ffmpeg -c copy`          | ❌ No        |\n| `.ogg`           | `ffmpeg -c copy`          | ❌ No        |\n| `.opus`          | `ffmpeg -c copy`          | ❌ No        |\n| `.wav`           | `ffmpeg -c copy`          | ❌ No        |\n| `.aiff` / `.aif` | `ffmpeg -c copy`          | ❌ No        |\n\nAudio quality is **always preserved** — only metadata is modified.\n\n---\n\n## Sample output\n\n```\n[INFO]  Scanning: /Users/you/Music\n[INFO]  Embedding: 01 - Song.lrc → 01 - Song.flac\n[OK]    Done → 01 - Song.flac\n[INFO]  Embedding: 02 - Other.lrc → 02 - Other.flac\n[OK]    Done → 02 - Other.flac\n\n[INFO]  ────────────────────────────────\n[OK]    Embedded : 2 file(s)\n[INFO]  ────────────────────────────────\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximelafarie%2Fembed_lyrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaximelafarie%2Fembed_lyrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximelafarie%2Fembed_lyrics/lists"}