Skip to content

V4L2 codec updates#4002

Merged
popcornmix merged 2 commits intoraspberrypi:rpi-5.10.yfrom
6by9:rpi-5.10.y
Dec 18, 2020
Merged

V4L2 codec updates#4002
popcornmix merged 2 commits intoraspberrypi:rpi-5.10.yfrom
6by9:rpi-5.10.y

Conversation

@6by9
Copy link
Contributor

@6by9 6by9 commented Dec 14, 2020

Whilst decode the edict is that the H264 header bytes should be with the first frame, encode appears to have a control that switches between that and putting them in a separate packet. FFmpeg chooses the latter.

Unobviously, the driver for decode has to manually kick the framework on DEC_CMD_START to clear the EOS flag. Add it.

6by9 added 2 commits December 14, 2020 18:46
Control V4L2_CID_MPEG_VIDEO_HEADER_MODE controls whether the encoder
is meant to emit the header bytes as a separate packet or with the
first encoded frame.
Add support for it.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
It appears that the V4L2 M2M framework requires the driver to manually
call vb2_clear_last_buffer_dequeued on the CAPTURE queue during a
V4L2_DEC_CMD_START.
Add such a call.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
@6by9
Copy link
Contributor Author

6by9 commented Dec 18, 2020

@popcornmix I'm assuming you're wanting to merge this to fix up seeking.

@popcornmix popcornmix merged commit a9006f9 into raspberrypi:rpi-5.10.y Dec 18, 2020
@popcornmix
Copy link
Collaborator

Yes, been running with it for a few days.

popcornmix added a commit to Hexxeh/rpi-firmware that referenced this pull request Dec 18, 2020
kernel: V4L2 codec updates
See: raspberrypi/linux#4002

kernel: drm/vc4: Make normalize_zpos conditional on using fkms
See: raspberrypi/linux#4005

kernel: Revert media: videobuf2: Fix length check for single plane dmabuf queueing
See: raspberrypi/linux#4004

kernel: KMS 10 & 12 bpc updates (5.10)
See: raspberrypi/linux#3982
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Dec 18, 2020
kernel: V4L2 codec updates
See: raspberrypi/linux#4002

kernel: drm/vc4: Make normalize_zpos conditional on using fkms
See: raspberrypi/linux#4005

kernel: Revert media: videobuf2: Fix length check for single plane dmabuf queueing
See: raspberrypi/linux#4004

kernel: KMS 10 & 12 bpc updates (5.10)
See: raspberrypi/linux#3982
mkreisl added a commit to xbianonpi/xbian-sources-kernel that referenced this pull request Dec 30, 2020
mkreisl added a commit to xbianonpi/xbian-sources-kernel that referenced this pull request Feb 4, 2021
mkreisl added a commit to xbianonpi/xbian-sources-kernel that referenced this pull request Aug 2, 2021
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.

2 participants