OpenViBE forum

The OpenViBE community
It is currently Sat Aug 24, 2019 6:02 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri May 29, 2015 9:08 am 
Offline

Joined: Tue Dec 04, 2012 3:53 pm
Posts: 778
Location: INRIA Rennes, FRANCE
Hi, unfortunately it doesn't seem to be very easy to do what you need, without doing some C++ coding.

However, maybe you could do it with a shell script. Make a 'concat.xml' scenario that reads ${FILE1} and ${FILE2} and
catenates them to output2.ov. Then you make a loop in a shell e.g. bash or win cmd, something like this
(its bash-like pseudocode)

Code:
cp firstfile.ov tmp.ov
for(thisfile in list of files except the first file) do
  openvibe-designer concat.xml --define FILE1 tmp.ov --define FILE2 thisfile --play-fast
  mv output2.ov tmp.ov
end


or, you could call designer from Python (with a similar loop). It'll be very slow as the same data is processed many times, but I guess its better than nothing.

An alternative would be to generate the scenario itself automatically that would have readers for n files. By studying the structure of the OpenViBE
scenario xml, the generation could be possible to do with python, but would take a little effort to code.


Happy hacking,
Jussi


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Americanized by Maƫl Soucaze.