How to use your DSLR from 2008 as a webcam in 2022 (NixOS)
tomoliver.net
tomoliver.net
That might require you also remove the 'enabled = true' for the service, and make sure gphoto2 dies when the camera is unplugged?
Anyway, it was a nice read :)
sys-devices-pci0000:00-0000:00:14.0-usb1-1\x2d4-1\x2d4:1.0-sound-card1-controlC1.device
sys-devices-pci0000:00-0000:00:14.0-usb1-1\x2d1-1\x2d1:1.0-sound-card1-controlC1.device
notice the usb-`1-1:4` became `1-1:1`That makes BindsTo unpractical unless you're sure you'll always plug in the camera on the same port everytime, so it might not be best.
This made me look up how I'd do this if the needs arise, so I haven't tried, but `StopWhenUnneeded=true` in the service definition looks like it would stop it properly when the device "wanting" it is gone? cf. https://unix.stackexchange.com/questions/528803/systemd-does...
I learned something new :)
services.udev.extraRules = ''
ACTION=="add", \
ATTR{idVendor}=="04a9", \
ATTR{idProduct}=="319a", \
ENV{SYSTEMD_WANTS}+="external_webcam.service", \
SUBSYSTEM=="usb", \
TAG+="systemd"
'';
systemd.services.external_webcam = {
enable = true;
script = ''
${pkgs.gphoto2}/bin/gphoto2 --stdout --capture-movie |
${pkgs.ffmpeg}/bin/ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -f v4l2 /dev/video0
'';
wantedBy = ["multi-user.target"];
};
Worked first try! [1][1] https://gitlab.com/engmark/root/-/commit/ae59aad118e6effcf47...
Disclaimer: zero affiliation with the product (outside of being their happy customer). I simply found it way before the official continuity feature was even announced for macOS+iOS.
I bought a Logitech webcam during the pandemic. Imagine my surprise when the webcam resolution was worse than the one built into my XPS 13.
Opal C1, Instalink, continuity cam/droidcam, and a DSLR/mirrorless setup like in this article are essentially your upgrade options if you don’t want to pay for a 4k Logitech.
Wish there was a FOSS alternative.
I use https://github.com/agarciadom/ipwebcam-gst as a way to turn the MJPEG into a video device.
Only gotcha is thermals...don't think it can run like that long term without active cooling
(I read that cameras which can record longer are taxed as video cameras, so they're deliberately crippled)
Live view readout via USB is something that works far more often than HDMI.
Nikon D750 also can do it, 2014.
To accomplish what the OP does, I use a USB HDMI in, a mini HDMI to HDMI cable, and Magic Lantern on my Rebel. It works well.
Magic Lantern allows me to leave the camera in preview without overlays for indefinite time periods. It can also provide video this way, but heat can be an issue there…
I don't think this tax applies anymore.
For me, having to press the LV button twice an hour seemed more preferable than flashing the firmware.
[1] https://www.reddit.com/r/Nikon/comments/c5wjg6/how_to_turnof...
[2] https://www.reddit.com/r/Nikon/comments/hqp2wu/any_way_to_tu...
Recent cameras may have a lot more pixels but the optics should still be just as good.
I've been using this for ~2 years now, and it's been rock solid.
Doing this is less for the image quality and more for the natural representation of your face.
The camera from this article is also known as the Canon 500 or 1000D in other parts of the world.
btw it's only for Linux, so don't even bother reading the linked web, if you are in windows
Correct title:
How to use your DSLR from 2008 as a webcam IN LINUX in 2022 (NixOS)
I wished people would not omiss such important information in title when writing articles or linking them wasting everyone's time including server traffic
You can't really follow this in Arch without installing Nix and changing some parts of the instructions.
You way overestimate popularity and general knowledge of some rare Linux distros even among IT guys.