Commit a9e06e0a authored by Vincent Pinon's avatar Vincent Pinon
Browse files

Access to MLT debug info (command line option)

parent 946842ac
.\" This file was generated by
.TH KDENLIVE 1 "Nov 2008" "K Desktop Environment" "An open source video editor."
.TH Kdenlive 1 "Aug 2018" "KDE" "An open source video editor."
kdenlive \- An open source non\-linear video editor.
kdenlive [Qt\-options] [KDE\-options] [options] [file]
Kdenlive is an open source non\-linear video editor which supports a
large number of formats for editing, including DV, AVCHD (experimental support) and HDV. Kdenlive relies on several other open source projects, such as FFmpeg and MLT video framework.
large number of formats for editing.
It relies on several other open source projects,
such as FFmpeg and MLT video framework.
.SS Arguments:
......@@ -17,6 +19,9 @@ Document to open
.B \-\-mlt\-path <path>
Set the path for MLT environnement
.B \-\-mlt\-log <verbose/debug>
Set MLT log level
.SS Generic options:
......@@ -148,11 +153,9 @@ the result of calling melt, ffmpeg, etc. This can be used for debugging.
.BR kdenlive_render (1).
Please see the homepage at
Jean\-Baptiste Mardelle <>
Marco Gittler <>
......@@ -139,6 +139,7 @@ int main(int argc, char *argv[])
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("config"), i18n("Set a custom config file name"), QStringLiteral("config")));
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("mlt-path"), i18n("Set the path for MLT environment"), QStringLiteral("mlt-path")));
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("mlt-log"), i18n("MLT log level"), QStringLiteral("verbose/debug")));
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("i"), i18n("Comma separated list of clips to add"), QStringLiteral("clips")));
parser.addPositionalArgument(QStringLiteral("file"), i18n("Document to open"));
......@@ -152,6 +153,11 @@ int main(int argc, char *argv[])
QString clipsToLoad = parser.value(QStringLiteral("i"));
QString mltPath = parser.value(QStringLiteral("mlt-path"));
if (parser.value(QStringLiteral("mlt-log")) == QStringLiteral("verbose")) {
mlt_log_set_level( MLT_LOG_VERBOSE );
} else if (parser.value(QStringLiteral("mlt-log")) == QStringLiteral("debug")) {
mlt_log_set_level( MLT_LOG_DEBUG );
QUrl url;
if (parser.positionalArguments().count()) {
url = QUrl::fromLocalFile(parser.positionalArguments().at(0));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment