Skip to content

[Question] How 'low-latency-mode' affect encoding latency?  #500

Closed
@MemeTao

Description

@MemeTao

In following two case, encoding latency will be totally different(both of them are set low-latency mode):
case 1:

// Continuous submit frame
setProperty(low-latency-mode, true);
setProperty(query-timeout, 50);
while (true) {
    auto t1 = cur_time();
    submitFrame();
    queryOutput();
    auto t2 = cur_time();
    auto took_ms = t2 - t1;   **// 1080P will took 4ms on my pc;**
}

case2:

// submit frame every 16ms;
setProperty(low-latency-mode, true);
setProperty(query-timeout, 50);
while (true) {
    auto t1 = cur_time();
    submitFrame();
    queryOutput();
    auto t2 = cur_time();
    auto took_ms = t2 - t1;   **// 1080P will took 12ms on my pc;**
    sleep(16 - took_ms);
}

Both of them are low-latency mode, why the encoding latency totally different.

It can be reproduced by 'EncoderLatency' example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions