Video Capture utility using Python - Question

This forum is about all development around libVLC.
BroJobBiggs
New Cone
New Cone
Posts: 1
Joined: 12 Oct 2018 03:02

Video Capture utility using Python - Question

Postby BroJobBiggs » 12 Oct 2018 03:07

Hi there, apologies if this is posted in the wrong place this is my first post.

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)
So this allows me to record my screen - now two problems - first, VLC loads maximized instead of minimized like I want it, and in order to stop the recording I have to manually close the VLC window that opens. Can someone help me with a command stop the recording and exit? Or perhaps I'm going about this the wrong way altogether?

Thanks

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 7 guests