TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Using a Canon EOS camera as a webcam in Debian

179 点作者 dddddaviddddd超过 2 年前

13 条评论

harry8超过 2 年前
How can you write all of that and miss the fun?<p><pre><code> apt-get install gnome-video-effects-frei0r #or whatever works for you filter_idx=2 filters=( &quot;videobalance&quot; &quot;quarktv&quot; &quot;rippletv&quot; #2 &quot;streaktv&quot; &quot;radioactv&quot; &quot;vertigotv&quot; &quot;frei0r-filter-twolay0r&quot; &quot;frei0r-filter-distort0r&quot; &quot;dicetv&quot; &quot;edgetv&quot; &quot;warptv&quot; &quot;revtv&quot; &quot;frei0r-filter-cartoon&quot; &quot;shagadelictv&quot;) gst-launch-1.0 autovideosrc device=$CAMERA ! videoconvert ! ${filters[$filter_idx]} ! videoconvert ! videobalance ! videoconvert ! v4l2sink device=$VID_LOOPBACK </code></pre> edit:<p>I&#x27;ve always needed an LD_PRELOAD to launch whatever, eg<p><pre><code> LD_PRELOAD=&#x2F;usr&#x2F;lib&#x2F;x86_64-linux-gnu&#x2F;libv4l&#x2F;v4l1compat.so &#x2F;usr&#x2F;bin&#x2F;zoom </code></pre> maybe someone will chime in because they know better than me about all the details here.
评论 #32937503 未加载
yrro超过 2 年前
I wish v4l2loopback was included in the kernel. I&#x27;ve wasted far too much time messing about with DKMS in the past that I now avoid any out-of-tree modules if I can avoid it. And with Secure Boot they become untenable.<p>To be fair there is an issue tracking progress - <a href="https:&#x2F;&#x2F;github.com&#x2F;umlaeute&#x2F;v4l2loopback&#x2F;issues&#x2F;268" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;umlaeute&#x2F;v4l2loopback&#x2F;issues&#x2F;268</a> - but it&#x27;s had no updates in 18 months.
评论 #32938164 未加载
randomf超过 2 年前
I&#x27;ve been wondering for a while and can&#x27;t find an answer to this:<p>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?<p>That would solve the problem for all dSLRs.
评论 #32934940 未加载
评论 #32935277 未加载
评论 #32935265 未加载
评论 #32935779 未加载
Gigachad超过 2 年前
Nice post, but that&#x27;s way too much work to be worth it. You really want your camera and mic setup to just work rather than having to tell someone to wait 10 minutes to call because you need to reload your kernel module.
评论 #32936028 未加载
评论 #32934396 未加载
评论 #32936497 未加载
评论 #32938010 未加载
评论 #32935381 未加载
chrismorgan超过 2 年前
My experience of this general approach with a Sony α6100: high and inconsistent latency (mostly 150–200ms, but sometimes towards 400ms), low resolution (1024×576), largely not hot-swappable (most apps required that the video device be created before their process began, and trying to read from it without also starting the stream would often poison things in some way, and various actions would make the pieces just stop working together until you restart all relevant processes), and interacts poorly with other similar things (e.g. I failed to get it to combine with OBS’s virtual camera output: no matter what I did, even with creating multiple devices and attempting to control which thing wrote to which, they’d still get tangled so that neither was of any use). Still, the image quality is good, considerably better than most webcams.<p>(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.)<p>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 <i>quite</i> 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 <i>all</i> wrong, in differing amounts and directions. I do not understand why they can’t just be <i>correct</i>.) 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.
评论 #32935540 未加载
ofrzeta超过 2 年前
I did this but a kind of showstopper was the fully opened aperture in liveview mode that lead to a very shallow depth of field. With my 30mm lens we are talking about centimeters (inches). I never figured a way around this.
评论 #32938184 未加载
评论 #32938059 未加载
neuracnu超过 2 年前
I&#x27;m curious if this is any more consistent than the webcam software that Canon provided for Windows and Mac. I tried the Mac implementation briefly, but found it to be _extremely_ glitchy (even with hard-wired power).
评论 #32933488 未加载
评论 #32933390 未加载
评论 #32933765 未加载
chomp超过 2 年前
Does this actually make a better picture? Won’t your stream still be super compressed by meet&#x2F;zoom&#x2F;etc?
评论 #32933767 未加载
评论 #32933786 未加载
评论 #32934972 未加载
评论 #32933480 未加载
评论 #32933275 未加载
carlbarrdahl超过 2 年前
Played around with this earlier this year. You can also use it in a browser: <a href="https:&#x2F;&#x2F;web.dev&#x2F;porting-libusb-to-webusb" rel="nofollow">https:&#x2F;&#x2F;web.dev&#x2F;porting-libusb-to-webusb</a>
nicolaslem超过 2 年前
With a setup like this, I imagine that the camera is far enough from the center of the monitor to make having &quot;eye contact&quot; impossible. Any solution to this problem?
评论 #32938011 未加载
评论 #32937826 未加载
happymellon超过 2 年前
What&#x27;s <i>really</i> interesting is Entangle.<p><a href="https:&#x2F;&#x2F;entangle-photo.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;entangle-photo.org&#x2F;</a><p>It works with a lot of DSLRs, it doesn&#x27;t require you to do any of these steps, and it captures the output. The only thing it doesn&#x27;t do is then map that to an output for other applications to pick up.<p>There is an open request for this, but it seems to be out of scope for the application.<p><a href="https:&#x2F;&#x2F;gitlab.com&#x2F;entangle&#x2F;entangle&#x2F;-&#x2F;issues&#x2F;68" rel="nofollow">https:&#x2F;&#x2F;gitlab.com&#x2F;entangle&#x2F;entangle&#x2F;-&#x2F;issues&#x2F;68</a><p>It could be really neat if this solves the EOS webcam issue in a tidy way.
deanc超过 2 年前
How does using a DSLR affect camera lifetime? The sensor is presumably consistently exposed?
评论 #32935220 未加载
评论 #32935314 未加载
评论 #32935633 未加载
评论 #32937016 未加载
评论 #32935242 未加载
ISL超过 2 年前
Does this yield &quot;clean&quot; output, without framelines&#x2F;exposure data, etcetera?
评论 #32934828 未加载