Skip to content

Fix buffer.sequence for mmap#1

Open
mariannasb wants to merge 1 commit into
developfrom
mmap-sequence
Open

Fix buffer.sequence for mmap#1
mariannasb wants to merge 1 commit into
developfrom
mmap-sequence

Conversation

@mariannasb

Copy link
Copy Markdown
Owner

When using gstreamer for streaming frames into the loopback the sequence number on the v4l2 buffers read out of the loopback stays at zero.

When using FFMPEG instead to populate the loopback device the sequence number increases as expected.

The difference is that FFMPEG uses 'rw' ('write') while gstreamer uses 'mmap' ('qbuf'/'dqbuf').

And 'b->sequence' was currently only being set to 'dev->write_position' in 'v4l2_loopback_write()', but not in 'vidioc_qbuf()'.

See v4l2loopback#466

When using gstreamer for streaming frames into the loopback the sequence number on the v4l2 buffers read out of the loopback stays at zero.

When using FFMPEG instead to populate the loopback device the sequence number increases as expected.

The difference is that FFMPEG uses 'rw' ('write') while gstreamer uses 'mmap' ('qbuf'/'dqbuf').

And 'b->sequence' was currently only being set to 'dev->write_position' in 'v4l2_loopback_write()', but not in 'vidioc_qbuf()'.

See v4l2loopback#466
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant