I'm working on a application to show a rtsp stream video. I have used opencv and livbav avplay. The problem is lag or low latency. With this solutions I obtain a latency of 500 ms. But I need about 300 ms in order to have a properly control of the streaming camera.
I'm trying open the same rtsp stream with mplayer command console, and the results are amazing. I have latencies of 250-300 ms. But the problem is that i haven't found a proper solution for working with my app (WPF) For example in opencv and livab avplay i obtain a Mat or a byte structure (frame by frame) that i can use in my app. But what about mplayer. Is there any solution to get the same structure? I mean get frame by frame and the draw it with my application. Any API or lib to use like opencv or avplay?
Thanks.