QtlMovie 1.12 (A specialized FFmpeg front-end)
QtlMovieTeletextExtract Class Reference

This class extracts one Teletext subtitle stream from an MPEG-TS file into an SRT file. More...

Inheritance diagram for QtlMovieTeletextExtract:
QtlMovieTsDemux QtsTeletextHandlerInterface QtlMovieAction QtlLogger

Public Member Functions

 QtlMovieTeletextExtract (const QString &inputFileName, QtsPid pid, int teletextPage, const QString &outputFileName, const QtlMovieSettings *settings, QtlLogger *log, QObject *parent=0)
 Constructor. More...
 
virtual bool start () Q_DECL_OVERRIDE
 Start the extraction. More...
 
- Public Member Functions inherited from QtlMovieTsDemux
 QtlMovieTsDemux (const QString &fileName, const QtlMovieSettings *settings, QtlLogger *log, QObject *parent=0)
 Constructor. More...
 
virtual void abort () Q_DECL_OVERRIDE
 Abort analysis. More...
 
bool isM2tsFile () const
 Check if the input file has M2TS format. More...
 
- Public Member Functions inherited from QtlMovieAction
 QtlMovieAction (const QtlMovieSettings *settings, QtlLogger *log, QObject *parent=0)
 Constructor. More...
 
virtual ~QtlMovieAction ()
 Virtual destructor. More...
 
virtual void debug (const QString &line, const QColor &color=QColor()) Q_DECL_OVERRIDE
 Log a line of debug text. More...
 
QString description () const
 Get the description of the action. More...
 
int elapsedSeconds () const
 Get the number of seconds since the action started. More...
 
bool isCompleted () const
 Check if the action is completed. More...
 
bool isSilent () const
 Check if unimportant messages are skipped. More...
 
bool isStarted () const
 Check if the action was started (and possibly completed in the meantime). More...
 
virtual void line (const QString &line, const QColor &color=QColor()) Q_DECL_OVERRIDE
 Log a line of text. More...
 
void setDescription (const QString &description)
 Set the description of the action. More...
 
void setSilent (bool silent)
 Set if unimportant messages are skipped. More...
 
const QtlMovieSettingssettings () const
 Get the application settings. More...
 
virtual void text (const QString &text) Q_DECL_OVERRIDE
 Log text. More...
 

Protected Member Functions

virtual QtsDemuxdemux () Q_DECL_OVERRIDE
 Get the demux. More...
 
virtual void emitCompleted (bool success, const QString &message=QString()) Q_DECL_OVERRIDE
 Emit the completed() signal. More...
 
- Protected Member Functions inherited from QtlMovieTsDemux
virtual void timerEvent (QTimerEvent *event) Q_DECL_OVERRIDE
 Event handler to handle timer. More...
 
- Protected Member Functions inherited from QtlMovieAction
virtual void emitProgress (int current, int maximum, int remainingSeconds=-1)
 Emit the progress() signal. More...
 

Private Member Functions

 QtlMovieTeletextExtract () Q_DECL_EQ_DELETE
 
virtual void handleTeletextMessage (QtsTeletextDemux &demux, const QtsTeletextFrame &frame) Q_DECL_OVERRIDE
 Invoked when a complete Teletext message is available. More...
 
- Private Member Functions inherited from QtsTeletextHandlerInterface
virtual ~QtsTeletextHandlerInterface ()
 Virtual destructor. More...
 

Private Attributes

QtsTeletextDemux _demux
 Extract the Teletext frames from the file. More...
 
QString _outputFileName
 Output SRT file name. More...
 
int _page
 Teletext page. More...
 
QtsPid _pid
 PID containing Teletext to extract. More...
 
QtlSubRipGenerator _subrip
 SRT file generator. More...
 

Additional Inherited Members

- Signals inherited from QtlMovieAction
void completed (bool success)
 Emitted when the action completes. More...
 
void progress (const QString &description, int current, int maximum, int elapsedSeconds, int remainingSeconds)
 Emitted when some progress in the reporting is available. More...
 
void started ()
 Emitted when the action starts. More...
 

Detailed Description

This class extracts one Teletext subtitle stream from an MPEG-TS file into an SRT file.

Constructor & Destructor Documentation

◆ QtlMovieTeletextExtract() [1/2]

QtlMovieTeletextExtract::QtlMovieTeletextExtract ( const QString &  inputFileName,
QtsPid  pid,
int  teletextPage,
const QString &  outputFileName,
const QtlMovieSettings settings,
QtlLogger log,
QObject *  parent = 0 
)

Constructor.

Parameters
[in]inputFileNameInput MPEG-TS file name.
[in]pidPID containing Teletext to extract.
[in]teletextPageTeletext page.
[in]outputFileNameOutput SRT file name.
[in]settingsApplication settings.
[in]logWhere to log errors.
[in]parentOptional parent widget.

◆ QtlMovieTeletextExtract() [2/2]

QtlMovieTeletextExtract::QtlMovieTeletextExtract ( )
private

Member Function Documentation

◆ start()

bool QtlMovieTeletextExtract::start ( )
virtual

Start the extraction.

Reimplemented from QtlMovieTsDemux.

Returns
False if already started. True otherwise.

Reimplemented from QtlMovieTsDemux.

◆ emitCompleted()

void QtlMovieTeletextExtract::emitCompleted ( bool  success,
const QString &  message = QString() 
)
protectedvirtual

Emit the completed() signal.

Reimplemented from QtlMovieTsDemux.

Parameters
[in]successTrue when the action completed successfully, false otherwise.
[in]messageOptional error message to log.

Reimplemented from QtlMovieTsDemux.

◆ demux()

virtual QtsDemux* QtlMovieTeletextExtract::demux ( )
inlineprotectedvirtual

Get the demux.

Reimplemented from QtlMovieTsDemux.

Returns
The current demux. Cannot be null.

Implements QtlMovieTsDemux.

◆ handleTeletextMessage()

void QtlMovieTeletextExtract::handleTeletextMessage ( QtsTeletextDemux demux,
const QtsTeletextFrame frame 
)
privatevirtual

Invoked when a complete Teletext message is available.

Implementation of QtsTeletextHandlerInterface.

Parameters
[in,out]demuxThe Teletext demux.
[in]frameTeletext frame.

Implements QtsTeletextHandlerInterface.

Member Data Documentation

◆ _demux

QtsTeletextDemux QtlMovieTeletextExtract::_demux
private

Extract the Teletext frames from the file.

◆ _subrip

QtlSubRipGenerator QtlMovieTeletextExtract::_subrip
private

SRT file generator.

◆ _outputFileName

QString QtlMovieTeletextExtract::_outputFileName
private

Output SRT file name.

◆ _pid

QtsPid QtlMovieTeletextExtract::_pid
private

PID containing Teletext to extract.

◆ _page

int QtlMovieTeletextExtract::_page
private

Teletext page.


The documentation for this class was generated from the following files: