Dear All:
Now we got some video file which is interlace YUV data after decoder.
when I play this file with imx6 android platform (version: android_4.2.2_1.1.0), I got some stripe when the object is motion in the video.
then I try to play the video file in the imx6 linux platform, the effect is better than above.
So, I guess the android platform haven't open the De-interlace motion function.
in the linux platform, I can found the source code about the De-interlace motion in the gstreamer plugin mfw_vl4sink
struct v4l2_control ctrl;
ctrl.id = V4L2_CID_MXC_MOTION;
ctrl.value = v4l_info->motion;
err = ioctl (v4l_info->v4l_id, VIDIOC_S_CTRL, &ctrl);
this ioctl can control the framebuffer driver to handle the motion De-interlace issue.
But I don't know how to add the motion De-interlace function into the android platform.
Hope your help!
Thanks Advance!
Hi,
Huang
Android sdk default sets motion to LOW_MOTION.
You need to set it to HIGH_MOTION, this will improve your de-interlacing in android.
Thanks
Saurabh
Thank you for your reply, Saurabh
But I don't how and where to set the motion to HIGH_MOTION,
I found some framebuffer ioctl in hardware/imx/mx6/libgralloc_wrapper/ but nothing about the motion setting.
As I know, it should be call the libipu.so to solve the motion issue in the imx53 android source code (liboverlay----hardware/mx5x/liboverlay/)
Is the imx6 source code use the same way to solve the motion issue? if so, pls tell me which lib call the libipu.so
Thanks advance!
Hi,
Huang
You need to look at /external/fsl_imx_omx/OpenMAXIL.
Thanks
Saurabh
JianLi Sep 17, 2013 6:16 PM (in response to Karina Valencia Aguilar)
We have code support de-interlace in android 4.2.2, you can use below setting to enable it. Input them from console after booting up.
echo 2 > /data/omx_post_process
chmod 777 /data/omx_post_process
the value can be changed to different de-interlace mode:
1(low motion), 2(med motion), 3(high motion)
We default not enable this module as we found some problem for IPU in MX6Q, will cause system hang in some cases. This issue is still in checking.
Hi Karina,
My customer is working on Android i.MX6Q platform and they need to support video de-interlacing. They are using the video de-interlacing you mentioned in this post and they have it working OK at this point. They have the following questions:
Hi, I met the same problem in imx6q sabresd kind board, but I use android 4.0.1 , I want to know whether it can be supported in android 4.0.1 or not?
Karina, Thank you for you reply! Thanks