Skip to content

Instantly share code, notes, and snippets.

@lifning
Created June 16, 2012 07:32
Show Gist options
  • Save lifning/2940387 to your computer and use it in GitHub Desktop.
Save lifning/2940387 to your computer and use it in GitHub Desktop.
An attempt at a streaming-and-recording GLC script that doesn't work.
#!/bin/bash
mkfifo fifo.{glc,yuv,wav} fifosound.glc
glc-capture -o - -s $* | tee -a fifosound.glc > fifo.glc &
ffmpeg -i fifo.yuv -i fifo.wav -o recording.mkv &
glc-play fifosound.glc -a 1 -t -o fifo.wav &
glc-play fifo.glc -y 1 -t -o - | tee -a fifo.yuv | yuv4mpeg_to_v4l2 /dev/video1
rm -f fifo.{glc,yuv,wav} fifosound.glc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment