Captura系列教程--Python嵌入

Captura系列教程--Python嵌入,第1张

Author:duanyduan CreateTime:2022-04-27

Captura 介绍

一款开源,免费,无广告的视频录制,截屏等强大的软件。

Captura *** 作

需要准备以下文件(可参考上一节内容)

captura-cli.exe

ffmpeg.exe

def main():
    _basePath='E:\Luncher\viedo'
    _fileBasePath =f'D:\Video\av\python\{datetime.date.today()}'
    if not os.path.exists(_fileBasePath):
        os.makedirs(_fileBasePath)
    _filePath = f'{_fileBasePath}\{uuid.uuid1()}.mp4'
    os.chdir(_basePath)   
    _cmdlines = f'captura-cli start  --cursor --keys --clicks  --delay=1000 --source screen:0 -f {_filePath} -y'
    sub_process = subprocess.Popen(_cmdlines,shell=True)
    time.sleep(15)
    sub_process.kill()

录制结果展示

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/789170.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-05
下一篇 2022-05-05

发表评论

登录后才能评论

评论列表(0条)

保存