MythTV  master
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Transcode Class Reference

#include <transcode.h>

Inheritance diagram for Transcode:
Inheritance graph
[legend]
Collaboration diagram for Transcode:
Collaboration graph
[legend]

Public Member Functions

 Transcode (ProgramInfo *pginfo)
 
 ~Transcode () override
 
int TranscodeFile (const QString &inputname, const QString &outputname, const QString &profileName, bool honorCutList, bool framecontrol, int jobID, const QString &fifodir, bool fifo_info, bool cleanCut, frm_dir_map_t &deleteMap, int AudioTrackNo, bool passthru=false)
 
void ShowProgress (bool val)
 
void SetRecorderOptions (const QString &options)
 
void SetAVFMode (void)
 
void SetHLSMode (void)
 
void SetHLSStreamID (int streamid)
 
void SetHLSMaxSegments (int segments)
 
void SetCMDContainer (const QString &container)
 
void SetCMDAudioCodec (const QString &codec)
 
void SetCMDVideoCodec (const QString &codec)
 
void SetCMDHeight (int height)
 
void SetCMDWidth (int width)
 
void SetCMDBitrate (int bitrate)
 
void SetCMDAudioBitrate (int bitrate)
 
void DisableAudioOnlyHLS (void)
 

Private Member Functions

bool GetProfile (const QString &profileName, const QString &encodingType, int height, int frameRate)
 
void ReencoderAddKFA (long curframe, long lastkey, long num_keyframes)
 
void SetPlayerContext (PlayerContext *player_ctx)
 
PlayerContextGetPlayerContext (void)
 
MythPlayerGetPlayer (void)
 

Private Attributes

ProgramInfom_proginfo { nullptr }
 
RecordingProfilem_recProfile { nullptr }
 
int m_keyframeDist { 30 }
 
PlayerContextm_ctx { nullptr }
 
MythMediaBufferm_outBuffer { nullptr }
 
MythFIFOWriterm_fifow { nullptr }
 
KFATablem_kfaTable { nullptr }
 
bool m_showProgress { false }
 
QString m_recorderOptions
 
bool m_avfMode { false }
 
bool m_hlsMode { false }
 
int m_hlsStreamID { -1 }
 
bool m_hlsDisableAudioOnly { false }
 
int m_hlsMaxSegments { 0 }
 
QString m_cmdContainer { "mpegts" }
 
QString m_cmdAudioCodec { "aac" }
 
QString m_cmdVideoCodec { "libx264" }
 
int m_cmdWidth { 480 }
 
int m_cmdHeight { 0 }
 
int m_cmdBitrate { 600000 }
 
int m_cmdAudioBitrate { 64000 }
 

Detailed Description

Definition at line 17 of file transcode.h.

Constructor & Destructor Documentation

◆ Transcode()

Transcode::Transcode ( ProgramInfo pginfo)
explicit

Definition at line 52 of file transcode.cpp.

◆ ~Transcode()

Transcode::~Transcode ( )
override

Definition at line 58 of file transcode.cpp.

Member Function Documentation

◆ TranscodeFile()

int Transcode::TranscodeFile ( const QString &  inputname,
const QString &  outputname,
const QString &  profileName,
bool  honorCutList,
bool  framecontrol,
int  jobID,
const QString &  fifodir,
bool  fifo_info,
bool  cleanCut,
frm_dir_map_t deleteMap,
int  AudioTrackNo,
bool  passthru = false 
)

Definition at line 195 of file transcode.cpp.

◆ ShowProgress()

void Transcode::ShowProgress ( bool  val)
inline

Definition at line 29 of file transcode.h.

◆ SetRecorderOptions()

void Transcode::SetRecorderOptions ( const QString &  options)
inline

Definition at line 30 of file transcode.h.

◆ SetAVFMode()

void Transcode::SetAVFMode ( void  )
inline

Definition at line 31 of file transcode.h.

◆ SetHLSMode()

void Transcode::SetHLSMode ( void  )
inline

Definition at line 32 of file transcode.h.

◆ SetHLSStreamID()

void Transcode::SetHLSStreamID ( int  streamid)
inline

Definition at line 33 of file transcode.h.

◆ SetHLSMaxSegments()

void Transcode::SetHLSMaxSegments ( int  segments)
inline

Definition at line 34 of file transcode.h.

◆ SetCMDContainer()

void Transcode::SetCMDContainer ( const QString &  container)
inline

Definition at line 35 of file transcode.h.

◆ SetCMDAudioCodec()

void Transcode::SetCMDAudioCodec ( const QString &  codec)
inline

Definition at line 36 of file transcode.h.

◆ SetCMDVideoCodec()

void Transcode::SetCMDVideoCodec ( const QString &  codec)
inline

Definition at line 37 of file transcode.h.

◆ SetCMDHeight()

void Transcode::SetCMDHeight ( int  height)
inline

Definition at line 38 of file transcode.h.

◆ SetCMDWidth()

void Transcode::SetCMDWidth ( int  width)
inline

Definition at line 39 of file transcode.h.

◆ SetCMDBitrate()

void Transcode::SetCMDBitrate ( int  bitrate)
inline

Definition at line 40 of file transcode.h.

◆ SetCMDAudioBitrate()

void Transcode::SetCMDAudioBitrate ( int  bitrate)
inline

Definition at line 41 of file transcode.h.

◆ DisableAudioOnlyHLS()

void Transcode::DisableAudioOnlyHLS ( void  )
inline

Definition at line 42 of file transcode.h.

◆ GetProfile()

bool Transcode::GetProfile ( const QString &  profileName,
const QString &  encodingType,
int  height,
int  frameRate 
)
private

Definition at line 81 of file transcode.cpp.

Referenced by TranscodeFile().

◆ ReencoderAddKFA()

void Transcode::ReencoderAddKFA ( long  curframe,
long  lastkey,
long  num_keyframes 
)
private

Definition at line 69 of file transcode.cpp.

Referenced by TranscodeFile().

◆ SetPlayerContext()

void Transcode::SetPlayerContext ( PlayerContext player_ctx)
private

Definition at line 142 of file transcode.cpp.

Referenced by TranscodeFile(), and ~Transcode().

◆ GetPlayerContext()

PlayerContext* Transcode::GetPlayerContext ( void  )
inlineprivate

Definition at line 49 of file transcode.h.

◆ GetPlayer()

MythPlayer* Transcode::GetPlayer ( void  )
inlineprivate

Definition at line 50 of file transcode.h.

Referenced by TranscodeFile().

Member Data Documentation

◆ m_proginfo

ProgramInfo* Transcode::m_proginfo { nullptr }
private

Definition at line 53 of file transcode.h.

Referenced by TranscodeFile().

◆ m_recProfile

RecordingProfile* Transcode::m_recProfile { nullptr }
private

Definition at line 54 of file transcode.h.

Referenced by GetProfile(), TranscodeFile(), and ~Transcode().

◆ m_keyframeDist

int Transcode::m_keyframeDist { 30 }
private

Definition at line 55 of file transcode.h.

Referenced by ReencoderAddKFA().

◆ m_ctx

PlayerContext* Transcode::m_ctx { nullptr }
private

Definition at line 59 of file transcode.h.

Referenced by GetPlayer(), GetPlayerContext(), SetPlayerContext(), and TranscodeFile().

◆ m_outBuffer

MythMediaBuffer* Transcode::m_outBuffer { nullptr }
private

Definition at line 60 of file transcode.h.

Referenced by TranscodeFile(), and ~Transcode().

◆ m_fifow

MythFIFOWriter* Transcode::m_fifow { nullptr }
private

Definition at line 61 of file transcode.h.

Referenced by TranscodeFile(), and ~Transcode().

◆ m_kfaTable

KFATable* Transcode::m_kfaTable { nullptr }
private

Definition at line 62 of file transcode.h.

Referenced by ReencoderAddKFA(), TranscodeFile(), and ~Transcode().

◆ m_showProgress

bool Transcode::m_showProgress { false }
private

Definition at line 63 of file transcode.h.

Referenced by ShowProgress(), and TranscodeFile().

◆ m_recorderOptions

QString Transcode::m_recorderOptions
private

Definition at line 64 of file transcode.h.

Referenced by SetRecorderOptions(), and TranscodeFile().

◆ m_avfMode

bool Transcode::m_avfMode { false }
private

Definition at line 65 of file transcode.h.

Referenced by SetAVFMode(), and TranscodeFile().

◆ m_hlsMode

bool Transcode::m_hlsMode { false }
private

Definition at line 66 of file transcode.h.

Referenced by SetHLSMode(), and TranscodeFile().

◆ m_hlsStreamID

int Transcode::m_hlsStreamID { -1 }
private

Definition at line 67 of file transcode.h.

Referenced by SetHLSStreamID(), and TranscodeFile().

◆ m_hlsDisableAudioOnly

bool Transcode::m_hlsDisableAudioOnly { false }
private

Definition at line 68 of file transcode.h.

Referenced by DisableAudioOnlyHLS(), and TranscodeFile().

◆ m_hlsMaxSegments

int Transcode::m_hlsMaxSegments { 0 }
private

Definition at line 69 of file transcode.h.

Referenced by SetHLSMaxSegments(), and TranscodeFile().

◆ m_cmdContainer

QString Transcode::m_cmdContainer { "mpegts" }
private

Definition at line 70 of file transcode.h.

Referenced by SetCMDContainer(), and TranscodeFile().

◆ m_cmdAudioCodec

QString Transcode::m_cmdAudioCodec { "aac" }
private

Definition at line 71 of file transcode.h.

Referenced by SetCMDAudioCodec(), and TranscodeFile().

◆ m_cmdVideoCodec

QString Transcode::m_cmdVideoCodec { "libx264" }
private

Definition at line 72 of file transcode.h.

Referenced by SetCMDVideoCodec(), and TranscodeFile().

◆ m_cmdWidth

int Transcode::m_cmdWidth { 480 }
private

Definition at line 73 of file transcode.h.

Referenced by SetCMDWidth(), and TranscodeFile().

◆ m_cmdHeight

int Transcode::m_cmdHeight { 0 }
private

Definition at line 74 of file transcode.h.

Referenced by SetCMDHeight(), and TranscodeFile().

◆ m_cmdBitrate

int Transcode::m_cmdBitrate { 600000 }
private

Definition at line 75 of file transcode.h.

Referenced by SetCMDBitrate(), and TranscodeFile().

◆ m_cmdAudioBitrate

int Transcode::m_cmdAudioBitrate { 64000 }
private

Definition at line 76 of file transcode.h.

Referenced by SetCMDAudioBitrate(), and TranscodeFile().


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