{"id":51580053,"url":"https://github.com/dloebl/wemenc","last_synced_at":"2026-07-11T05:02:11.935Z","repository":{"id":357315460,"uuid":"1235310791","full_name":"dloebl/wemenc","owner":"dloebl","description":"WEM encoder (Wwise Encoded Media)","archived":false,"fork":false,"pushed_at":"2026-05-12T07:52:54.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-12T09:39:24.404Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/dloebl.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-05-11T07:49:58.000Z","updated_at":"2026-05-12T07:52:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dloebl/wemenc","commit_stats":null,"previous_names":["dloebl/wemenc"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dloebl/wemenc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dloebl%2Fwemenc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dloebl%2Fwemenc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dloebl%2Fwemenc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dloebl%2Fwemenc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dloebl","download_url":"https://codeload.github.com/dloebl/wemenc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dloebl%2Fwemenc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35351426,"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-07-11T02:00:05.354Z","response_time":104,"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":[],"created_at":"2026-07-11T05:02:11.136Z","updated_at":"2026-07-11T05:02:11.930Z","avatar_url":"https://github.com/dloebl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wemenc\n\n`wemenc` is a command-line tool written in Go for encoding audio files into the Wwise WEM format (Wwise Encoded Media). Currently, **only the Opus codec is supported**. It leverages `ffmpeg` for the underlying Opus encoding and packages the result into a Wwise-compatible RIFF container.\n\n## Features\n\n- Encodes any audio format supported by `ffmpeg` to WEM Opus.\n- Automatically handles Ogg/Opus stream parsing to extract raw packets.\n- Generates required Wwise chunks: `fmt`, `seek` (packet table), and `data`.\n- Precise sample count handling using Ogg granule positions.\n\n## Prerequisites\n\n- **Go**: 1.25 or later.\n- **FFmpeg**: Must be installed and available in your `PATH`. The tool expects `libopus` support in FFmpeg.\n\n## Installation\n\nClone the repository and build the binary:\n\n```bash\ngo build -o wemenc ./cmd/wemenc\n```\n\n## Usage\n\n```bash\n./wemenc -i \u003cinput_file\u003e -o \u003coutput_file.wem\u003e [-b \u003cbitrate\u003e]\n```\n\n### Options\n\n- `-i`: Path to the input audio file (e.g., `.wav`, `.mp3`).\n- `-o`: Path to the output WEM file.\n- `-b`: Bitrate for the Opus encoder (default: `64k`). You can use values like `96k`, `128k`, etc.\n\n### Example\n\n```bash\n./wemenc -i music.wav -o music.wem -b 128k\n```\n\n## How it works\n\n1.  **FFmpeg Orchestration**: The tool runs `ffmpeg` as a subprocess, pipe-encoding the input audio to an Ogg Opus stream.\n2.  **Ogg Demuxing**: A custom parser reads the Ogg stream from FFmpeg's stdout, extracting individual Opus packets and metadata like `pre-skip` and channel count.\n3.  **WEM Packaging**: The extracted packets are wrapped into a RIFF/WAVE container with Wwise-specific headers and a packet size table (`seek` chunk), making it compatible with games using the Audiokinetic Wwise engine and tools like `vgmstream`.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdloebl%2Fwemenc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdloebl%2Fwemenc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdloebl%2Fwemenc/lists"}