Created
March 10, 2014 19:34
2 cameras, 2 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
timestamp=$(date -Im) | |
queue_bytes=$((2**24)) # 16mb queues between threads | |
camfile0="$HOME/Video/gst-video0-${timestamp}.mov" | |
camfile1="$HOME/Video/gst-video1-${timestamp}.mov" | |
camera_resolution="width=1280, height=720" | |
camera0="/dev/video0" # Logitech C920 | |
camera1="/dev/video1" # Microsoft Lifecam | |
set -x | |
gst-launch-1.0 --eos-on-shutdown -vvv \ | |
v4l2src device=$camera0 do-timestamp=true ! \ | |
image/jpeg, $camera_resolution ! \ | |
queue max-size-bytes=$queue_bytes ! \ | |
avmux_mov ! \ | |
filesink location=$camfile0 \ | |
v4l2src device=$camera1 do-timestamp=true ! \ | |
image/jpeg, $camera_resolution ! \ | |
queue max-size-bytes=$queue_bytes ! \ | |
avmux_mov ! \ | |
filesink location=$camfile1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment