{"id":31975317,"url":"https://github.com/lukasl-dev/capture","last_synced_at":"2025-10-14T20:39:09.550Z","repository":{"id":318641996,"uuid":"1071063355","full_name":"lukasl-dev/capTUre","owner":"lukasl-dev","description":"Capture, and watch TU Vienna LectureTube livestreams straight from your terminal.","archived":false,"fork":false,"pushed_at":"2025-10-08T10:15:36.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-08T12:15:33.113Z","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":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lukasl-dev.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":"2025-10-06T20:16:11.000Z","updated_at":"2025-10-08T10:15:39.000Z","dependencies_parsed_at":"2025-10-08T12:15:54.216Z","dependency_job_id":"7e815317-3b88-4663-a012-80b026ed4b8a","html_url":"https://github.com/lukasl-dev/capTUre","commit_stats":null,"previous_names":["lukasl-dev/capture"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/lukasl-dev/capTUre","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasl-dev%2FcapTUre","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasl-dev%2FcapTUre/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasl-dev%2FcapTUre/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasl-dev%2FcapTUre/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukasl-dev","download_url":"https://codeload.github.com/lukasl-dev/capTUre/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasl-dev%2FcapTUre/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020894,"owners_count":26086949,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"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":"2025-10-14T20:39:07.827Z","updated_at":"2025-10-14T20:39:09.543Z","avatar_url":"https://github.com/lukasl-dev.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# capTUre\n\nCapture, watch, and catalogue TU Vienna LectureTube livestreams straight from your terminal.\n\n## Features\n\n- Record livestreams to local files with configurable container formats and passthrough ffmpeg options.\n- Watch channels live via mpv without having to look up LectureTube URLs manually.\n- Browse a curated list of frequently used TU Vienna lecture halls and resolve short aliases to full stream URLs.\n- Ships with a spinner-based progress UI and coloured terminal output for better feedback while recording or watching.\n\n## Prerequisites\n\n- `ffmpeg` in `$PATH` for the `record` command.\n- `mpv` in `$PATH` for the `watch` command.\n\n## Getting Started\n\n### Build with Zig\n\n```bash\nzig build -Doptimize=ReleaseSafe\n```\n\nThe resulting binary is placed under `zig-out/bin/capTUre`. You can run commands through Zig as well:\n\n```bash\nzig build run -- channels --show-urls\n```\n\n### Build with Nix\n\n```bash\nnix build .#capTUre   # produces result/bin/capTUre\nnix develop           # drops you into a shell with zig master, zls, etc.\n```\n\nBoth commands rely on the `deps.nix` link farm generated from `build.zig.zon` and will fetch the pinned `zig-cli` dependency automatically.\nThe packaged binary is wrapped so `ffmpeg` and `mpv` provided by Nix are on `PATH` at runtime.\n\n## Usage\n\n### List known channels\n\n```bash\ncapTUre channels\ncapTUre channels --show-urls      # include LectureTube links\ncapTUre channels --show-aliases   # toggle alias display (on by default)\n```\n\nThe `channels` command prints the curated set from `src/university/Channel.zig`.\nAliases such as `hs7`, `audimax`, or the full stream slug resolve to canonical URLs.\n\n### Record a livestream\n\n```bash\ncapTUre record --channel hs8\ncapTUre record --channel https://live-cdn-2.video.tuwien.ac.at/... --output-file lecture.ts\ncapTUre record --channel gm1 --format mkv --ffmpeg-opts \"-t=00:30:00\"\n```\n\n- The channel value may be a friendly alias, the human-readable name, or a full LectureTube URL.\n- If `--output-file` is omitted, capTUre stores the stream as `capTUre-\u003cunix-timestamp\u003e.ts`.\n- Additional `--ffmpeg-opts` arguments are forwarded verbatim (flag is repeatable).\n\n### Watch a livestream\n\n```bash\ncapTUre watch --channel gm2\n```\n\nThis spawns `mpv` with the correct referrer header so you can monitor the stream without manual URL lookups.\n\n## Development\n\n- Run tests: `zig build test` (or `nix build .#capTUre` for a full package build).\n- Format code using `zig fmt` (Zig handles formatting on save/build).\n- Dependencies are declared in `build.zig.zon`; update them via `zig fetch --save …` followed by regenerating `deps.nix` (e.g. with `zon2nix`).\n\n## License\n\nLicensed under the GNU Affero General Public License v3.0. See `LICENSE` for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukasl-dev%2Fcapture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukasl-dev%2Fcapture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukasl-dev%2Fcapture/lists"}