{"id":19534475,"url":"https://github.com/carsonfenimore/libcamlite-rs","last_synced_at":"2026-03-06T02:41:13.551Z","repository":{"id":258255766,"uuid":"870414244","full_name":"carsonfenimore/libcamlite-rs","owner":"carsonfenimore","description":"Rust bindings for libcamlite","archived":false,"fork":false,"pushed_at":"2024-11-01T11:53:58.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-26T18:48:38.563Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/carsonfenimore.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}},"created_at":"2024-10-10T02:03:54.000Z","updated_at":"2025-05-09T14:02:33.000Z","dependencies_parsed_at":"2024-10-18T06:55:53.380Z","dependency_job_id":null,"html_url":"https://github.com/carsonfenimore/libcamlite-rs","commit_stats":null,"previous_names":["carsonfenimore/libcamlite-rs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/carsonfenimore/libcamlite-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carsonfenimore%2Flibcamlite-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carsonfenimore%2Flibcamlite-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carsonfenimore%2Flibcamlite-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carsonfenimore%2Flibcamlite-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carsonfenimore","download_url":"https://codeload.github.com/carsonfenimore/libcamlite-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carsonfenimore%2Flibcamlite-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281812108,"owners_count":26565872,"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-30T02:00:06.501Z","response_time":61,"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":"2024-11-11T02:14:28.394Z","updated_at":"2026-03-06T02:41:13.526Z","avatar_url":"https://github.com/carsonfenimore.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libcamlite-rs\nThis crate brings libcamlite (https://github.com/carsonfenimore/libcamlite) support to rust!\n\nAn example using this library is See https://github.com/carsonfenimore/libcamlite-rs-test for sample code. The core of thie sample code is:\n\n    let libcam = LibCamClient::new();\n    let lowres = StreamParams{ width: 300, height: 300, format: StreamFormat::STREAM_FORMAT_RGB, framerate: 30};\n    libcam.client.setupLowres(\u0026lowres);\n    let h264Params = StreamParams{ width: 1920, height: 1080, format:  StreamFormat::STREAM_FORMAT_H264, framerate: 30};\n    libcam.client.setupH264(\u0026h264Params, 5, \u0026\"main\".to_owned(), \u0026\"2mbps\".to_owned());\n    let mycb = Box::new(MyCallback::new(lowres));\n    libcam.setCallbacks(mycb);\n    libcam.run();\n\nThis produces rock steady 30 fps of both rgb and h264:\n\n    low: 31 calls in past 1.0325267 seconds; 30.023436 calls/sec\n    h264: 31 calls in past 1.0341291 seconds; 29.976913 calls/sec\n    Wrote output.ppm\n    low: 31 calls in past 1.0325396 seconds; 30.023062 calls/sec\n    h264: 30 calls in past 1.0032188 seconds; 29.903748 calls/sec\n\nAll this at the cost of about 70MB of ram a load average of 0.5 on a raspberry pi zero 2w running bullseye aarch64!  Note: you can view the output.h264 file in VLC or individual ppm conversion of the rgb stills using any image viewer.\n\nVersions:\n  - 0.1.9: support latest libcamlite, which supports latest libcamera/rpicam-apps\n  - 0.1.2: fixes the crate so that it builds the libcamlite dependency automatically.\n\n\n## Building\nYou must meet all the requirements of building libcamlite - including building libcamera and rpicam-apps. See https://github.com/carsonfenimore/libcamlite for details.\n\nYou can then do the following:\n\n```\nsudo apt install -y libclang-dev\ngit submodule update --init\ncargo build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarsonfenimore%2Flibcamlite-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarsonfenimore%2Flibcamlite-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarsonfenimore%2Flibcamlite-rs/lists"}