{"id":22886380,"url":"https://github.com/Pragmatic-Elixir-Meetup/rpi-video-rs","last_synced_at":"2025-08-11T21:31:50.584Z","repository":{"id":57663313,"uuid":"204694758","full_name":"Pragmatic-Elixir-Meetup/rpi-video-rs","owner":"Pragmatic-Elixir-Meetup","description":"Rust version of H264 video record on Raspberry Pi","archived":false,"fork":false,"pushed_at":"2019-12-03T14:12:09.000Z","size":43,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-13T20:17:59.083Z","etag":null,"topics":["h264","raspberry-pi-camera","rust-embedded"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/Pragmatic-Elixir-Meetup.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}},"created_at":"2019-08-27T12:07:19.000Z","updated_at":"2023-08-29T13:12:02.000Z","dependencies_parsed_at":"2022-09-13T07:01:56.946Z","dependency_job_id":null,"html_url":"https://github.com/Pragmatic-Elixir-Meetup/rpi-video-rs","commit_stats":null,"previous_names":["silathdiir/rpi-video-rs"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pragmatic-Elixir-Meetup%2Frpi-video-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pragmatic-Elixir-Meetup%2Frpi-video-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pragmatic-Elixir-Meetup%2Frpi-video-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pragmatic-Elixir-Meetup%2Frpi-video-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pragmatic-Elixir-Meetup","download_url":"https://codeload.github.com/Pragmatic-Elixir-Meetup/rpi-video-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229608890,"owners_count":18098089,"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":["h264","raspberry-pi-camera","rust-embedded"],"created_at":"2024-12-13T20:18:29.116Z","updated_at":"2024-12-13T20:18:30.171Z","avatar_url":"https://github.com/Pragmatic-Elixir-Meetup.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rpi-video-rs\n\nThis project implements `H264` video record on Raspberry Pi. It uses the\n`rust-ffi` binding library\n[rpi-mmal-rs](https://github.com/Pragmatic-Elixir-Meetup/rpi-mmal-rs).\n\n## Usage\n\nAdd the following to your `Cargo.toml`:\n\n```toml\n[dependencies]\nrpi-video-rs = \"0.0.3\"\n```\n\nYou could checkout the user code in folder `examples/`.\nAnd run the `simple` one as below.\n\n```\ncargo run --example simple\n```\n\n## Development\n\nSince this project requires the real camera to record H264 videos, you needs a\nRPI to run or test. But you could also uses a cross-compiling environment for\ncompiling and developing. We offer a Dockerfile (in folder `tools/docker/`)\nwhich is a separate cross-compiling environment.\n\nFor developing on either a RPI device or a Docker container, you should install\nthe standard Rust development environment, and then adds Rust targets as below.\n\n```\nrustup target add arm-unknown-linux-gnueabihf\nrustup target add armv7-unknown-linux-gnueabihf\n```\n\n### Installing Camera Device on RPI\n\n1. Adds text `bcm2835-v4l2` to the bottom of file `/etc/modules`.\n\n```\nsudo echo bcm2835-v4l2 \u003e\u003e /etc/modules\n```\n\n2. Activates the camera in configuration.\n\n```\nsudo raspi-config\n```\n\n3. Follows the prompt to reboot Raspberry PI.\n\n4. You could use the command `raspivid` to test recording a `H264` video and\ncheck if the camera is installed properly.\n\n```\nraspivid -o test_video.h264\n```\n\n### C Version Code\n\n1. Enters into the folder `tools/c_ver`, and runs `make` to compile the command\n`rpi_video.out`.\n\n```\npushd tools/c_ver\nmake\n```\n\n2. Runs the build command `rpi_video.out` to record a sample video.\n\n```\n./rpi_video.out\n```\n\n### Rust Simple Example\n\nYou could run the Rust simple example as below.\n\n```\ncargo run --example simple\n```\n\n## TODO\n\n1. Integrates with a CI for testing successful compilation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPragmatic-Elixir-Meetup%2Frpi-video-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPragmatic-Elixir-Meetup%2Frpi-video-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPragmatic-Elixir-Meetup%2Frpi-video-rs/lists"}