Re:OBS (macOS) Virtual Camera
by enjoylife on Wednesday June 03, 2020 @06:18PM
(#23409540)
It works for Mac
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”.
[ Parent
| on HN ]
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 ! osxvideosink