From 47b733bbc93e565d840596d4fbc2d5d5f3d18dd2 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Fri, 19 Apr 2013 18:57:08 +0100 Subject: avcodec confusion --- rotord/ofxMovieExporter.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'rotord/ofxMovieExporter.h') diff --git a/rotord/ofxMovieExporter.h b/rotord/ofxMovieExporter.h index 4682107..5433812 100755 --- a/rotord/ofxMovieExporter.h +++ b/rotord/ofxMovieExporter.h @@ -115,7 +115,9 @@ class ofxMovieExporter // codecId = CODEC_ID_MPEG2VIDEO, container = "mov" bool setup(int outW = OUT_W, int outH = OUT_H, int bitRate = BIT_RATE, int frameRate = FRAME_RATE, AVCodecID codecId = CODEC_ID, std::string container = CONTAINER); bool record(std::string filePrefix=FILENAME_PREFIX, std::string folderPath=""); + bool encodeFrame(unsigned char *pixels); void finishRecord(); + void stop(); bool isRecording() const; @@ -133,7 +135,6 @@ class ofxMovieExporter inline int getRecordingWidth() {return outW;} inline int getRecordingHeight() {return outH;} - bool encodeFrame(unsigned char *pixels); private: //#ifdef _THREAD_CAPTURE @@ -158,8 +159,9 @@ class ofxMovieExporter int frameRate; int bitRate; float frameInterval; + float aframeInterval; float lastFrameTime; - int frameNum; + std::string outFileName; AVOutputFormat* outputFormat; @@ -190,6 +192,7 @@ class ofxMovieExporter bool usePixelSource; unsigned char* pixelSource; - int frame_ticks; + int aframeNum; + int vframeNum; }; -- cgit v1.2.3