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

Clip stabilize: keep track of bin clip rotation.

Related to #1316
parent f7b1eef6
Pipeline #130562 passed with stage
in 5 minutes and 42 seconds
......@@ -2208,3 +2208,15 @@ void ProjectClip::importJsonMarkers(const QString &json)
{
getMarkerModel()->importFromJson(json, true);
}
const QStringList ProjectClip::enforcedParams() const
{
QStringList params;
QStringList paramNames = {QStringLiteral("rotate"),QStringLiteral("autorotate")};
for (auto &name : paramNames) {
if (hasProducerProperty(name)) {
params << QString("%1=%2").arg(name, getProducerProperty(name));
}
}
return params;
}
......@@ -234,6 +234,8 @@ public:
int getAudioMax(int stream);
/** @brief Refresh zones of insertion in timeline. */
void refreshBounds();
/** @brief Retuns a list of important enforces parameters in MLT format, for example to disable autorotate. */
const QStringList enforcedParams() const;
protected:
friend class ClipModel;
......
......@@ -113,6 +113,8 @@ void StabilizeTask::run()
return;
}
producerArgs << url;
producerArgs << binClip->enforcedParams();
if (m_inPoint > -1) {
producerArgs << QString("in=%1").arg(m_inPoint);
}
......
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