From cb4b17f617e998fb64cf20e13bd05b5f31f240ce Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 19 Sep 2013 13:25:51 +0100 Subject: reduce bit rate --- rotord/src/graph.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'rotord/src/graph.h') diff --git a/rotord/src/graph.h b/rotord/src/graph.h index 58861ac..cc531cd 100644 --- a/rotord/src/graph.h +++ b/rotord/src/graph.h @@ -20,6 +20,7 @@ namespace Rotor { Graph(const string& _uid,const string& _desc){ init(_uid,_desc); audio_loaded=false; + bitRate=1000000; }; void init(const string& _uid,const string& _desc){ uid=_uid; @@ -54,6 +55,13 @@ namespace Rotor { bool print_features(xmlIO &XML,string &node); bool load_audio(const string &filename,vector processors); bool load_video(const string &nodeID,const string &filename);//can be performance or clip + bool set_bitrate(int b){ + if (b>64000){ + bitRate=b; + return true; + } + else return false; + } bool loaded; float duration; float framerate; @@ -63,6 +71,7 @@ namespace Rotor { string audio_filename; bool cancelled; float progress; + int bitRate; private: int outW,outH; -- cgit v1.2.3