diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-10-01 15:12:00 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-10-01 15:12:00 +0100 |
| commit | d68f4dd6f58620f483be6a921201dd87ed04cd98 (patch) | |
| tree | 303c7d6f1da6d9e3eb263712791518c17733ea3d /rotord/src/graph.cpp | |
| parent | d40e73de321ccccd06ca06d4f733b6f2c971a37d (diff) | |
end keyframe for preview
Diffstat (limited to 'rotord/src/graph.cpp')
| -rw-r--r-- | rotord/src/graph.cpp | 5 |
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); |
