Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
d38e7a11
Commit
d38e7a11
authored
Jan 29, 2022
by
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
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bin/projectclip.cpp
View file @
d38e7a11
...
...
@@ -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
;
}
src/bin/projectclip.h
View file @
d38e7a11
...
...
@@ -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
;
...
...
src/jobs/stabilizetask.cpp
View file @
d38e7a11
...
...
@@ -113,6 +113,8 @@ void StabilizeTask::run()
return
;
}
producerArgs
<<
url
;
producerArgs
<<
binClip
->
enforcedParams
();
if
(
m_inPoint
>
-
1
)
{
producerArgs
<<
QString
(
"in=%1"
).
arg
(
m_inPoint
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment