Open Video Decode problems

Discussion created by diskerr on Dec 3, 2011
Latest reply on Dec 14, 2011 by oxydius

I'm currently working with video codecs and very interested in OVD.
My system is: i5-750 / HD6870 / Win7 x64 / VS2010 / AMD APP SDK 2.5 / Catalyst 11.7 & 11.11.

I have encounted some problems using your OVD and the OVDecodeRender sample.

1. When I remove a busy-waiting - while(timeMS < 33) - in renderOneFrame() function to test the maximum capability of OVD, it sometimes produces corrupted raw frames.
Perhaps the decoding process is not finished even with clWaitForEvents() calls so it requires additional delays. Is this a bug or my misunderstanding?

2. Slightly increasing decoding latency. I modified the sample to play the stream repeatedly.
In the beginning of the decoding, the latency between OVDecodePicture() and clWaitForEvnets() is about 0.4 ms,
but it gets longer and longer until it reaches about 3ms and then goes to 0.4ms and gets longer again.
Although the decoding latency can vary, increasing latency and reset doesn't make sense. Is there a problem?

3. OVDecodeCreateSession() consumes so much time (about 2-3secs) and I think this can be a major problem for many applications.
One strange thing is, when I run the sample with profiling session (alt+f2) in VS2010, OVDecodeCreateSession() takes only 300ms and everything works fine.
Do you have any idea for this problem?

4. The OVDecodeRender works fine with catalyst 11.7 but crashes in OVDecodeGetDeviceCap() function with 11.11. No way to make this work?