Skip to content

Instantly share code, notes, and snippets.

@rnrneverdies
Last active March 2, 2018 04:13
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 rnrneverdies/93e0321b97670e3f9c1c1e33fdb0ef7f to your computer and use it in GitHub Desktop.
Save rnrneverdies/93e0321b97670e3f9c1c1e33fdb0ef7f to your computer and use it in GitHub Desktop.
Script to record 3 LifeCam cameras
#!/usr/bin/env bash
ffmpeg -y -rtbufsize 102M -f dshow -video_size 640x480 -framerate 30 -pixel_format yuyv422 \
-video_device_number 0 -i video="Microsoft® LifeCam Studio(TM)" -t 60 -c:v copy -crf 0 \
camera0.mkv &
ffmpeg -y -rtbufsize 102M -f dshow -video_size 640x480 -framerate 30 -pixel_format yuyv422 \
-video_device_number 1 -i video="Microsoft® LifeCam Studio(TM)" -t 60 -c:v copy -crf 0 \
camera1.mkv &
ffmpeg -y -rtbufsize 102M -f dshow -video_size 640x480 -framerate 30 -pixel_format yuyv422 \
-video_device_number 2 -i video="Microsoft® LifeCam Studio(TM)" -t 60 -c:v copy -crf 0 \
camera2.mkv &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment