Hi!
we are working on a custom modules to extract clips(mp4s) from nDVR Store. using new wowza Clip extraction API.
We only have one nDVR Stream running at that moment… in append mode
Single Request for clip extraction works fine and clip got converted after some time depending on the clips duration. thats ok
But we are facing a problem with multiple clip extraction requests at the same time… If request 1 is in progress of extracting clip from store myStream.0 we are unable to make 2nd request until 1st request got completed…
I need to know is this a clip extraction api limitation or i am doing some thing wrong??
Here is my code function that gets called on each clip extraction request
public static void convert(String streamName,long utcStartTime,long utcEndTime)
{
IApplicationInstance appInstance = Utilities.getApplicationInstance(Utilities.getVhost());
DvrApplicationConverterContext myDVRContex = new DvrApplicationConverterContext(appInstance);
IDvrConverterStore dvrStore = myDVRContex.getDvrConverterStore(StreamName);
DvrConverterControlBase controllerBase = new DvrConverterControlBase(appInstance);
controllerBase.setFilename(Math.random() + “.mp4”);
controllerBase.setStartTime(utcStartTime);
controllerBase.setEndTime(endClip);
controllerBase.addOutputFilename(Math.random() + “.mp4”);
controllerBase.getAllOutputFilenames();
controllerBase.getFileDestination();
myDVRContex.getDvrConversions(true);
myDVRContex.startConversion(dvrStore, controllerBase);
}
please help me out with this, thanks