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 kdemangen.pl
.TH KDENLIVE 1 "Nov 2008" "K Desktop Environment" "An open source video editor."
.TH Kdenlive 1 "Aug 2018" "KDE" "An open source video editor."
.SH NAME
kdenlive \- An open source non\-linear video editor.
.SH SYNOPSIS
kdenlive [Qt\-options] [KDE\-options] [options] [file]
.SH DESCRIPTION
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.
.SH OPTIONS
.SS
.SS Arguments:
......@@ -17,6 +19,9 @@ Document to open
.TP
.B \-\-mlt\-path <path>
Set the path for MLT environnement
.TP
.B \-\-mlt\-log <verbose/debug>
Set MLT log level
.SS
.SS Generic options:
.TP
......@@ -148,11 +153,9 @@ the result of calling melt, ffmpeg, etc. This can be used for debugging.
.SH SEE ALSO
.BR kdenlive_render (1).
Please see the homepage at
.BR http://www.kdenlive.org/
.BR https://www.kdenlive.org/
.br
.SH AUTHORS
.nf
Jean\-Baptiste Mardelle <jb@kdenlive.org>
.br
Marco Gittler <g.marco@freenet.de>
.br
......@@ -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