I've written a utility for doing video capture using Python.
Code: Select all
from os.path import expanduser
home = expanduser("~")
command =('screen:// :screen-fps=%s :screen-caching=50 :screen-top=0 '
':screen-left=0 :screen-width=%s :screen-height=%s '
':sout-udp-caching=0 :udp-caching=0 :rtsp-caching=0 :tcp-caching=0 '
'--sout=#transcode{vcodec=H264,vb=1800,scale=1,fps=%s,width=%s,height=%s}'
':std{access=file,dst=%s}' % (fps,w,h,fps,w,h,out))
call = '\"%s\" %s'%(path.replace('\\','/'), command)
record = subprocess.Popen(call, shell=True)
Thanks