{"id":13741282,"url":"https://github.com/squeek502/audiometa","last_synced_at":"2025-04-13T09:26:00.183Z","repository":{"id":40643142,"uuid":"422115487","full_name":"squeek502/audiometa","owner":"squeek502","description":"An audio metadata/tag reading library written in Zig","archived":false,"fork":false,"pushed_at":"2025-01-11T06:05:14.000Z","size":313,"stargazers_count":39,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T01:03:27.358Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/squeek502.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}},"created_at":"2021-10-28T07:58:24.000Z","updated_at":"2025-02-05T17:04:19.000Z","dependencies_parsed_at":"2023-01-17T16:51:37.329Z","dependency_job_id":null,"html_url":"https://github.com/squeek502/audiometa","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/squeek502%2Faudiometa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squeek502%2Faudiometa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squeek502%2Faudiometa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squeek502%2Faudiometa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/squeek502","download_url":"https://codeload.github.com/squeek502/audiometa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248690089,"owners_count":21146064,"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-08-03T04:00:57.450Z","updated_at":"2025-04-13T09:26:00.155Z","avatar_url":"https://github.com/squeek502.png","language":"Zig","funding_links":[],"categories":["Libraries","Zig"],"sub_categories":[],"readme":"# audiometa\n\nAn audio metadata/tag reading library written in [Zig](https://ziglang.org/). Currently supports ID3v2, ID3v1, FLAC, APE, Ogg Vorbis, and MP4/M4A (iTunes Metadata Format).\n\n**still heavily work-in-progress, everything is subject to change**\n\nThe general idea is to:\n\n1. Parse all metadata verbatim, with no de-duplication, and as little interpretation as possible. *(this part is mostly working/complete)*\n2. Run the metadata through a 'collator' that does some (potentially subjective) interpretation of the metadata, and then provides only the 'best' set of metadata (doing things like de-duplication, prioritization between different types of metadata, conversion from inferred character encodings, etc). *(this part is unfinished)*\n\nIn terms of code, usage will probably look something like:\n\n```zig\nvar stream_source = std.io.StreamSource{ .file = file };\n\n// Step 1: Parse the metadata\nvar metadata = try audiometa.metadata.readAll(allocator, \u0026stream_source);\ndefer metadata.deinit();\n\n// Step 2: Collate the metadata\nvar collator = audiometa.collate.Collator.init(allocator, \u0026metadata);\ndefer collator.deinit();\n\n// Get the parts of the collated data you care about and do what you want with it\nconst artists = try collator.artists();\n```\n\n## Limitations\n\n- No compression support, all compressed tags/frames are ignored (haven't ever seen one of these in the wild)\n- Only supports text frames, so things like embedded images are skipped (maybe TODO)\n- No synchronized lyric frame support in ID3v2 tags (maybe TODO)\n- No support for SEEK frame in ID3v2.4 tags (TODO)\n- No support for tag formats not listed above (TODO)\n- Only supports reading tags, no support for writing/modifying tags (maybe TODO)\n\n## Comparisons to other libraries\n\n`audiometa`:\n- Provides all metadata as UTF-8 strings, regardless of their encodings within the tags\n- Does not de-duplicate or otherwise have any opinion about how to handle duplicate frames/tags while parsing, and instead leaves that up to the user\n\n### ffmpeg/ffprobe/libavformat\n\n- ffmpeg drops all duplicate frames during the parsing of ID3v2 tags, and therefore has some slightly strange/unexpected results (i.e. it will return frames from duplicate tags only if they don't exist in earlier tags)\n\n### TagLib\n\n- TagLib completely ignores all ID3v2 tags past the first one\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqueek502%2Faudiometa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsqueek502%2Faudiometa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqueek502%2Faudiometa/lists"}