I recently purchased a ViewCast Ospsrey 700e HD capture card and I am trying to encode two separate streams with different bitrates simultaneously.
The 700e HD card has SimulStream built in, which according to ViewCast - "SimulStream® is a premium driver upgrade that delivers digitized audio and video content from Osprey video capture cards to multiple applications at the same time"
I can create two separate Job files in Expression Encoder 4 and run two instances of Expression Encoder 4 and successfully capture both at the same time using the same video and audio input for both.
However when I attempt to use the Expression Encoder 4 SDK in my application it appears the SimulStream functionality doesn't work. Here is what my code looks like;
LiveJob job1 = new LiveJob();
LiveJob job2 = new LiveJob();
When Job2 attempts to encode I get the message “Cannot create device, The device may be in use by another program.”
Why does the SimulStream functionality not allow me to have two encoding sessions programmatically? I have emailed ViewCast but they just ignored me.
Hope you can help
This is purely a guess, but I suspect you will have to spawn each Live job into its own process (or app domain) for it to work, which is why running two instances of EE4 works. Have you tried that?
- Proposed as answer by Eric JuteauModerator Saturday, August 14, 2010 4:31 AM