summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rotord/src/graph.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/rotord/src/graph.cpp b/rotord/src/graph.cpp
index f2aabb5..7c61c3e 100644
--- a/rotord/src/graph.cpp
+++ b/rotord/src/graph.cpp
@@ -139,6 +139,7 @@ bool Graph::video_render(const string &output_filename,const double framerate,in
if (container==".mpd") {
use_dash=true;
container=".mp4";
+ cerr<<"found mpd, writing "<<filestub<<container<<endl;
}
libav::exporter exporter;
@@ -157,17 +158,18 @@ bool Graph::video_render(const string &output_filename,const double framerate,in
}
}
//directory exists
+ //now write the mpd file (for the basic static version)
}
if (exporter.setup(outW,outH,bitRate,framerate,container,use_fragmentation)) { //codecId,
- if (exporter.record(output_filename)) {
+ if (exporter.record(filestub+container)) {
libav::audio_decoder audioloader;
bool usingaudio=audioloader.open(audio_filename);
- logger.information("Video_output rendering "+output_filename+": "+toString(duration)+" seconds at "+toString(framerate)+" fps, audio frame size: "+toString(exporter.get_audio_framesize()));
+ logger.information("Video_output rendering "+filestub+container+": "+toString(duration)+" seconds at "+toString(framerate)+" fps, audio frame size: "+toString(exporter.get_audio_framesize()));
//25fps video and 43.06640625fps audio? hmm
//how to get the timecodes correct for the interleaved files
@@ -268,7 +270,7 @@ bool Graph::video_render(const string &output_filename,const double framerate,in
double mtime = ((_end.tv_sec-_start.tv_sec) + (_end.tv_usec-_start.tv_usec)/1000000.0);
- logger.information("Video_output: rendered "+output_filename+": in "+toString(mtime)+" seconds");
+ logger.information("Video_output: rendered "+filestub+container+": in "+toString(mtime)+" seconds");
logger.information("compression codec took "+toString(mtime-video_output->time_taken)+" seconds");
for (auto n:nodes) {