From 943bfa53cf5df0ecc9b04967a61be17c64e33e77 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Mon, 3 Feb 2014 13:47:05 +0000 Subject: bug chasing --- rotord/src/graph.cpp | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'rotord/src/graph.cpp') diff --git a/rotord/src/graph.cpp b/rotord/src/graph.cpp index 5dd6e0b..c356916 100644 --- a/rotord/src/graph.cpp +++ b/rotord/src/graph.cpp @@ -389,16 +389,31 @@ bool Graph::video_render2(const string &output_filename,const double framerate,i Audio_frame *a; int64_t sample_start=(start*audioloader.get_sample_rate())/framerate; - double end=duration; - if (use_dash) end=vf+mpd_chunk_length; + //either open one file and write to it until the end of the movie OR periodically close and reopen files + + double segment_end=duration; + int segment_num=0; + if (use_dash) { + segment_end=vf+mpd_chunk_length; + exporter.record(path+namestub+toString(segment_num)+suffix); + } + else exporter.record(path+namestub+suffix); while (vfsegment_end&&use_dash){ + exporter.finishRecord(); + if (vf