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
d1fc4b3e
Commit
d1fc4b3e
authored
Jul 15, 2020
by
Jean-Baptiste Mardelle
Browse files
Cleanup ffmpeg command for audio thumb
parent
d8ca8514
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jobs/audiothumbjob.cpp
View file @
d1fc4b3e
...
...
@@ -125,8 +125,7 @@ bool AudioThumbJob::computeWithFFMPEG()
int
audioStreamIndex
=
m_binClip
->
getAudioStreamFfmpegIndex
(
m_audioStream
);
if
(
!
QFile
::
exists
(
thumbPath
))
{
// Generate thumbnail used in monitor overlay
QStringList
args
;
args
<<
QStringLiteral
(
"-hide_banner"
)
<<
QStringLiteral
(
"-y"
)
<<
QStringLiteral
(
"-i"
)
<<
QUrl
::
fromLocalFile
(
filePath
).
toLocalFile
()
<<
QString
(
"-filter_complex"
);
QStringList
args
=
{
QStringLiteral
(
"-hide_banner"
),
QStringLiteral
(
"-y"
),
QStringLiteral
(
"-i"
),
QUrl
::
fromLocalFile
(
filePath
).
toLocalFile
(),
QString
(
"-filter_complex"
)};
if
(
m_audioStream
>=
0
)
{
args
<<
QString
(
"[a:%1]showwavespic=s=%2x%3:split_channels=1:scale=cbrt:colors=%4|%5"
).
arg
(
audioStreamIndex
).
arg
(
m_thumbSize
.
width
()).
arg
(
m_thumbSize
.
height
()).
arg
(
KdenliveSettings
::
thumbColor1
().
name
()).
arg
(
KdenliveSettings
::
thumbColor2
().
name
());
}
else
{
...
...
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