{"id":27969546,"url":"https://github.com/mgerb/vulkan-zig-video-encode","last_synced_at":"2025-06-20T05:33:42.769Z","repository":{"id":283607519,"uuid":"952321038","full_name":"mgerb/vulkan-zig-video-encode","owner":"mgerb","description":"A Vulkan Video encode example using vulkan-zig","archived":false,"fork":false,"pushed_at":"2025-03-21T05:14:37.000Z","size":4098,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T21:11:28.449Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mgerb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-03-21T05:02:17.000Z","updated_at":"2025-03-21T05:14:40.000Z","dependencies_parsed_at":"2025-03-21T18:31:33.837Z","dependency_job_id":null,"html_url":"https://github.com/mgerb/vulkan-zig-video-encode","commit_stats":null,"previous_names":["mgerb/vulkan-zig-video-encode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mgerb/vulkan-zig-video-encode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgerb%2Fvulkan-zig-video-encode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgerb%2Fvulkan-zig-video-encode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgerb%2Fvulkan-zig-video-encode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgerb%2Fvulkan-zig-video-encode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgerb","download_url":"https://codeload.github.com/mgerb/vulkan-zig-video-encode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgerb%2Fvulkan-zig-video-encode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260889905,"owners_count":23077856,"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":"2025-05-07T21:11:27.299Z","updated_at":"2025-06-20T05:33:37.760Z","avatar_url":"https://github.com/mgerb.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vulkan Zig Video Encode\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"./output.gif\" alt=\"h264 output video\"\u003e\n\u003c/div\u003e\n\nThis is essentially a rewrite of https://github.com/clemy/vulkan-video-encode-simple using the following:\n\n- [Zig](https://ziglang.org/)\n- [vulkan-zig](https://github.com/Snektron/vulkan-zig)\n\nIt leverages the Zig build system to cross compile to Windows and produces the following binaries:\n\n```\nvulkan_zig_video_encode\nvulkan_zig_video_encode.exe\n```\n\n## How it works\n\n- generates a sample video stream\n- converts RGB images to YCbCr using the compute pipeline\n- uses Vulkan Video to encode images into `out.h264`\n\n## Compiling\n\nI've on compiled this on Linux, but it could probably be done on Windows without too much effort.\nThere are a few Vulkan validation warnings that need to be cleaned up, but it is still working.\n\n### NixOS\n\n```sh\nnix-shell\nzig build\n\n# NixOS can't run dynamically linked executable so it needs some help\n# See `shell.nix` for $PATCHELF\nsh -c \"$PATCHELF ./zig-out/bin/vulkan_zig_video_encode\"\n\n# execute\n./zig-out/bin/vulkan_zig_video_encode\n```\n\n### Linux (using [Nix](https://nixos.org/))\n\n```sh\n# open `shell.nix` and comment out the line starting with LD_LIBRARY_PATH\nnix-shell\nzig build\n\n# execute\n./zig-out/bin/vulkan_zig_video_encode\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgerb%2Fvulkan-zig-video-encode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgerb%2Fvulkan-zig-video-encode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgerb%2Fvulkan-zig-video-encode/lists"}