记录每30分钟保存一次桌面 [英] record desktop save every 30 minutes

查看:63
本文介绍了记录每30分钟保存一次桌面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是与同一问题有关的问题:

here is my question that related to the same problem:

通过ffmpeg录制桌面的更好方式

我有以下命令: ffmpeg -f dshow -i video ="screen-capture-recorder" -r 30 -t 10 E:\ test01.flv

我对此很满意,但我想知道是否可以每30分钟保存一次,所以如果电源关闭,我只会损失最近的30分钟.

And i am happy with it, but i wonder if i can make it save every 30 minutes so if the power went off i only loses the last 30 minutes.

我使用 C#启动和隐藏 ffmpeg cmd ,所以我想知道如何使其每30个保存到相同的 test01.flv 分钟?

I use C# to launch and hide ffmpeg cmd, so i wonder how to make it save to the same test01.flv every 30 minutes?

推荐答案

ffmpeg -f dshow -framerate 30 -i video="screen-capture-recorder" -t 1800 output

ffmpeg -f dshow -framerate 30 -i video="screen-capture-recorder" -t 00:30:00 output

在C#中检查进程是否仍在运行,如果没有运行,则再次启动它,以便在接下来的30分钟内开始记录.这取决于您如何启动子进程,因此我无法提供任何代码.

In C# check if the process is still running, if it doesn't then start it again so it starts recording for the next 30 minutes. This depends on how you are starting the child process so I cannot provide any code.

这篇关于记录每30分钟保存一次桌面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆