Skip to content

Instantly share code, notes, and snippets.

@dopuskh3
Created December 13, 2009 17:16
Show Gist options
  • Save dopuskh3/255516 to your computer and use it in GitHub Desktop.
Save dopuskh3/255516 to your computer and use it in GitHub Desktop.
#!/bin/sh
# set -x
HEIGHT=1024
WIDTH=768
FPS=15
OUT=$1
VLC=vlc
# for os x use:
# VLC=/Applications/VLC.app/Contents/MacOS/VLC
$VLC screen:// -vvv \
--screen-width=$WIDTH \
--screen-height=$HEIGHT \
--screen-fps=$FPS \
--sout-transcode-fps=$FPS \
--sout="#transcode{vcodec=h264,vb=800,scale=0.5,acodec=mp3,ab=128,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst="$OUT"}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment