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.
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
Deleted before we saved it.