cannot been deinterlaced with i.MX8MQ

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

cannot been deinterlaced with i.MX8MQ

5,647 Views
zetfan
Contributor I
Hello.
 
I am trying to play H.264 and MPEG2 interlaced video using a hardware decoder with i.MX8MQ,
but the displayed video has not been deinterlaced.
The decoder library log is as follows,
and the output format is progressive.

VideoDecoderBase: New format(pixelfmt=0x103, min buffers=3, request buffers 6, w*h=1440 x 1088, crop=(0 0 1440 1080), interlaced 0)

My questions are:
1. Does the imx8mq VPU not have the ability to deinterlace during decoding?
2. If so, why is the video being output as progressive?

The environment is as follows:
OS: Android 11.0.0
Player: VLC for android 3.1.7
0 Kudos
Reply
10 Replies

5,589 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

For H1 encoder IP, which can support interlaced video according to the reference manual, but for VPU API, which couldn't handle interlaced video on encoding, but decoder api does.

regards

 

0 Kudos
Reply

5,515 Views
zetfan
Contributor I
Hello Bio_TICFSL,

I am currently using the imx-vpuwrap library,
but is it possible to perform deinterlacing?
Also, can I check if deinterlacing is enabled from a CPU register?

Thank you.
0 Kudos
Reply

5,499 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi,

The VPUWrap library does not support deinterlaced video, as mentioned before just the API does but you have to change the code.

Regards

0 Kudos
Reply

5,425 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

You need to change the file utils and try to change the VpuScanAvccFrameNalNu, I think also the datasize, of course this is going to be part of VPUAPI.

Regards

0 Kudos
Reply

5,358 Views
zetfan
Contributor I

Hi,

I believe deinterlacing is done by setting bAllowFieldDBP to true and using the buffer in the VPU,
but now two frames are displayed one above the other.
Are there any additional changes I need to make?
 
Thank you.
0 Kudos
Reply

5,342 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

No, Form the point of view of VPU.

regards

0 Kudos
Reply

5,230 Views
zetfan
Contributor I
Does the software deinterlace the two frames output from the VPU?
 
Thank you.
0 Kudos
Reply

5,417 Views
zetfan
Contributor I

Hi,

Why doesn't the VPUWrap library implement interlace detection?
Was there a risk of performance degradation or anything like that?
 
Thank you.
0 Kudos
Reply

5,432 Views
zetfan
Contributor I

Hi,

What is the status regarding the changes required to the VPUWrap library to deinterlace?
Could you please let me know what the changes required are?
0 Kudos
Reply

5,490 Views
zetfan
Contributor I

Hi,

 

Can you please tell me what changes are needed to the VPUWrap library to enable deinterlacing?
0 Kudos
Reply