Skip to content

Instantly share code, notes, and snippets.

@dende
Created March 30, 2018 20:50
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 dende/f5f738c3816d294791d3f040eb46503f to your computer and use it in GitHub Desktop.
Save dende/f5f738c3816d294791d3f040eb46503f to your computer and use it in GitHub Desktop.
myrecordwebcam(){
nohup avconv -f video4linux2 -thread_queue_size 512 -r 30 -video_size 1280x720 -input_format mjpeg -i /dev/video1 -f alsa -thread_queue_size 512 -i plughw:U0x46d0x823,0 -ar 22050 -ab 128k$
}
alias rwc=myrecordwebcam
mystopwebcam(){
killall avconv
}
alias swc=mystopwebcam
myopen(){
xdg-open "$1" >/dev/null 2>/dev/null
}
alias op=myopen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment