'H264 decode always latency one frame
Encoder encode a video (IDR P P P ...) and send to decoder and display it in real time, and I noticed encoder send i th frame but decoder display i-1 th frame.
I know p frame need to be removed from ref list so it can be removed from decode picture buffer, but it would cause next p frame decode fails.
Is there way to fix one frame delay?
Becase one frame delay is about 33 ms latency as 30fps, which is unacceptable.
Solution 1:[1]
When you use 30 fps, the time budget for each frame, be it I or be it P, is 33ms. To encode, transmit, and decode a frame cannot possibly take less than 33ms. It probably takes more than that, even twice that.
If you need less latency, increase the frame rate.
Solution 2:[2]
To access the titles MUI can be used. All the strings are externalized and will be supplied in the user language.
wchar_t printDlgTitle[1024];
HMODULE h = LoadLibraryEx(L"comdlg32.dll", NULL, LOAD_LIBRARY_AS_IMAGE_RESOURCE);
// the dll I know the associated .mui has the id
LoadString(h, 1124, printDlgTitle, ARRAYSIZE(printDlgTitle));
FreeLibrary(h);
1124 is the number of the string in the string table.
ResoruceHacker can be used to obtain the ids. In this instance open comdlg32.dll.mui of your language.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | O. Jones |
| Solution 2 | Portree Kid |
