summaryrefslogtreecommitdiff
path: root/rotord/src/graph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/src/graph.cpp')
-rw-r--r--rotord/src/graph.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/rotord/src/graph.cpp b/rotord/src/graph.cpp
index 2968c1f..8881a5f 100644
--- a/rotord/src/graph.cpp
+++ b/rotord/src/graph.cpp
@@ -116,6 +116,7 @@ bool Graph::video_render(const string &output_filename,const float framerate,int
libav::exporter exporter;
float spct=100.0f/duration;
+ Image* i;
if (exporter.setup(outW,outH,bitRate,framerate,container,use_fragmentation)) { //codecId,
if (exporter.record(output_filename)) {
@@ -202,7 +203,7 @@ bool Graph::video_render(const string &output_filename,const float framerate,int
//cerr<<"videoloader: "<<vf<<" seconds, vstep "<<vstep<<" ,asking for frame "<<((int)((vf*framerate)+0.5))<<endl
- Image* i;
+
if (usingaudio) {
i=video_output->get_image_output(Frame_spec(vf,framerate,duration,outW,outH,a));
}
@@ -217,6 +218,8 @@ bool Graph::video_render(const string &output_filename,const float framerate,int
if (usingaudio) {delete a;};
}
+ exporter.encodeFrame(i->RGBdata,true); //final keyframe;
+
exporter.finishRecord();
gettimeofday(&_end, NULL);