this post was submitted on 22 May 2025
30 points (100.0% liked)

Linux

56862 readers
784 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

Conceptually I can understand that Termux cant take a photo or video from a camera device because it doesnt have access to the camera drivers that Android has....

...except that the Termux API does allow you to take a photo. So why is video off limits?

you are viewing a single comment's thread
view the rest of the comments
[–] 0xd34d@sh.itjust.works 12 points 2 months ago (1 children)

Probably because it still uses the android camera API to do so rather than directly access /dev/video0.

https://github.com/termux/termux-api/blob/master/app%2Fsrc%2Fmain%2Fjava%2Fcom%2Ftermux%2Fapi%2Fapis%2FCameraPhotoAPI.java

I'm sure it is possible to add a video capture to the API 😉

[–] tetris11@lemmy.ml 3 points 2 months ago* (last edited 2 months ago)

Yeah, I mean it's not like they're calling native Android functions there (in proceedWithOpenCamera), it looks like the CameraDevice object might offer a lot more capture modes that just aren't being tapped into. Is it just a programming issue, or does Android only offer Photo contexts but not Video ones, or...?