12 #include <libavformat/avformat.h> 18 static int AVWritePacket(
void *Opaque, uint8_t *Buffer,
int Size);
19 static QString
GetAVCCodec (
const QByteArray &Packet);
25 int AddH264Stream (
int Width,
int Height,
int Profile,
int Bitrate);
27 bool AddPacket (AVPacket *Packet,
bool CodecConfig);
33 void SetupContext (
void);
36 void WriteDummyAudio (
void);
37 void CopyExtraData (
int Size,
void* Source,
int Stream);
42 AVFormatContext *m_formatCtx;
48 AVIOContext *m_ioContext;
50 AVCodecContext *m_audioContext;
52 AVFrame *m_audioFrame;
53 AVPacket *m_audioPacket;
55 int64_t m_lastVideoPts;
56 int64_t m_lastAudioPts;
int AddH264Stream(int Width, int Height, int Profile, int Bitrate)
int AddDummyAudioStream(void)
static QString GetAVCCodec(const QByteArray &Packet)
Determine the 3 byte H.264 codec descriptor string.
bool AddPacket(AVPacket *Packet, bool CodecConfig)
void FinishSegment(bool Init)
int WriteAVPacket(uint8_t *Buffer, int Size)
static int AVWritePacket(void *Opaque, uint8_t *Buffer, int Size)
TorcMuxer(const QString &File)