Skip to content

How does /dev/video0 and dev in general work and what can I do with them?

On weekend I was tinkering with devices and I was able to put up a Raspberry Pi "security camera" which outputs a feed in to local IP address. I was then able to read this feed on my main computer and reroute it in to /dev/video0 with ffmpeg. Which somehow makes the feed to work as a webcam for example.

But I am now intrigued. How should I understand these devices and how to manipulate them? I was surprised how easy this was and it gives me the impression that Linux has a great device management system that works in a very logical (nodes) manner which even I could someday perhaps somewhat understand.

How do these devices actually work? What are they (nodes)? What can I do with them? I know this is a broad question, sorry about that. But I am genuinely interested. I want to understand at least on some level.

9 points1 comments
Open on Reddit
About this post
Posted
Archived
Score
9 · 100% up
Kind
Text
ID
apdu38

2 comments

video0 is a v4l (video for Linux) node, you can do pretty much anything you want, you can check the Linux TV wiki for more info on how to configure and use them

3 points
unknown author

Deleted before we saved it.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.