Skip to content

V4L2 buffer sequence number is not updated during streaming #54

@grawis

Description

@grawis

Description

During MMAP streaming, VIDIOC_DQBUF returns a valid timestamp and bytesused value for each captured frame, but the buffer sequence number remains 0 for all frames.

The sequence number should identify the frame order within a streaming session.

Test

Using a local MMAP streaming test:

Format: 640x480 RGB3, sizeimage=921600
Frame  Index  Sequence  Bytesused  Timestamp(us)
    0      0         0     921600     3506402443
    1      1         0     921600     3506432045
    2      2         0     921600     3506462046
    3      0         0     921600     3506492027
    4      1         0     921600     3506522032
    5      2         0     921600     3506552029
Sequence: FAIL
Timestamp: PASS
Bytesused: PASS

index cycles through the allocated buffers, which is expected. However, sequence remains 0 instead of increasing with each completed frame.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions