Using a Canon EOS camera as a webcam in Debian
schlachter.xyz
schlachter.xyz
apt-get install gnome-video-effects-frei0r #or whatever works for you
filter_idx=2
filters=(
"videobalance"
"quarktv"
"rippletv" #2
"streaktv"
"radioactv"
"vertigotv"
"frei0r-filter-twolay0r"
"frei0r-filter-distort0r"
"dicetv"
"edgetv"
"warptv"
"revtv"
"frei0r-filter-cartoon"
"shagadelictv")
gst-launch-1.0 autovideosrc device=$CAMERA ! videoconvert ! ${filters[$filter_idx]} ! videoconvert ! videobalance ! videoconvert ! v4l2sink device=$VID_LOOPBACK
edit:I've always needed an LD_PRELOAD to launch whatever, eg
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so /usr/bin/zoom
maybe someone will chime in because they know better than me about all the details here.See also https://blog.andrewbeacock.com/2007/10/how-to-add-shared-lib...
To be fair there is an issue tracking progress - https://github.com/umlaeute/v4l2loopback/issues/268 - but it's had no updates in 18 months.
SD to USB adapters exist, but is it possible to hook up an SD-to-USB cable and have a driver present a virtual sd disk to the camera but write the video directly to your computer RAM via USB?
That would solve the problem for all dSLRs.
edit: if the elgato can do it with HDMI, the question remains can it be done directly with SD out?
e2: also, SD card readers/adapters are cheap and plentiful, this seems like it should be easier to implement
The only option I think (it's been a while) I had to vaguely enable is to have it not show the normal camera UI over HDMI, but that was a simple setting.
Having hardware emulate a SD card sounds like a niche product, if anything, whereas the only item I needed for my camera was a mini-HDMI to HDMI cable.
The SD thing has all sorts of nastiness to it.
First, you won’t have a standard usb video input, so you’re going to need to do a bunch of awkward driver work to get applications to consume the video feed.
Second, you’ll have to deal with the lag and jittery video that you get because the camera will almost certainly buffer writes.
Then you have to figure out how to get the controller in the SD reader to understand the incoming writes, which it was most certainly not designed to do.
Ah, you don't have the keys "ctrl" and "R" on your keyboard?
And I guess you also don't have grep, so you can't just history | grep modprobe.
You should consider investing in a keyboard with all the alphabet on it.
An argument I could see is having to get out the camera, put it onto a tripod, connecting power, ... etc.. Though that is only an issue if you cannot just leave everything set up.
Are you new to Linux?
As it appears to be necessary: \s, it was a lighthearted statement about how software is almost never "forget about it" and breaks on updates in unexpected ways.
Happens frequently enough to be irritating.
> Be kind. Don't be snarky. Have curious conversation; don't cross-examine. Please don't fulminate. Please don't sneer, including at the rest of the community.
> Comments should get more thoughtful and substantive, not less, as a topic gets more divisive.
> When disagreeing, please reply to the argument instead of calling names. "That is idiotic; 1 + 1 is 2, not 3" can be shortened to "1 + 1 is 2, not 3."
> Please respond to the strongest plausible interpretation of what someone says, not a weaker one that's easier to criticize. Assume good faith.
> Eschew flamebait. Avoid unrelated controversies, generic tangents, and internet tropes.
> Please don't post shallow dismissals, especially of other people's work. A good critical comment teaches us something.
But... it's just downvotes! I'm sending a polite signal, losing a bit of a digital karma score shouldn't be painful :) Please downvote me any time I comment something you think shouldn't be commented on HN!
(I just pasted the bit most relevent from the guidelines, but anyone who's not seen them should have a read of the whole lot - https://news.ycombinator.com/newsguidelines.html )
This seems like it should work very well. But... it's hard to imagine there not being some issues.
If nothing else, it will be an issue if you need to quickly do a clean reinstall, every customized thing is an extra few minutes of work, wheras a hack-less plug and play system is almost trivial to remake from scratch.
This could be amazing for a specialized application like a photo booth, but I'm not so sure about just regular desktop use.
I wouldn't do that for general visio conferencing as sound is much more important than video but for someone producing video content it is definitely worth it.
I went back to just using my Logitech 920. People probably can't mostly tell the difference given regular network glitches and so forth.
(It’s valuable to understand how this approach works: it’s using PTP, which supports roughly the commands “list the files you have” and “give me the file IMG0001.JPG”, and roughly thirty times a second it asks “give me the file ‹what the camera can currently see›.jpg”, and the video stream is that stream of JPEGs. Basically, this whole thing is a dreadful hack.)
By contrast, the cheap USB HDMI capture card I subsequently purchased (branded Simplecom DA315, but if you’ve looked into this stuff you’ll immediately recognise it as ODM hardware sold under a million brands) supports higher resolutions, normal latency (vastly lower), is hot-swappable, and doesn’t interfere with anything else trying to use v4l2loopback. Colour is not quite right, so I adjust it a bit on my camera. (This was something that surprised me when I first looked at HDMI capture cards: it seems that they’re all wrong, in differing amounts and directions. I do not understand why they can’t just be correct.) And there’s an aspect ratio problem where apps that request a lower resolution end up with the 16:9 image squashed to 4:3 with black bars added to the side. Not sure if this is a bug in the HDMI capture card firmware, Linux driver, or something else. As a demonstration of this, Google Meet in Firefox will get squished by default, but if I manually change its send resolution from auto (360p, I think) to 720p, it gets unsquished.
- high latency: in the half-second range, consistently out of sync with the audio - bulkiness: I had to place the camera on the side of the screen rather than on top, so I consistently looked away from the camera
With that experience I didn't find it worth to upgrade the setup (with mini HDMI cable, capture card, power supply) and ended up buying a crappy webcam instead
How did you hardwire power?
It's a nice second life for it.
Another, potentially cheaper way to replace a webcam is to use the main (rear) camera of an old cell phone.
Digital photography, especially using tiny sensors, is computational photography. Webcams are too cheap to have reasonable processing power internally and webcam companies don’t have the budget to create high quality post processing software for the host computer.
Also, seconded on the difference a larger sensor and better glass make for a webcam.
Dynamic range, noise, and resolution are significantly better.
Big sensor + nicer fast lenses means you require a lot less light. Nice fast glass means you can blur out the background optically without all the artefacts introduced by software background removal. If you use a zoom lens, you have a tonne of control over the framing.
I use my old iPhones as webcams. The Picture quality amazing! But I use a selfie-tripod as a mount, and it has exactly this problem.
It works with a lot of DSLRs, it doesn't require you to do any of these steps, and it captures the output. The only thing it doesn't do is then map that to an output for other applications to pick up.
There is an open request for this, but it seems to be out of scope for the application.
https://gitlab.com/entangle/entangle/-/issues/68
It could be really neat if this solves the EOS webcam issue in a tidy way.
I’ve also tried using my old 600d but with the canon provided software and it works pretty okay.
It's still enclosed in a dust-free environment. I'd say unless you shine laser beams directly at the sensor, or point it directly at the sun all day it'll be fine for many years.
Also, some (or most / all?) cameras will close the shutter curtain when disabled. Presumably you would enable the camera only when you need it.
The only thing that differentiates an SLR is the shutter/mirror mechanism, which is mechanical part and lifetime is roughly proportional to a number of "uses".