Skip to content

Instantly share code, notes, and snippets.

@robertcedwards
Created October 11, 2017 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertcedwards/c08442f7e409c5c3a999dfa855aef3a2 to your computer and use it in GitHub Desktop.
Save robertcedwards/c08442f7e409c5c3a999dfa855aef3a2 to your computer and use it in GitHub Desktop.
VLC verbose mode for IDing webcam
Running "vlc -vvv qtcapture://" will initiate a capture window with the default camera while also outputting verbose logs. If you scroll through the logs you will at one point see a list of the available qtcapture video devices. My output looked like this:
[0000000100610128] qtcapture demux debug: qtcapture 0/2 FaceTime HD Camera (Built-in) 0xfa20000016ac850b
[0000000100610128] qtcapture demux debug: qtcapture 1/2 iSight 0xa28100413a366-video
Since I wanted to use the (old) iSight camera (after some trial and error) I added the device ID from above to the qtcapture command (I also changed the destination port to 3000). So it now looks like this:
vlc qtcapture://0xa28100413a366-video --sout '#transcode{vcodec=MJPG,vb=800,scale=1,fps=5,acodec=none,width=640,height=480}:std{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:3000/webcam.mjpg}'
I haven't tested it yet, but as far as I can tell timelapse should work by doing the following:
1. Install ffmpeg with 'brew install ffmpeg'
2. Insert path to ffmpeg in Octoprint settings (for me it is: /usr/local/Cellar/ffmpeg/3.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment