Commit 43725072 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix scene detection job (should now work on Windows).

Related to #1168
parent 18c4426b
Pipeline #77560 passed with stage
in 8 minutes and 51 seconds
...@@ -144,13 +144,7 @@ void SceneSplitTask::run() ...@@ -144,13 +144,7 @@ void SceneSplitTask::run()
m_jobDuration = int(binClip->duration().seconds()); m_jobDuration = int(binClip->duration().seconds());
int producerDuration = binClip->frameDuration(); int producerDuration = binClip->frameDuration();
//QStringList parameters = {QStringLiteral("-loglevel"),QStringLiteral("info"),QStringLiteral("-i"),source,QStringLiteral("-filter:v"),QString("scdet"),QStringLiteral("-f"),QStringLiteral("null"),QStringLiteral("-")}; //QStringList parameters = {QStringLiteral("-loglevel"),QStringLiteral("info"),QStringLiteral("-i"),source,QStringLiteral("-filter:v"),QString("scdet"),QStringLiteral("-f"),QStringLiteral("null"),QStringLiteral("-")};
QStringList parameters = {QStringLiteral("-y"),QStringLiteral("-loglevel"),QStringLiteral("info"),QStringLiteral("-i"),source,QStringLiteral("-filter:v"),QString("select='gt(scene,0.1)',showinfo"),QStringLiteral("-vsync"),QStringLiteral("vfr"),QStringLiteral("-r"),QStringLiteral("50")}; QStringList parameters = {QStringLiteral("-y"),QStringLiteral("-loglevel"),QStringLiteral("info"),QStringLiteral("-i"),source,QStringLiteral("-filter:v"),QString("select='gt(scene,0.1)',showinfo"),QStringLiteral("-vsync"),QStringLiteral("vfr"),QStringLiteral("-f"),QStringLiteral("null"),QStringLiteral("-")};
#ifdef Q_OS_WIN
parameters << QStringLiteral("-");
#else
//parameters << QStringLiteral("-");
#endif
parameters << QStringLiteral("/tmp/res.mp4");
m_jobProcess.reset(new QProcess); m_jobProcess.reset(new QProcess);
//m_jobProcess->setStandardErrorFile("/tmp/test_settings.txt"); //m_jobProcess->setStandardErrorFile("/tmp/test_settings.txt");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment