by enjoylife · 6y ago · 0 comments
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”. $ brew install ffmpeg --with-ffplay
Usage: brew install [options] formula
# Install flags here, nothing about --with.
Error: invalid option: --with-ffplay 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 ! autovideosinkit 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