Android4.4.2 UDP stream on i.MX6Q

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Android4.4.2 UDP stream on i.MX6Q

ソリューションへジャンプ
1,231件の閲覧回数
lqll
Contributor III

Hi,sir:

     According to <i_MX_Android_Extended_Codec_Release_Notes>,I  update android_kk4.4.2_1.0.0-ga_omxplayer_source.tar.gz ,then I can play udp stream on i.MX6Q,but I found that only some video can play well,others full of pixelization and the sound often stop.

     All my test video are 25~30FPS,4000~5000kb/s,720P or 1080P,and all encode in H.264.

     I use vlc on my PC to be streaming server,and use Gallery on android4.4.2 to be streaming client.

     So,please help me.

ラベル(5)
0 件の賞賛
返信
1 解決策
1,057件の閲覧回数
lqll
Contributor III

All right,I fix it.The problem caused by the tiny UDP buffer.

Change this file:

~/android/external/fsl_imx_omxlib_ffmpeg/libavformat/udp.c

-#define UDP_MAX_PKT_SIZE 65536

+#define UDP_MAX_PKT_SIZE 1048576

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,058件の閲覧回数
lqll
Contributor III

All right,I fix it.The problem caused by the tiny UDP buffer.

Change this file:

~/android/external/fsl_imx_omxlib_ffmpeg/libavformat/udp.c

-#define UDP_MAX_PKT_SIZE 65536

+#define UDP_MAX_PKT_SIZE 1048576

0 件の賞賛
返信
1,057件の閲覧回数
lqll
Contributor III

     I forget to say,all my test video are play well when they stored in eMMC or played by http protocal.

0 件の賞賛
返信
1,057件の閲覧回数
jamesbone
NXP TechSupport
NXP TechSupport

Hello Iql,

This scenario it is not going to work , because the Android Gallery does not have the feature to receive information through the streaming server, you need an application that handle this feature,  for example adding the VLC client to your android device or any other  APP that handle the streaming functionality


Have a great day,
Jaime

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信