截图失败时,返回ffmpeg日志; ffmpeg命令支持相对路径

This commit is contained in:
ziyue
2022-02-24 11:28:48 +08:00
parent a3d696d805
commit 63f22ee6f2
5 changed files with 46 additions and 25 deletions

View File

@@ -24,7 +24,7 @@ class Process {
public:
Process();
~Process();
void run(const std::string &cmd,const std::string &log_file);
void run(const std::string &cmd, std::string &log_file);
void kill(int max_delay,bool force = false);
bool wait(bool block = true);
int exit_code();