omxh264enc cannot encode buffer with unaligned width

Fixed

Description

We use configurable gstreamer pipeline in waltham transmitter plugin (weston-ivi-plugin) to share surface to waltham-receiver. I was trying to send new Map (height=1488, width=1080) using waltham-transmitter plugin with omxh264enc but I received corrupted image.

After debugging I found out that omxh264enc is not encoding the buffer with width which not aligned to multiple of 16.

Reproduction steps:

broken Image width(1080)

gst-launch-1.0 -v videotestsrc ! videoconvert ! video/x-raw,format=I420,width=1080,height=1488 ! omxh264enc control-rate=2 ! queue ! h264parse ! omxh264dec ! waylandsink

 

Proper image width(1088)

gst-launch-1.0 -v videotestsrc ! videoconvert ! video/x-raw,format=I420,width=1088,height=1488 ! omxh264enc control-rate=2 ! queue ! h264parse ! omxh264dec ! waylandsink

when using jpegenc works expected image can be seen

Environment

None

Attachments

2

Activity

Show:

Walt Miner 
January 5, 2020 at 7:39 PM

Closed for Icefish RC4 release

Veeresh Kadasani 
December 18, 2019 at 6:16 AM

Sorry for the late reply I have tested it with the fix and can see proper image.

Harunobu Kurokawa 
November 15, 2019 at 4:34 AM

Harunobu Kurokawa 
November 8, 2019 at 5:29 AM

Hi
I pushed gst-omx in renesas github. We will update meta-renesas-rcar-gen3 in AGL gerrit and our meta-renesas soon.

https://github.com/renesas-rcar/gst-omx/commit/ac0a9d331ef492f216e90753bd7aae7d0811bcc5

Veeresh Kadasani 
November 6, 2019 at 1:43 AM

Note: This issue is not reproduced on version before 8.0.0. The issue was not reproducible on 7.0.4

Details

Assignee

Reporter

Labels

Hardware Platform(s) Affected

Renesas H3+KF
Renesas M3

Components

Affects versions

Priority

Created November 5, 2019 at 9:54 AM
Updated January 5, 2020 at 7:39 PM
Resolved December 17, 2019 at 10:32 AM

Flag notifications