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
ade1c515
Commit
ade1c515
authored
Jan 14, 2022
by
Julius Künzel
Browse files
Check for mediainfo in setup wizard
parent
c04ff48b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dialogs/wizard.cpp
View file @
ade1c515
...
...
@@ -631,8 +631,6 @@ void Wizard::checkMissingCodecs()
void
Wizard
::
slotCheckPrograms
(
QString
&
infos
,
QString
&
warnings
)
{
bool
allIsOk
=
true
;
// Check first in same folder as melt exec
const
QStringList
mltpath
({
QFileInfo
(
KdenliveSettings
::
rendererpath
()).
canonicalPath
(),
qApp
->
applicationDirPath
()});
QString
exepath
;
...
...
@@ -647,7 +645,6 @@ void Wizard::slotCheckPrograms(QString &infos, QString &warnings)
exepath
=
QStandardPaths
::
findExecutable
(
QStringLiteral
(
"avconv"
));
if
(
exepath
.
isEmpty
())
{
warnings
.
append
(
i18n
(
"<li>Missing app: <b>ffmpeg</b><br/>required for proxy clips and transcoding</li>"
));
allIsOk
=
false
;
}
}
}
...
...
@@ -721,10 +718,24 @@ void Wizard::slotCheckPrograms(QString &infos, QString &warnings)
KdenliveSettings
::
setDefaultaudioapp
(
program
);
}
}
if
(
allIsOk
)
{
// OK
}
else
{
// WRONG
if
(
KdenliveSettings
::
defaultaudioapp
().
isEmpty
())
{
program
=
QStandardPaths
::
findExecutable
(
QStringLiteral
(
"audacity"
));
if
(
program
.
isEmpty
())
{
program
=
QStandardPaths
::
findExecutable
(
QStringLiteral
(
"traverso"
));
}
if
(
!
program
.
isEmpty
())
{
KdenliveSettings
::
setDefaultaudioapp
(
program
);
}
}
if
(
KdenliveSettings
::
mediainfopath
().
isEmpty
()
||
!
QFileInfo
::
exists
(
KdenliveSettings
::
mediainfopath
()))
{
program
=
QStandardPaths
::
findExecutable
(
QStringLiteral
(
"mediainfo"
));
if
(
program
.
isEmpty
())
{
infos
.
append
(
i18n
(
"<li>Missing app: <b>mediainfo</b><br/>optional for technical clip information/li>"
));
}
else
{
KdenliveSettings
::
setMediainfopath
(
program
);
}
}
}
...
...
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