Site Supporter
- Followers
- 0
- Following
- 0
- Joined
- Aug 29, 2020
- Posts
- 38
- Likes Received
- 35
Hello,
Have you tried using your A7III as a webcam ?
If not, give it try,
if yes, did you follow the gphoto2 exemple as I did or have you found a smarter way ?
Let's share on this !
I'm using my A7III as a V4L device on Linux so that any software can use it as a standard webcam.
I'm using gphoto2, ffmpeg and V4Lloopback
The stack I use:
* V4L (Video4Linux) is the standard framework for video streaming devices (tv tuners, webcams, video acquisition cards, ...) on Linux
* V4Lloopback is a kernel module that mirrors a video stream sent to it and make it appear as a regular source device with a V4L interface
* gphoto2 is a tool for controlling a camera over USB
* ffmeg is a general purpose audio/video encoding/decoding software
The command line I use :
gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0
What is does :
* gphoto2 --stdout --capture-movie : spams the preview function about 30times per seconds and outputs a stream of jpegs
* ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0 : takes the stream of jpegs (it's autodetected as mjpeg), transcode it as a raw yuv video and pushes it into the loopback device as if it was a recording hardware
Now any software capable of using a webcam will see a new webcam and will be able to use it.
Caveat: you need to load the v4l2loopback with exclusive_caps=1 for dumb V4L implentations like chrome to accept to use it.
Have you tried using your A7III as a webcam ?
If not, give it try,
if yes, did you follow the gphoto2 exemple as I did or have you found a smarter way ?
Let's share on this !
I'm using my A7III as a V4L device on Linux so that any software can use it as a standard webcam.
I'm using gphoto2, ffmpeg and V4Lloopback
The stack I use:
* V4L (Video4Linux) is the standard framework for video streaming devices (tv tuners, webcams, video acquisition cards, ...) on Linux
* V4Lloopback is a kernel module that mirrors a video stream sent to it and make it appear as a regular source device with a V4L interface
* gphoto2 is a tool for controlling a camera over USB
* ffmeg is a general purpose audio/video encoding/decoding software
The command line I use :
gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0
What is does :
* gphoto2 --stdout --capture-movie : spams the preview function about 30times per seconds and outputs a stream of jpegs
* ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0 : takes the stream of jpegs (it's autodetected as mjpeg), transcode it as a raw yuv video and pushes it into the loopback device as if it was a recording hardware
Now any software capable of using a webcam will see a new webcam and will be able to use it.
Caveat: you need to load the v4l2loopback with exclusive_caps=1 for dumb V4L implentations like chrome to accept to use it.