jamaal81 / lavfilters

Automatically exported from code.google.com/p/lavfilters
GNU General Public License v2.0
0 stars 0 forks source link

Large frame lantency with DXVA decoding #456

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I has writen a app which received network stream from a IPC. The decoder is lav 
video decoder and the video renderer is EVR. I opened the HW DXVA option of the 
decoder. However, I found the frame the Video Renderer is rendering is much lag 
behind the capture side. The lantency is more than 10 frames. I can not figure 
out the reason. Could you explain it? and i will be more appreciated if you 
would fix the bug.

Original issue reported on code.google.com by wddfddf2...@gmail.com on 17 May 2014 at 4:05

GoogleCodeExporter commented 9 years ago
There is no "bug", the decoder is just not designed for low latency operations.

Every decoder has a certain delay, since a codec like H.264 is not as simple as 
one frame in, one frame out, you have to store frames for reference purposes 
and re-order frames, which just takes a few to work with.

These rules are a bit more strict with hardware decoding, as the hardware 
decoders like  to crash if something unexpected happens.

Original comment by h.lepp...@gmail.com on 17 May 2014 at 6:24