20 add(QStringList{
"-p",
"--profile"},
"profile",
"",
21 "Transcoding profile.",
"")
22 ->SetGroup(
"Encoding");
23 add(QStringList{
"--allkeys",
"-k"},
"allkeys",
false,
24 "Specifies the outputfile should be entirely keyframes.",
"")
25 ->SetGroup(
"Encoding");
26 add(
"--passthrough",
"passthru",
false,
27 "Pass through raw, unprocessed audio.",
"")
29 add(QStringList{
"-ro",
"--recorderOptions"},
"recopt",
30 "",
"Comma separated list of recordingprofile overrides.",
"")
31 ->SetGroup(
"Encoding");
32 add(
"--audiotrack",
"audiotrack", 0,
"Select specific audio track.",
"")
34 add(
"--allaudiotracks",
"allaudio", 0,
35 "Keep all audio tracks including those marked with 0 channels.",
"")
37 add(QStringList{
"-m",
"--mpeg2"},
"mpeg2",
false,
38 "Specifies that a lossless transcode should be used.",
"")
39 ->SetGroup(
"Encoding");
40 add(QStringList{
"-e",
"--ostream"},
"ostream",
"",
41 "Output stream type: ps, dvd, ts (Default: ps)",
"")
42 ->SetGroup(
"Encoding");
43 add(
"--avf",
"avf",
false,
"Generate libavformat output file.",
"")
45 add(
"--hls",
"hls",
false,
"Generate HTTP Live Stream output.",
"")
48 add(QStringList{
"-f",
"--fifodir"},
"fifodir",
"",
49 "Directory in which to write fifos to.",
"")
50 ->SetGroup(
"Frame Server");
51 add(
"--fifoinfo",
"fifoinfo",
false,
52 "Run in fifodir mode, but stop after displaying the "
53 "fifo data format.",
"")
55 add(
"--fifosync",
"fifosync",
false,
"Enforce fifo sync.",
"")
57 add(
"--cleancut",
"cleancut",
false,
58 "Improve quality of cutting by performing it partially by dropping data. "
59 "Works only in fifodir mode.",
"")
63 add(QStringList{
"-l",
"--honorcutlist"},
"usecutlist",
64 "",
"Specifies whether to use the cutlist. "
65 "(Takes an optional cutlist as argument when used with -i)",
66 "Specifies whether transcode should honor the cutlist and "
67 "remove the marked off commercials. Optionally takes a "
68 "a cutlist as an argument when used with --infile.")
69 ->SetGroup(
"Cutlist");
70 add(
"--inversecut",
"inversecut",
false,
71 "Inverses the cutlist, leaving only the marked off sections.",
"")
75 add(
"--showprogress",
"showprogress",
false,
76 "Display status info in stdout",
"")
79 add(QStringList{
"-i",
"--infile"},
"inputfile",
"",
80 "Input video for transcoding.",
"");
81 add(QStringList{
"-o",
"--outfile"},
"outputfile",
"",
82 "Optional output file for transcoding.",
"");
83 add(QStringList{
"-b",
"--buildindex"},
"reindex",
false,
84 "Build new keyframe index.",
"");
85 add(
"--video",
"video",
false,
86 "Specifies video is not a recording.",
"")
88 add(
"--queue",
"queue",
"",
89 "Add a new transcoding job of the specified recording and "
90 "profile to the jobqueue. Accepts an optional string to define "
99 add(
"--width",
"width", 0,
"Output Video Width",
"")
102 add(
"--height",
"height", 0,
"Output Video Height",
"")
105 add(
"--bitrate",
"bitrate", 800,
"Output Video Bitrate (Kbits)",
"")
108 add(
"--audiobitrate",
"audiobitrate", 64,
"Output Audio Bitrate (Kbits)",
"")
111 add(
"--maxsegments",
"maxsegments", 0,
"Max HTTP Live Stream segments",
"")
113 add(
"--noaudioonly",
"noaudioonly", 0,
"Disable Audio-Only HLS Stream",
"")
115 add(
"--hlsstreamid",
"hlsstreamid", -1,
"Stream ID to process",
"")
117 add(QStringList{
"-d",
"--delete"},
"delete",
false,
118 "Delete original after successful transcoding",
"")
119 ->SetGroup(
"Encoding");
CommandLineArg * SetRequires(const QString &opt)
Set argument as requiring given option.
CommandLineArg * SetChildOf(const QString &opt)
Set argument as child of given parent.
CommandLineArg * SetGroup(const QString &group)
Parent class for defining application command line parsers.
void addVersion(void)
Canned argument definition for –version.
void addSettingsOverride(void)
Canned argument definition for –override-setting and –override-settings-file.
void addRecording(void)
Canned argument definition for –chanid and –starttime.
void addLogging(const QString &defaultVerbosity="general", LogLevel_t defaultLogLevel=LOG_INFO)
Canned argument definition for all logging options, including –verbose, –logpath, –quiet,...
CommandLineArg * add(const QString &arg, const QString &name, bool def, QString help, QString longhelp)
void addHelp(void)
Canned argument definition for –help.
void addJob(void)
Canned argument definition for –jobid.
void LoadArguments(void) override
MythTranscodeCommandLineParser()
static constexpr const char * MYTH_APPNAME_MYTHTRANSCODE