I want to use my Canon EOS 5D Mk II as a webcam because it is superior to any Logitech offering for my use case. The power adapter (ACK-E6 compatible) has arrived. I want to be able to do prolonged live sessions of at least two hours.
The camera supports video in 480p and 1080p, and nothing in between. I have tried using Entangle to show a "preview" image, not clear to me if that is something different than the mentioned video capability. Some people recommend an HDMI capture card like AVerMedia Live Gamer HD 2 PCIe, but say that if you use a Canon DSLR, it is possible to fetch the live video via USB.
Actually, I have found a hint for doing it on Linux. I have upgraded to Ubuntu 19.10 which luckily provides a recent version of gphoto2 (Linux 5.3, gphoto 2.5.23):
$ sudo modprobe v4l2loopback
$ sudo gphoto2 --stdout --capture-movie | sudo ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0
[mjpeg @ 0x5564c4093ac0] Format mjpeg detected only with low score of 25, misdetection possible!
Input #0, mjpeg, from 'pipe:':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 1024x680, 25 tbr, 1200k tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> rawvideo (native))
[swscaler @ 0x5564c40e69c0] deprecated pixel format used, make sure you did set range correctly
Output #0, video4linux2,v4l2, to '/dev/video0':
Metadata:
encoder : Lavf58.20.100
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1024x680, q=2-31, 208896 kb/s, 25 fps, 25 tbn, 25 tbc
Metadata:
encoder : Lavc58.35.100 rawvideo
I wonder if there is a more streamlined and efficient solution. 680p is not too low for the moment, but not what the camera advertises to support (1080p24, PAL: 1080p25/480p25, NTSC: 1080p30/480p30). Latency is quite high and noticable.
I am new to this topic, maybe someone knowledgable can explain me some technical details.
André
_______________________________________________
Gphoto-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gphoto-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.