{"id":13524778,"url":"https://github.com/excamera/alfalfa","last_synced_at":"2025-05-16T07:04:52.534Z","repository":{"id":14358768,"uuid":"17068497","full_name":"excamera/alfalfa","owner":"excamera","description":"Purely functional video codec, used for ExCamera and Salsify","archived":false,"fork":false,"pushed_at":"2023-06-07T15:02:52.000Z","size":2330,"stargazers_count":1201,"open_issues_count":14,"forks_count":113,"subscribers_count":57,"default_branch":"master","last_synced_at":"2025-04-08T16:08:40.241Z","etag":null,"topics":["decoder","encoder","video","vp8"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/excamera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2014-02-21T20:20:55.000Z","updated_at":"2025-03-03T20:47:04.000Z","dependencies_parsed_at":"2022-08-30T02:02:32.703Z","dependency_job_id":"7ffa7557-8695-4bdc-93b8-415f85ab479a","html_url":"https://github.com/excamera/alfalfa","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/excamera%2Falfalfa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/excamera%2Falfalfa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/excamera%2Falfalfa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/excamera%2Falfalfa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/excamera","download_url":"https://codeload.github.com/excamera/alfalfa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254485055,"owners_count":22078767,"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":["decoder","encoder","video","vp8"],"created_at":"2024-08-01T06:01:13.380Z","updated_at":"2025-05-16T07:04:47.524Z","avatar_url":"https://github.com/excamera.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# Alfalfa [![Build Status](https://travis-ci.org/excamera/alfalfa.svg?branch=master)](https://travis-ci.org/excamera/alfalfa)\n\nAlfalfa is a [VP8](https://en.wikipedia.org/wiki/VP8) encoder and\ndecoder, implemented in explicit state-passing style and developed by\nthe Systems and Networking Research group at Stanford University. It\nis the basis for the\n[ExCamera](https://www.usenix.org/conference/nsdi17/technical-sessions/presentation/fouladi)\nand [Salsify](https://snr.stanford.edu/salsify) systems.\n\n## License\n\nAlmost all the source files are licensed under the [BSD 2-clause\nlicense](https://opensource.org/licenses/bsd-license.php). Alfalfa\nlinks against [x264](https://www.videolan.org/developers/x264.html) to\ncompute the SSIM (quality) of frames. Because this library is\ndistributed under the GNU GPL 2+, so is Alfalfa's\n[ssim.cc](https://github.com/excamera/alfalfa/blob/master/src/util/ssim.cc)\nfile, and the overall Alfalfa package.\n\n## Build directions\n\nTo build the source, you'll need the following packages:\n\n* `g++` \u003e= 5.0\n* `yasm`\n* `libxinerama-dev`\n* `libxcursor-dev`\n* `libglu1-mesa-dev`\n* `libboost-all-dev`\n* `libx264-dev`\n* `libxrandr-dev`\n* `libxi-dev`\n* `libglew-dev`\n* `libglfw3-dev`\n\nThe rest should be straightforward:\n\n```\n$ ./autogen.sh\n$ ./configure\n$ make -j$(nproc)\n$ sudo make install\n```\n\n\n## Salsify\n\nSource code for Salsify sender and reciever programs can be found at [`src/salsify`](https://github.com/excamera/alfalfa/tree/master/src/salsify).\n\nFirst, run the receiver program:\n\n```\nsalsify-receiver [PORT] 1280 720\n```\n\nThen, run the sender program:\n\n```\nsalsify-sender --device [CAMERA, usually /dev/video0] [HOST] [PORT] 1337\n```\n\nThe default pixel format is YUV420. Most webcams support raw YUV420, however the frame rate might be low.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexcamera%2Falfalfa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexcamera%2Falfalfa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexcamera%2Falfalfa/lists"}