3 ms·
It works for Mac brew install gphoto2 brew install ffmpeg --with-ffplay gphoto2 --abilities # Abilities for camera : Sony Alpha-A6300 (Cont
by enjoylife 6y ago
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”.
- ceocoder 6y agocan you try piping that to gstreamer?
- enjoylife 6y agoSure, 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 ! autovideosink
- ceocoder 6y agoper this - https://apple.stackexchange.com/a/356362 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
- code_biologist 6y agoThanks 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-ffplay
- enjoylife 6y agoYour right, they removed that option, https://formulae.brew.sh/formula/ffmpeg https://formulae.brew.sh/formula/ffmpeg. I guess ffplay is built with it by default now.