}
if (effect.attribute("tag") == "volume" || effect.attribute("tag") == "brightness") {
if (effect.attribute("id") == "fadeout" || effect.attribute("id") == "fade_to_black") {
- int end = (cropDuration() + cropStart()).frames(m_fps);
+ int end = (cropDuration() + cropStart()).frames(m_fps) - 1;
int start = end;
if (effect.attribute("id") == "fadeout") {
if (m_effectList.hasEffect(QString(), "fade_to_black") == -1) {
pos = pos - m_in;
} else if (d.attribute("id") == "fadeout" || d.attribute("id") == "fade_to_black") {
// fadeout position starts from clip end
- pos = m_out - (pos - m_in);
+ pos = m_out - pos;
}
- PositionEdit *posedit = new PositionEdit(paramName, pos, 1, m_out - m_in, m_timecode);
+ PositionEdit *posedit = new PositionEdit(paramName, pos, 0, m_out - m_in, m_timecode);
m_vbox->addWidget(posedit);
m_valueItems[paramName+"position"] = posedit;
connect(posedit, SIGNAL(parameterChanged()), this, SLOT(collectAllParameters()));
pos = m_out;
pedit->setPosition(pos);
}*/
- EffectsList::setParameter(newparam, "in", QString::number(m_out + m_in - pos));
- EffectsList::setParameter(newparam, "out", QString::number(m_out + m_in));
+ EffectsList::setParameter(newparam, "in", QString::number(m_out - pos));
+ EffectsList::setParameter(newparam, "out", QString::number(m_out));
setValue.clear();
}
} else if (type == "curve") {
} else m_effectedit->transferParamDesc(eff,
0,
m_clipref->cropStart().frames(KdenliveSettings::project_fps()),
- (m_clipref->cropStart() + m_clipref->cropDuration()).frames(KdenliveSettings::project_fps())); //minx max frame
+ (m_clipref->cropStart() + m_clipref->cropDuration()).frames(KdenliveSettings::project_fps()) - 1); //minx max frame
//m_ui.region_url->setUrl(KUrl(eff.attribute("region")));
}
if (!m_trackMode && m_clipref && update) m_clipref->setSelectedEffect(activeRow);