-
Notifications
You must be signed in to change notification settings - Fork 343
/
commandlineparser.cpp
58 lines (51 loc) · 2.7 KB
/
commandlineparser.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using namespace std;
#include <QString>
#include "mythcorecontext.h"
#include "commandlineparser.h"
MythTranscodeCommandLineParser::MythTranscodeCommandLineParser() :
MythCommandLineParser(MYTH_APPNAME_MYTHTRANSCODE)
{ LoadArguments(); }
void MythTranscodeCommandLineParser::LoadArguments(void)
{
addHelp();
addVersion();
addJob();
addRecording();
addSettingsOverride();
addLogging();
add(QStringList( QStringList() << "-i" << "--infile" ), "inputfile", "",
"Input video for transcoding.", "");
add(QStringList( QStringList() << "-o" << "--outfile" ), "outputfile", "",
"Optional output file for transcoding.", "");
add(QStringList( QStringList() << "-p" << "--profile" ), "profile", "",
"Transcoding profile.", "");
add(QStringList( QStringList() << "-l" << "--honorcutlist" ), "usecutlist",
"", "Specifies whether to use the cutlist.",
"Specifies whether transcode should honor the cutlist and "
"remove the marked off commercials. Optionally takes a "
"a cutlist as an argument when used with --infile.");
add("--inversecut", "inversecut", false,
"Inverses the cutlist, leaving only the marked off sections.", "");
add(QStringList( QStringList() << "--allkeys" << "-k" ), "allkeys", false,
"Specifies the outputfile should be entirely keyframes.", "");
add(QStringList( QStringList() << "-f" << "--fifodir" ), "fifodir", "",
"Directory in which to write fifos to.", "");
add("--fifosync", "fifosync", false, "Enforce fifo sync.", "");
add("--passthrough", "passthru", false, "Pass through raw, unprocessed audio.", "");
add(QStringList( QStringList() << "-b" << "--buildindex" ), "reindex", false,
"Build new keyframe index.", "");
add("--video", "video", false,
"Specifies video is not a recording, must use --infile.", "");
add("--showprogress", "showprogress", false, "Display status info in stdout", "");
add(QStringList( QStringList() << "-ro" << "--recorderOptions" ), "recopt",
"", "Comma separated list of recordingprofile overrides.", "");
add("--audiotrack", "audiotrack", 0, "Select specific audio track.", "");
add(QStringList( QStringList() << "-m" << "--mpeg2" ), "mpeg2", false,
"Specifies that a lossless transcode should be used.", "");
add(QStringList( QStringList() << "-e" << "--ostream" ), "ostream", "",
"Output stream type: dvd, ps", "");
add("--queue", "queue", "",
"Add a new transcoding job of the specified recording and "
"profile to the jobqueue. Accepts an optional string to define "
"the hostname.", "");
}