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 ()
 
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 *)
 
PlayerContextGetPlayerContext (void)
 
MythPlayerGetPlayer (void)
 

Private Attributes

ProgramInfom_proginfo
 
RecordingProfilem_recProfile
 
int keyframedist
 
PlayerContextctx
 
RingBufferoutRingBuffer
 
FIFOWriterfifow
 
KFATablekfa_table
 
bool showprogress
 
QString recorderOptions
 
bool avfMode
 
bool hlsMode
 
int hlsStreamID
 
bool hlsDisableAudioOnly
 
int hlsMaxSegments
 
QString cmdContainer
 
QString cmdAudioCodec
 
QString cmdVideoCodec
 
int cmdWidth
 
int cmdHeight
 
int cmdBitrate
 
int cmdAudioBitrate
 

Detailed Description

Definition at line 14 of file transcode.h.

Constructor & Destructor Documentation

◆ Transcode()

Transcode::Transcode ( ProgramInfo pginfo)
explicit

Definition at line 51 of file transcode.cpp.

◆ ~Transcode()

Transcode::~Transcode ( )

Definition at line 75 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 212 of file transcode.cpp.

◆ ShowProgress()

void Transcode::ShowProgress ( bool  val)
inline

Definition at line 26 of file transcode.h.

◆ SetRecorderOptions()

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

Definition at line 27 of file transcode.h.

◆ SetAVFMode()

void Transcode::SetAVFMode ( void  )
inline

Definition at line 28 of file transcode.h.

◆ SetHLSMode()

void Transcode::SetHLSMode ( void  )
inline

Definition at line 29 of file transcode.h.

◆ SetHLSStreamID()

void Transcode::SetHLSStreamID ( int  streamid)
inline

Definition at line 30 of file transcode.h.

◆ SetHLSMaxSegments()

void Transcode::SetHLSMaxSegments ( int  segments)
inline

Definition at line 31 of file transcode.h.

◆ SetCMDContainer()

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

Definition at line 32 of file transcode.h.

◆ SetCMDAudioCodec()

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

Definition at line 33 of file transcode.h.

◆ SetCMDVideoCodec()

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

Definition at line 34 of file transcode.h.

◆ SetCMDHeight()

void Transcode::SetCMDHeight ( int  height)
inline

Definition at line 35 of file transcode.h.

◆ SetCMDWidth()

void Transcode::SetCMDWidth ( int  width)
inline

Definition at line 36 of file transcode.h.

◆ SetCMDBitrate()

void Transcode::SetCMDBitrate ( int  bitrate)
inline

Definition at line 37 of file transcode.h.

◆ SetCMDAudioBitrate()

void Transcode::SetCMDAudioBitrate ( int  bitrate)
inline

Definition at line 38 of file transcode.h.

◆ DisableAudioOnlyHLS()

void Transcode::DisableAudioOnlyHLS ( void  )
inline

Definition at line 39 of file transcode.h.

◆ GetProfile()

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

Definition at line 98 of file transcode.cpp.

Referenced by TranscodeFile().

◆ ReencoderAddKFA()

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

Definition at line 86 of file transcode.cpp.

Referenced by TranscodeFile().

◆ SetPlayerContext()

void Transcode::SetPlayerContext ( PlayerContext player_ctx)
private

Definition at line 159 of file transcode.cpp.

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

◆ GetPlayerContext()

PlayerContext* Transcode::GetPlayerContext ( void  )
inlineprivate

Definition at line 46 of file transcode.h.

Referenced by TranscodeFile().

◆ GetPlayer()

MythPlayer* Transcode::GetPlayer ( void  )
inlineprivate

Definition at line 47 of file transcode.h.

Referenced by TranscodeFile().

Member Data Documentation

◆ m_proginfo

ProgramInfo* Transcode::m_proginfo
private

Definition at line 50 of file transcode.h.

Referenced by TranscodeFile().

◆ m_recProfile

RecordingProfile* Transcode::m_recProfile
private

Definition at line 51 of file transcode.h.

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

◆ keyframedist

int Transcode::keyframedist
private

Definition at line 52 of file transcode.h.

Referenced by ReencoderAddKFA().

◆ ctx

PlayerContext* Transcode::ctx
private

Definition at line 56 of file transcode.h.

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

◆ outRingBuffer

RingBuffer* Transcode::outRingBuffer
private

Definition at line 57 of file transcode.h.

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

◆ fifow

FIFOWriter* Transcode::fifow
private

Definition at line 58 of file transcode.h.

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

◆ kfa_table

KFATable* Transcode::kfa_table
private

Definition at line 59 of file transcode.h.

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

◆ showprogress

bool Transcode::showprogress
private

Definition at line 60 of file transcode.h.

Referenced by ShowProgress(), and TranscodeFile().

◆ recorderOptions

QString Transcode::recorderOptions
private

Definition at line 61 of file transcode.h.

Referenced by SetRecorderOptions(), and TranscodeFile().

◆ avfMode

bool Transcode::avfMode
private

Definition at line 62 of file transcode.h.

Referenced by SetAVFMode(), and TranscodeFile().

◆ hlsMode

bool Transcode::hlsMode
private

Definition at line 63 of file transcode.h.

Referenced by SetHLSMode(), and TranscodeFile().

◆ hlsStreamID

int Transcode::hlsStreamID
private

Definition at line 64 of file transcode.h.

Referenced by SetHLSStreamID(), and TranscodeFile().

◆ hlsDisableAudioOnly

bool Transcode::hlsDisableAudioOnly
private

Definition at line 65 of file transcode.h.

Referenced by DisableAudioOnlyHLS(), and TranscodeFile().

◆ hlsMaxSegments

int Transcode::hlsMaxSegments
private

Definition at line 66 of file transcode.h.

Referenced by SetHLSMaxSegments(), and TranscodeFile().

◆ cmdContainer

QString Transcode::cmdContainer
private

Definition at line 67 of file transcode.h.

Referenced by SetCMDContainer(), and TranscodeFile().

◆ cmdAudioCodec

QString Transcode::cmdAudioCodec
private

Definition at line 68 of file transcode.h.

Referenced by SetCMDAudioCodec(), and TranscodeFile().

◆ cmdVideoCodec

QString Transcode::cmdVideoCodec
private

Definition at line 69 of file transcode.h.

Referenced by SetCMDVideoCodec(), and TranscodeFile().

◆ cmdWidth

int Transcode::cmdWidth
private

Definition at line 70 of file transcode.h.

Referenced by SetCMDWidth(), and TranscodeFile().

◆ cmdHeight

int Transcode::cmdHeight
private

Definition at line 71 of file transcode.h.

Referenced by SetCMDHeight(), and TranscodeFile().

◆ cmdBitrate

int Transcode::cmdBitrate
private

Definition at line 72 of file transcode.h.

Referenced by SetCMDBitrate(), and TranscodeFile().

◆ cmdAudioBitrate

int Transcode::cmdAudioBitrate
private

Definition at line 73 of file transcode.h.

Referenced by SetCMDAudioBitrate(), and TranscodeFile().


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