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

Fix extract zone (improve ffmpeg arguments and drop locale specific seconds conversion)

CCBUG: 411970
parent 6cc7cb33
...@@ -135,9 +135,7 @@ bool CutClipJob::startJob() ...@@ -135,9 +135,7 @@ bool CutClipJob::startJob()
m_done = true; m_done = true;
return false; return false;
} }
QString startString = locale.toString(m_in.seconds()); QStringList params = {QStringLiteral("-y"),QStringLiteral("-stats"),QStringLiteral("-v"),QStringLiteral("error"),QStringLiteral("-noaccurate_seek"),QStringLiteral("-ss"),QString::number(m_in.seconds()),QStringLiteral("-i"),m_sourceUrl, QStringLiteral("-t"), QString::number((m_out-m_in).seconds()),QStringLiteral("-avoid_negative_ts"),QStringLiteral("make_zero")};
QString durationString = locale.toString((m_out - m_in).seconds());
QStringList params = {QStringLiteral("-y"),QStringLiteral("-stats"),QStringLiteral("-v"),QStringLiteral("error"),QStringLiteral("-ss"),startString, QStringLiteral("-t"), durationString,QStringLiteral("-i"),m_sourceUrl};
params << m_encodingParams << m_destUrl; params << m_encodingParams << m_destUrl;
m_jobProcess = std::make_unique<QProcess>(new QProcess); m_jobProcess = std::make_unique<QProcess>(new QProcess);
connect(m_jobProcess.get(), &QProcess::readyReadStandardError, this, &CutClipJob::processLogInfo); connect(m_jobProcess.get(), &QProcess::readyReadStandardError, this, &CutClipJob::processLogInfo);
......
Supports Markdown
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