AnsweredAssumed Answered

How to avoid mosaic/blur when playing online video

Question asked by Qiulong Li on Sep 20, 2017
Latest reply on Oct 3, 2017 by Diego Adrian Cuevas

hi all

My environment is i.MX6Q and Android 4.4.2.
When I use Android videoView to play UDP online video(H264,4M bitrate),some frames(not very much frames but obvious can find) are mosaic/blur, but when I play the same video local at the sdcard/sata,it does not have this problem and it's fluency.

I am sure my cable network is ok,I checked ifconfig,there is no errors or dropped Rx packets.

I've been changed android/external/fsl_imx_omx/lib_ffmpeg/libavformat/udp.c

-#define UDP_TX_BUF_SIZE 32768
-#define UDP_MAX_PKT_SIZE 1048576

+#define UDP_TX_BUF_SIZE 4194304
+#define UDP_MAX_PKT_SIZE 4194304

but it's not working for me,so it's not buffer problem.

So,anybody know how to solve this problem,please tell me,thank you very much!

Outcomes