diff options
| author | Tim Redfern <tim@eclectronics.org> | 2014-01-28 17:48:55 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2014-01-28 17:48:55 +0000 |
| commit | 90a237397507bda5a8194b9a7c9982454cc79718 (patch) | |
| tree | 267da925a1e3206de139e831a8f94fb6bd4ba521 /rotord/src/graph.cpp | |
| parent | e80b647faa5a61c81964252a395fe4cb48443315 (diff) | |
roughing out mpd writer
Diffstat (limited to 'rotord/src/graph.cpp')
| -rw-r--r-- | rotord/src/graph.cpp | 8 |
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) { |
