]> git.sesse.net Git - kdenlive/blobdiff - src/projecttree/meltjob.cpp
Speed up automatic scene detection (still very slow but better)
[kdenlive] / src / projecttree / meltjob.cpp
index 1bc16c69370b272fc4f49fd6c64c02c50224ee54..8efb1e5becc6a2942648c8425a862dcd5070ee92 100644 (file)
@@ -96,6 +96,10 @@ void MeltJob::startJob()
     else {
        m_profile = new Mlt::Profile(KdenliveSettings::current_profile().toUtf8().constData());
     }
+    if (m_extra.contains("resize_profile")) {  
+       m_profile->set_height(m_extra.value("resize_profile").toInt());
+       m_profile->set_width(m_profile->height() * m_profile->sar());
+    }
     if (out == -1) {
        prod = new Mlt::Producer(*m_profile,  m_url.toUtf8().constData());
        m_length = prod->get_length();