00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "mythlogging.h"
00023 #include "filewriterbase.h"
00024
00025 #define LOC QString("FWB(%1): ").arg(m_filename)
00026 #define LOC_ERR QString("FWB(%1) Error: ").arg(m_filename)
00027
00028 FileWriterBase::FileWriterBase()
00029 : m_videoBitrate(800000), m_width(0), m_height(0),
00030 m_aspect(1.333333), m_frameRate(29.97), m_keyFrameDist(15),
00031 m_audioBitrate(0), m_audioChannels(2), m_audioBits(16),
00032 m_audioSampleRate(44100), m_audioBytesPerSample(2), m_audioFrameSize(-1),
00033 m_encodingThreadCount(1),
00034 m_framesWritten(0),
00035 m_startingTimecodeOffset(-1)
00036 {
00037 }
00038
00039 FileWriterBase::~FileWriterBase()
00040 {
00041 }
00042
00043 bool FileWriterBase::WriteVideoFrame(VideoFrame *frame)
00044 {
00045 LOG(VB_RECORD, LOG_ERR, LOC + "WriteVideoFrame(): Shouldn't be here!");
00046
00047 return false;
00048 }
00049
00050 bool FileWriterBase::WriteAudioFrame(unsigned char *buf, int fnum, int timecode)
00051 {
00052 LOG(VB_RECORD, LOG_ERR, LOC + "WriteAudioFrame(): Shouldn't be here!");
00053
00054 return false;
00055 }
00056
00057
00058