Go to the documentation of this file.
22 #include <sys/types.h>
27 #include <QCoreApplication>
33 #include "libmythbase/mythversion.h"
40 int main(
int argc,
char *argv[])
62 QCoreApplication app(argc, argv);
63 QCoreApplication::setApplicationName(
"mythexternrecorder");
75 if (!conf_file.isEmpty())
87 QString command = QString(
"ffmpeg -re -i \"%1\" "
88 "-c:v copy -c:a copy -f mpegts -")
92 if (process ==
nullptr)
148 LOG(VB_GENERAL, LOG_WARNING,
"Finished.");
void SetDescription(const QString &desc)
void HasTuner(const QString &serial)
void TuneChannel(const QString &serial, const QVariantMap &chaninfo)
void Fill(const QByteArray &buffer)
void StopStreaming(const QString &serial, bool silent)
MythCommFlagCommandLineParser cmdline
void FirstChannel(const QString &serial)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
void SetBlockSize(const QString &serial, int blksz)
void HasTuner(const QString &serial)
void HasPictureAttributes(const QString &serial)
void TuneStatus(const QString &serial)
void LockTimeout(const QString &serial)
void TuneChannel(const QString &serial, const QVariantMap &args)
void LockTimeout(const QString &serial)
virtual bool Parse(int argc, const char *const *argv)
Loop through argv and populate arguments with values.
void LoadChannels(const QString &serial)
@ GENERIC_EXIT_INVALID_CMDLINE
Command line parse error.
void SendMessage(const QString &command, const QString &serial, const QString &message, const QString &status="")
@ GENERIC_EXIT_OK
Exited with no error.
static void PrintVersion(void)
Print application version information.
void ErrorMessage(const QString &msg)
void PrintHelp(void) const
Print command line option help.
void StopStreaming(const QString &serial, bool silent)
void NextChannel(const QString &serial)
void logStop(void)
Entry point for stopping logging for an application.
void TuneStatus(const QString &serial)
void NextChannel(const QString &serial)
void FirstChannel(const QString &serial)
void StartStreaming(const QString &serial)
QString toString(const QString &key) const
Returns stored QVariant as a QString, falling to default if not provided.
bool toBool(const QString &key) const
Returns stored QVariant as a boolean.
void LoadChannels(const QString &serial)
void SetBlockSize(const QString &serial, int blksz)
void SetDescription(const QString &desc)
@ GENERIC_EXIT_NOT_OK
Exited with error.
int main(int argc, char *argv[])
QString GetLogFilePath(void)
Helper utility for logging interface to pull path from –logpath.
void HasPictureAttributes(const QString &serial)
int ConfigureLogging(const QString &mask="general", bool progress=false)
Read in logging options and initialize the logging interface.
void StartStreaming(const QString &serial)
void ErrorMessage(const QString &msg)
void SendMessage(const QString &command, const QString &serial, const QString &message, const QString &status="")
void Fill(const QByteArray &buffer)