{"id":16748763,"url":"https://github.com/loyd/rscam","last_synced_at":"2025-04-05T13:08:57.835Z","repository":{"id":25323696,"uuid":"28750681","full_name":"loyd/rscam","owner":"loyd","description":"Rust wrapper for v4l2","archived":false,"fork":false,"pushed_at":"2023-10-05T19:56:56.000Z","size":127,"stargazers_count":114,"open_issues_count":14,"forks_count":22,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-14T02:23:11.456Z","etag":null,"topics":["camera","capture","rust","v4l2","video"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loyd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2015-01-03T18:03:28.000Z","updated_at":"2024-10-10T11:27:55.000Z","dependencies_parsed_at":"2024-06-21T05:42:37.028Z","dependency_job_id":"2082876b-8ec5-4b23-984d-f9ad68416d75","html_url":"https://github.com/loyd/rscam","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loyd%2Frscam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loyd%2Frscam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loyd%2Frscam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loyd%2Frscam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loyd","download_url":"https://codeload.github.com/loyd/rscam/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339158,"owners_count":20923014,"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":["camera","capture","rust","v4l2","video"],"created_at":"2024-10-13T02:22:47.890Z","updated_at":"2025-04-05T13:08:57.818Z","avatar_url":"https://github.com/loyd.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rscam\n\n[![Build status](https://travis-ci.org/loyd/rscam.svg)](https://travis-ci.org/loyd/rscam)\n[![Crate info](https://img.shields.io/crates/v/rscam.svg)](https://crates.io/crates/rscam)\n[![Documentation](https://docs.rs/rscam/badge.svg)](https://docs.rs/rscam)\n\n## This project is no longer maintained\nConsider to use [https://github.com/raymanfx/libv4l-rs](libv4l-rs) or something else.\nIf you would be interested in taking over some of the maintenance of the project, please let me know.\n\n## Overview\n\nRust wrapper for v4l2.\n\n```rust\nlet mut camera = rscam::new(\"/dev/video0\").unwrap();\n\ncamera.start(\u0026rscam::Config {\n    interval: (1, 30),      // 30 fps.\n    resolution: (1280, 720),\n    format: b\"MJPG\",\n    ..Default::default()\n}).unwrap();\n\nfor i in 0..10 {\n    let frame = camera.capture().unwrap();\n    let mut file = fs::File::create(\u0026format!(\"frame-{}.jpg\", i)).unwrap();\n    file.write_all(\u0026frame[..]).unwrap();\n}\n```\n\nThe wrapper uses v4l2 (e.g. `v4l2_ioctl()` instead of `ioctl()`) until feature `no_wrapper` is enabled. The feature can be useful when it's desirable to avoid dependence on *libv4l2* (for example, cross-compilation).\n\n## License\n\nLicensed under either of\n\n* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floyd%2Frscam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floyd%2Frscam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floyd%2Frscam/lists"}