Re:OBS (macOS) Virtual Camera
by AdamMeghji on Wednesday June 03, 2020 @04:33PM
(#23408315)
Is this possible in MacOS at all? I have an RX100 V and an Elgato Camlink HD, but would love to use that capture card w another cam, and use the RX100 over USB simultaneously.
[ Parent
| on HN ]
It works for Mac
brew install gphoto2
brew install ffmpeg --with-ffplay
gphoto2 --abilities
# Abilities for camera : Sony Alpha-A6300 (Control)
# ...
gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f matroska - | ffplay -
I'm piping it to ffplay,so this will at least let you test your camera or you could also use it in OBS as a window source. Also, make sure your cameras usb mode is not set to "mass storage" but to a “Remote Camera Control”.
Re:OBS (macOS) Virtual Camera
by code_biologist on Wednesday June 03, 2020 @09:22PM
(#23411273)
Thanks for the tip, really appreciate the actual commands. I'm wondering if anyone else is running into this:
$ brew install ffmpeg --with-ffplay
Usage: brew install [options] formula
# Install flags here, nothing about --with.
Error: invalid option: --with-ffplayYour right, they removed that option, https://formulae.brew.sh/formula/ffmpeg. I guess ffplay is built with it by default now.
can you try piping that to gstreamer?
Sure, not sure what gstreamer plugin/sink would create a loopback device, but this plays as well.
gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f matroska - | gst-launch-1.0 fdsrc fd=0 ! decodebin ! videoconvert ! videoscale ! autovideosinkper this - https://apple.stackexchange.com/a/356362
it should be,
osxvideosink
I wonder if this works, gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f matroska - | gst-launch-1.0 fdsrc fd=0 ! decodebin ! videoconvert ! videoscale ! osxvideosinkLooks like both gphoto2 and ffmepg are available on homebrew, worth giving it a shot for sure. FWIW - I did end up building my own ffmpeg because debian default didn't have NVIDIA support. Want me to give it a try?
I'd love it if you gave it a try! I've already spent enough hours re-compiling ffmpeg to get nvenc support :)
Spoke too soon, v4l2loopback-utils is the missing piece on mac. Found this with a basic search[0], if anyone enterprising enough wants to take a crack at it
https://apple.stackexchange.com/questions/353168/how-can-i-c...
Yes please! Would love to use my X-T30 as a webcam on my mac.
Cascable Pro Webcam claims to support the RX100 V:
https://cascable.se/pro-webcam/
Compatibility table:
Re:OBS (macOS) Virtual Camera
by cactus2093 on Wednesday June 03, 2020 @08:38PM
(#23410946)
Here's a simple gui app[0] that creates a syphon stream, and you can use that from an app called camera twist or possibly from OBS as well.