MythTV  0.27pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Transcode Class Reference

#include <transcode.h>

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, QString fifodir, bool fifo_info, bool cleanCut, frm_dir_map_t &deleteMap, int AudioTrackNo, bool passthru=false)
void ShowProgress (bool val)
void SetRecorderOptions (QString options)
void SetAVFMode (void)
void SetHLSMode (void)
void SetHLSStreamID (int streamid)
void SetHLSMaxSegments (int segments)
void SetCMDContainer (QString container)
void SetCMDAudioCodec (QString codec)
void SetCMDVideoCodec (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 (QString profileName, 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
RecordingProfile profile
int keyframedist
NuppelVideoRecordernvr
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 ( ProgramInfo pginfo)

Definition at line 46 of file transcode.cpp.

Transcode::~Transcode ( )

Definition at line 67 of file transcode.cpp.

Member Function Documentation

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

Definition at line 199 of file transcode.cpp.

Referenced by main().

void Transcode::ShowProgress ( bool  val)
inline

Definition at line 26 of file transcode.h.

Referenced by main().

void Transcode::SetRecorderOptions ( QString  options)
inline

Definition at line 27 of file transcode.h.

Referenced by main().

void Transcode::SetAVFMode ( void  )
inline

Definition at line 28 of file transcode.h.

Referenced by main().

void Transcode::SetHLSMode ( void  )
inline

Definition at line 29 of file transcode.h.

Referenced by main().

void Transcode::SetHLSStreamID ( int  streamid)
inline

Definition at line 30 of file transcode.h.

Referenced by main().

void Transcode::SetHLSMaxSegments ( int  segments)
inline

Definition at line 31 of file transcode.h.

Referenced by main().

void Transcode::SetCMDContainer ( QString  container)
inline

Definition at line 32 of file transcode.h.

Referenced by main().

void Transcode::SetCMDAudioCodec ( QString  codec)
inline

Definition at line 33 of file transcode.h.

Referenced by main().

void Transcode::SetCMDVideoCodec ( QString  codec)
inline

Definition at line 34 of file transcode.h.

Referenced by main().

void Transcode::SetCMDHeight ( int  height)
inline

Definition at line 35 of file transcode.h.

Referenced by main().

void Transcode::SetCMDWidth ( int  width)
inline

Definition at line 36 of file transcode.h.

Referenced by main().

void Transcode::SetCMDBitrate ( int  bitrate)
inline

Definition at line 37 of file transcode.h.

Referenced by main().

void Transcode::SetCMDAudioBitrate ( int  bitrate)
inline

Definition at line 38 of file transcode.h.

Referenced by main().

void Transcode::DisableAudioOnlyHLS ( void  )
inline

Definition at line 39 of file transcode.h.

Referenced by main().

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

Definition at line 91 of file transcode.cpp.

Referenced by TranscodeFile().

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

Definition at line 79 of file transcode.cpp.

Referenced by TranscodeFile().

void Transcode::SetPlayerContext ( PlayerContext player_ctx)
private

Definition at line 153 of file transcode.cpp.

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

PlayerContext* Transcode::GetPlayerContext ( void  )
inlineprivate

Definition at line 46 of file transcode.h.

Referenced by TranscodeFile().

MythPlayer* Transcode::GetPlayer ( void  )
inlineprivate

Definition at line 47 of file transcode.h.

Referenced by TranscodeFile().

Member Data Documentation

ProgramInfo* Transcode::m_proginfo
private

Definition at line 50 of file transcode.h.

Referenced by TranscodeFile().

RecordingProfile Transcode::profile
private

Definition at line 51 of file transcode.h.

Referenced by GetProfile(), and TranscodeFile().

int Transcode::keyframedist
private

Definition at line 52 of file transcode.h.

Referenced by ReencoderAddKFA().

NuppelVideoRecorder* Transcode::nvr
private

Definition at line 53 of file transcode.h.

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

PlayerContext* Transcode::ctx
private

Definition at line 54 of file transcode.h.

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

RingBuffer* Transcode::outRingBuffer
private

Definition at line 55 of file transcode.h.

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

FIFOWriter* Transcode::fifow
private

Definition at line 56 of file transcode.h.

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

KFATable* Transcode::kfa_table
private

Definition at line 57 of file transcode.h.

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

bool Transcode::showprogress
private

Definition at line 58 of file transcode.h.

Referenced by ShowProgress(), and TranscodeFile().

QString Transcode::recorderOptions
private

Definition at line 59 of file transcode.h.

Referenced by SetRecorderOptions(), and TranscodeFile().

bool Transcode::avfMode
private

Definition at line 60 of file transcode.h.

Referenced by SetAVFMode(), and TranscodeFile().

bool Transcode::hlsMode
private

Definition at line 61 of file transcode.h.

Referenced by SetHLSMode(), and TranscodeFile().

int Transcode::hlsStreamID
private

Definition at line 62 of file transcode.h.

Referenced by SetHLSStreamID(), and TranscodeFile().

bool Transcode::hlsDisableAudioOnly
private

Definition at line 63 of file transcode.h.

Referenced by DisableAudioOnlyHLS(), and TranscodeFile().

int Transcode::hlsMaxSegments
private

Definition at line 64 of file transcode.h.

Referenced by SetHLSMaxSegments(), and TranscodeFile().

QString Transcode::cmdContainer
private

Definition at line 65 of file transcode.h.

Referenced by SetCMDContainer(), and TranscodeFile().

QString Transcode::cmdAudioCodec
private

Definition at line 66 of file transcode.h.

Referenced by SetCMDAudioCodec(), and TranscodeFile().

QString Transcode::cmdVideoCodec
private

Definition at line 67 of file transcode.h.

Referenced by SetCMDVideoCodec(), and TranscodeFile().

int Transcode::cmdWidth
private

Definition at line 68 of file transcode.h.

Referenced by SetCMDWidth(), and TranscodeFile().

int Transcode::cmdHeight
private

Definition at line 69 of file transcode.h.

Referenced by SetCMDHeight(), and TranscodeFile().

int Transcode::cmdBitrate
private

Definition at line 70 of file transcode.h.

Referenced by SetCMDBitrate(), and TranscodeFile().

int Transcode::cmdAudioBitrate
private

Definition at line 71 of file transcode.h.

Referenced by SetCMDAudioBitrate(), and TranscodeFile().


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