nokhwa
Cross Platform Rust Library for Powerful Webcam/Camera Capture (by l1npengtul)
cpal
Cross-platform audio I/O library in pure Rust (by RustAudio)
nokhwa | cpal | |
---|---|---|
7 | 11 | |
445 | 2,430 | |
- | 2.2% | |
5.3 | 7.7 | |
17 days ago | about 1 month ago | |
Rust | Rust | |
Apache License 2.0 | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nokhwa
Posts with mentions or reviews of nokhwa.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-10-12.
-
Have you seen my "Camerata" lib?
Based on nokhwa rust crate.
-
Error while building: "perhaps two different versions of crate `image` are being used?"
It looks like the issue is with nokhwa. There are three open issues that reference the error: 72, 94 and 100. It looks like someone had luck switching from NV12 to YUYV after opening the stream but then I think you might end up with issue 90 where everything is pink so hyperbacked will infinitely loop waiting for an image since it can't actually read anything. The YUYV issue might have been fixed but the crate has been failing to build since the last release. That rules out setting the dependency to use the git repository. I think you just need to wait for a new release of nokhwa that fixes the issues but I don't know when that will be.
- Nannou โ An open-source creative-coding framework for Rust
- Nokhwa 0.10 Released - Simple to use Cross Platform Rust Library for Powerful Webcam/Camera Capture
-
Rust and C
It is pretty painful and requires so much unsafe but I think the "not needing to deal with bindgen" and the Rust exclusive features make it worth it. If you need an example check out https://github.com/l1npengtul/nokhwa/tree/0.9.2/nokhwa-bindings-windows
- Nokhwa 0.4.3 - Webcam support for WebAssembly, MediaFoundation(Windows), AVFoundation(MacOS), and more!
cpal
Posts with mentions or reviews of cpal.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-28.
-
What's everyone working on this week (22/2023)?
debugging this nightmare bc its blocking my hobby project. by far the most fucked up issue ive encountered since i started rust.
- Nannou โ An open-source creative-coding framework for Rust
-
Creating an Audio File Player from scratch
There is a cross-platform audio library for Rust: cpal https://github.com/rustaudio/cpal
-
Read the voice from the microphone for accessibility
cpal crate should work fine for this use case, though it might be unnecessarily low-level for your use case.
-
Modify pitch and volume while a sound file is playing
I had to do something similar to this a while back. I used cpal.
- RustAudio/cpal: Cross-platform audio I/O library in pure Rust
-
Whatโs everyone working on this week (including AoC, 51/2021)?
Working on a live performance software that would let our band have live real-time practices over the internet. Top priority is minimum latency, so I'm trying to hook it up through ASIO. Not much luck yet. I've tried cpal, but I've run into numerous known random bugs (and some versions don't compile for me). At least I confirmed that I can push the audio through a TCP socket successfully.
-
How to read out decibels from default audio input device?
With https://github.com/RustAudio/cpal you can access the microphone in a cross platform way, but youโll get values of range [-1,1] out only. To calculate absolute decibels you would need to calibrate for your specific microphone with a known source.
-
How can I visualize currently playing audio in Linux?
source of example
-
Hey Rustaceans! Got an easy question? Ask here (7/2021)!
you need to use a "loopback" device, as shown here - https://github.com/RustAudio/cpal/pull/478 (note, ive only tested this on windows - if its not supported on linux you could always plug your sound card output into its line-in/mic jack)
What are some alternatives?
When comparing nokhwa and cpal you can also consider the following projects:
hyperbacked - ๐ Superbacked, but in Rust
rodio - Rust audio playback library
OpenFrameworks - openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
swyh-rs - Stream What You Hear written in rust, inspired by SWYH.
rust-sdl2 - SDL2 bindings for Rust
rubato - An asyncronous resampling library written in Rust
bardecoder - Detect and decode QR Codes, written in 100% Rust.
openal-rs
quil - Main repo. Quil source code.
rust-vst2 - VST 2.4 API implementation in rust. Create plugins or hosts.
p5nim - ๐ธ๐ p5nim: processing for nim through p5js
sudo.rs