void MythJobQueueCommandLineParser::LoadArguments(void) { addHelp(); addSettingsOverride(); addVersion(); addLogging(); addPIDFile(); addDaemon(); }
void MythScreenWizardCommandLineParser::LoadArguments(void) { addHelp(); addSettingsOverride(); addVersion(); addLogging(); addMouse(); addDisplay(); }
void MythCCExtractorCommandLineParser::LoadArguments(void) { addHelp(); addSettingsOverride(); addVersion(); addLogging("none", LOG_ERR); add(QStringList( QStringList() << "-i" << "--infile" ), "inputfile", "", "input file", ""); }
void MythFrontendCommandLineParser::LoadArguments(void) { addHelp(); addVersion(); addWindowed(); addMouse(); addSettingsOverride(); addGeometry(); addDisplay(); addUPnP(); addLogging(); add(QStringList( QStringList() << "-r" << "--reset" ), "reset", false, "Resets appearance settings and language.", ""); add(QStringList( QStringList() << "-p" << "--prompt" ), "prompt", false, "Always prompt for backend selection.", ""); add(QStringList( QStringList() << "-d" << "--disable-autodiscovery" ), "noautodiscovery", false, "Prevent frontend from using UPnP autodiscovery.", ""); add("--jumppoint", "jumppoint", "", "Start the frontend at specified jump point.", "") ->SetGroup("Startup Behavior"); add("--runplugin", "runplugin", "", "Start the frontend within specified plugin.", "") ->SetGroup("Startup Behavior") ->SetBlocks("jumppoint"); add(QStringList( QStringList() << "-G" << "--get-setting" ), "getsetting", "", "", "") ->SetRemoved("Use the Services API instead.", "0.25"); add(QStringList( QStringList() << "-u" << "--upgrade-schema" ), "upgradeschema", "", "", "") ->SetRemoved("The frontend is no longer allowed to update\n" " the primary database schema. Use mythtv-setup\n" " or restart your primary backend to have it\n" " perform the task automatically.", "0.25"); }
void MythTranscodeCommandLineParser::LoadArguments(void) { addHelp(); addVersion(); addJob(); addRecording(); addSettingsOverride(); addLogging(); add(QStringList( QStringList() << "-p" << "--profile" ), "profile", "", "Transcoding profile.", "") ->SetGroup("Encoding"); add(QStringList( QStringList() << "--allkeys" << "-k" ), "allkeys", false, "Specifies the outputfile should be entirely keyframes.", "") ->SetGroup("Encoding"); add("--passthrough", "passthru", false, "Pass through raw, unprocessed audio.", "") ->SetGroup("Encoding"); add(QStringList( QStringList() << "-ro" << "--recorderOptions" ), "recopt", "", "Comma separated list of recordingprofile overrides.", "") ->SetGroup("Encoding"); add("--audiotrack", "audiotrack", 0, "Select specific audio track.", "") ->SetGroup("Encoding"); add("--allaudiotracks", "allaudio", 0, "Keep all audio tracks including those marked with 0 channels.", "") ->SetGroup("Encoding"); add(QStringList( QStringList() << "-m" << "--mpeg2" ), "mpeg2", false, "Specifies that a lossless transcode should be used.", "") ->SetGroup("Encoding"); add(QStringList( QStringList() << "-e" << "--ostream" ), "ostream", "", "Output stream type: dvd, ts", "") ->SetGroup("Encoding"); add("--avf", "avf", false, "Generate libavformat output file.", "") ->SetGroup("Encoding"); add("--hls", "hls", false, "Generate HTTP Live Stream output.", "") ->SetGroup("Encoding"); add(QStringList( QStringList() << "-f" << "--fifodir" ), "fifodir", "", "Directory in which to write fifos to.", "") ->SetGroup("Frame Server"); add("--fifoinfo", "fifoinfo", false, "Run in fifodir mode, but stop after displaying the " "fifo data format.", "") ->SetGroup("Frame Server"); add("--fifosync", "fifosync", false, "Enforce fifo sync.", "") ->SetGroup("Frame Server"); add("--cleancut", "cleancut", false, "Improve quality of cutting by performing it partially by dropping data. " "Works only in fifodir mode.", "") ->SetGroup("Frame Server") ->SetRequires("fifodir"); add(QStringList( QStringList() << "-l" << "--honorcutlist" ), "usecutlist", "", "Specifies whether to use the cutlist. " "(Takes an optional cutlist as argument when used with -i)", "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.") ->SetGroup("Cutlist"); add("--inversecut", "inversecut", false, "Inverses the cutlist, leaving only the marked off sections.", "") ->SetGroup("Cutlist") ->SetRequires("usecutlist"); add("--showprogress", "showprogress", false, "Display status info in stdout", "") ->SetGroup("Logging"); add(QStringList( QStringList() << "-i" << "--infile" ), "inputfile", "", "Input video for transcoding.", ""); add(QStringList( QStringList() << "-o" << "--outfile" ), "outputfile", "", "Optional output file for transcoding.", ""); add(QStringList( QStringList() << "-b" << "--buildindex" ), "reindex", false, "Build new keyframe index.", ""); add("--video", "video", false, "Specifies video is not a recording.", "") ->SetRequires("inputfile"); 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.", ""); // add("--container", "container", "", "Output file container format", "") // ->SetChildOf("avf"); // add("--acodec", "acodec", "", "Output file audio codec", "") // ->SetChildOf("avf"); // add("--vcodec", "vcodec", "", "Output file video codec", "") // ->SetChildOf("avf"); add("--width", "width", 0, "Output Video Width", "") ->SetChildOf("avf") ->SetChildOf("hls"); add("--height", "height", 0, "Output Video Height", "") ->SetChildOf("avf") ->SetChildOf("hls"); add("--bitrate", "bitrate", 800, "Output Video Bitrate (Kbits)", "") ->SetChildOf("avf") ->SetChildOf("hls"); add("--audiobitrate", "audiobitrate", 64, "Output Audio Bitrate (Kbits)", "") ->SetChildOf("avf") ->SetChildOf("hls"); add("--maxsegments", "maxsegments", 0, "Max HTTP Live Stream segments", "") ->SetChildOf("hls"); add("--noaudioonly", "noaudioonly", 0, "Disable Audio-Only HLS Stream", "") ->SetChildOf("hls"); add("--hlsstreamid", "hlsstreamid", -1, "Stream ID to process", "") ->SetChildOf("hls"); }
void MythUtilCommandLineParser::LoadArguments(void) { CommandLineArg::AllowOneOf( QList<CommandLineArg*>() // fileutils.cpp << add("--copyfile", "copyfile", false, "Copy a MythTV Storage Group file", "") ->SetGroup("File") ->SetRequiredChild(QStringList("infile") << "outfile") // mpegutils.cpp << add("--pidcounter", "pidcounter", false, "Count pids in a MythTV Storage Group file", "") ->SetGroup("MPEG-TS") ->SetRequiredChild("infile") << add("--pidfilter", "pidfilter", false, "Filter pids in a MythTV Storage Group file", "") ->SetGroup("MPEG-TS") ->SetRequiredChild(QStringList("infile") << "outfile") << add("--pidprinter", "pidprinter", false, "Print PSIP pids in a MythTV Storage Group file", "") ->SetGroup("MPEG-TS") ->SetRequiredChild("infile") ->SetChild("outfile") // markuputils.cpp << add("--gencutlist", "gencutlist", false, "Copy the commercial skip list to the cutlist.", "") ->SetGroup("Recording Markup") ->SetRequiredChild(QStringList("chanid") << "starttime") << add("--getcutlist", "getcutlist", false, "Display the current cutlist.", "") ->SetGroup("Recording Markup") ->SetRequiredChild(QStringList("chanid") << "starttime") << add("--setcutlist", "setcutlist", "", "Set a new cutlist in the form:\n" "#-#[,#-#]... (ie, 1-100,1520-3012,4091-5094)", "") ->SetGroup("Recording Markup") ->SetRequiredChild(QStringList("chanid") << "starttime") << add("--clearcutlist", "clearcutlist", false, "Clear the cutlist.", "") ->SetGroup("Recording Markup") ->SetRequiredChild(QStringList("chanid") << "starttime") << add("--getskiplist", "getskiplist", false, "Display the current commercial skip list.", "") ->SetGroup("Recording Markup") ->SetRequiredChild(QStringList("chanid") << "starttime") << add("--setskiplist", "setskiplist", "", "Set a new commercial skip list in the form:\n" "#-#[,#-#]... (ie, 1-100,1520-3012,4091-5094)", "") ->SetGroup("Recording Markup") ->SetRequiredChild(QStringList("chanid") << "starttime") << add("--clearskiplist", "clearskiplist", false, "Clear the commercial skip list.", "") ->SetGroup("Recording Markup") ->SetRequiredChild(QStringList("chanid") << "starttime") // backendutils.cpp << add("--resched", "resched", false, "Trigger a run of the recording scheduler on the existing " "master backend.", "This command will connect to the master backend and trigger " "a run of the recording scheduler. The call will return " "immediately, however the scheduler run may take several " "seconds to a minute or longer to complete.") ->SetGroup("Backend") << add("--scanvideos", "scanvideos", false, "Trigger a rescan of media content in MythVideo.", "This command will connect to the master backend and trigger " "a run of the Video scanner. The call will return " "immediately, however the scanner may take several seconds " "to tens of minutes, depending on how much new or moved " "content it has to hash, and how quickly the scanner can " "access those files to do so. If enabled, this will also " "trigger the bulk metadata scanner upon completion.") ->SetGroup("Backend") << add("--event", "event", "", "Send a backend event test message.", "") ->SetGroup("Backend") << add("--systemevent", "systemevent", "", "Send a backend SYSTEM_EVENT test message.", "") ->SetGroup("Backend") << add("--clearcache", "clearcache", false, "Trigger a cache clear on all connected MythTV systems.", "This command will connect to the master backend and trigger " "a cache clear event, which will subsequently be pushed to " "all other connected programs. This event will clear the " "local database settings cache used by each program, causing " "options to be re-read from the database upon next use.") ->SetGroup("Backend") // jobutils.cpp << add("--queuejob", "queuejob", "", "Insert a new job into the JobQueue.", "Schedule the specified job type (transcode, commflag, " "metadata, userjob1, userjob2, userjob3, userjob4) to run " "for the recording with the given chanid and starttime.") ->SetGroup("JobQueue") ->SetRequires("chanid") ->SetRequires("starttime") // messageutils.cpp << add("--message", "message", false, "Display a message on a frontend", "") ->SetGroup("Messaging") << add("--print-template", "printtemplate", false, "Print the template to be sent to the frontend", "") ->SetGroup("Messaging") ); // mpegutils.cpp add("--pids", "pids", "", "Pids to process", "") ->SetRequiredChildOf("pidfilter") ->SetRequiredChildOf("pidprinter"); add("--ptspids", "ptspids", "", "Pids to extract PTS from", "") ->SetGroup("MPEG-TS"); add("--packetsize", "packetsize", 188, "TS Packet Size", "") ->SetChildOf("pidcounter") ->SetChildOf("pidfilter"); add("--noautopts", "noautopts", false, "Disables PTS discovery", "") ->SetChildOf("pidprinter"); add("--xml", "xml", false, "Enables XML output of PSIP", "") ->SetChildOf("pidprinter"); // messageutils.cpp add("--udpport", "udpport", 6948, "(optional) UDP Port to send to", "") ->SetChildOf("message"); add("--bcastaddr", "bcastaddr", "127.0.0.1", "(optional) IP address to send to", "") ->SetChildOf("message"); // Generic Options used by more than one utility addRecording(); addInFile(true); addSettingsOverride(); addHelp(); addVersion(); addLogging(); allowExtras(); }