Freescale / libimxvpuapi

i.MX VPU API Library
GNU Lesser General Public License v2.1
88 stars 54 forks source link

imxvpuenc_h264 not working with apple homekit #26

Closed angelobt closed 3 years ago

angelobt commented 6 years ago

Hi, we are implementing an Apple homekit accessory using an imx6solo CPU.

The environment is:

the pipeline is

imxv4l2videosrc -> imxipuvideotransform (deinterlace + resize) -> imxvpuenc_h264 -> appsink

then buffers coming from appsink are sent to apple API that do RTP packetization and UDP transmission.

The problem is that apple devices can't start video decoding.

We have tried to use fsl plugins instead of imx ones (vpuenc instead of imxvpuenc_h264) and in this case the video decoding (apple side) works well.

We have seen that inside your library there is a comment about SPS, PPS, AUD order that is no longer guaranteed. Do you think the problem could be related to that frames order? (commit 17f1328)

Thanks in advance, Angelo

angolini commented 3 years ago

Could you, please, test using the latest version and update the status @angelobt