Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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”.


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-ffplay


Your 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 ! autovideosink


per 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: