i.MX6 mxc-vpu-test video streaming problems.

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

i.MX6 mxc-vpu-test video streaming problems.

2,514 Views
williamho
Contributor II

Dear all,

I got some problems about streaming functions of mxc-vpu-test.

Here is my test environment:

[Camera] ---->[i.MX6Q]---[mxc-vpu-test] ....(wifi)....[PC]----[VLC player]

*Server setup :

Platform: i.MX6Q  with Android BSP android-imx6-jb4.3-1.0.0. 

Video input: Camera with CVBS interface, device node: /dev/video0

Internet: WIFI connection, 192.168.1.12/24

Server command:  mxc-vpu-test -E '-x 0 -w 720 -h 480 -f 1 -n 239.255.12.42 -p 5555'

*Client setup :

Platform:  PC, ubuntu 12.04

Internet: WIFI connection,  192.168.1.20/24

Client command:   cvlc -v udp://@239.255.12.42:5555 

The client can display camera video via UDP video streaming.

There are some problems I met now:

1. I got  delay ( >10 seconds ) for UDP multicast stream.

I will upload a video about this issue.

Is there any ideas about how to reduce it?

   

2. Not every streaming transcends works.

In my testing, only MPEG4  and  H.263 works now, otherwise the vlc will return errors.

3. I got lots complaint message from VLS at clients:

How to setup VLC player to fix these warning? 

Ex 1:  Server sent H.263 streaming: 

> cvlc -v udp://@239.255.12.42:5555 

VLC media player 2.0.8 Twoflower (revision 2.0.8a-0-g68cf50b)

[0x20f8a58] main services discovery error: no suitable services discovery module

[0x205b3e8] dummy interface: using the dummy interface module...

[h263 @ 0x7f5dd402e380] warning: first frame is no keyframe

[h263 @ 0x7f5dd40230a0] max_analyze_duration reached

[h263 @ 0x7f5dd40230a0] Estimating duration from bitrate, this may be inaccurate

[0x7f5dd40013d8] access_udp access warning: unimplemented query in control

[h263 @ 0x7f5dd4037ea0] warning: first frame is no keyframe

[h263 @ 0x7f5dd4037ea0] Bad picture start code

[h263 @ 0x7f5dd4037ea0] header damaged

[0x7f5dd402d828] avcodec decoder warning: cannot decode one frame (12 bytes)

[h263 @ 0x7f5dd4037ea0] Bad picture start code

[h263 @ 0x7f5dd4037ea0] header damaged

……

Ex 2:  Server sent MPEG4 streaming, client fails

> cvlc -v udp://@239.255.12.42:5555 

VLC media player 2.0.8 Twoflower (revision 2.0.8a-0-g68cf50b)

[0xed5a58] main services discovery error: no suitable services discovery module

[0xe383e8] dummy interface: using the dummy interface module...

[0x7fa4ec002278] ps demux warning: this does not look like an MPEG PS stream, continuing anyway

[0x7fa4ec0015d8] access_udp access warning: unimplemented query in control

[0x7fa4ec002278] ps demux warning: garbage at input, trying to resync...

Ex 3:  Server sent MPEG4 streaming with warning...

> cvlc -v udp://@239.255.12.42:5555 

VLC media player 2.0.8 Twoflower (revision 2.0.8a-0-g68cf50b)

[0x20caa58] main services discovery error: no suitable services discovery module

[0x202d3e8] dummy interface: using the dummy interface module...

[m4v @ 0x7f1b2c0211c0] max_analyze_duration reached

[m4v @ 0x7f1b2c0211c0] Estimating duration from bitrate, this may be inaccurate

[0x7f1b2c0013d8] access_udp access warning: unimplemented query in control

[0x7f1b28000c28] main video output warning: picture is too late to be displayed (missing 48 ms)

[0x7f1b28000c28] main video output warning: picture is too late to be displayed (missing 4052 ms)

[0x7f1b28000c28] main video output warning: picture is too late to be displayed (missing 4012 ms)

….

Labels (3)
Tags (2)
0 Kudos
5 Replies

865 Views
jamiew
Contributor III

Hi William

DId you ever get mxc-vpu-test streaming h.264 to be displayed by VLC? Or any other application on the PC?

Any improvement on the latency?

Thanks

Jamie

0 Kudos

865 Views
williamho
Contributor II

williamho 留言:

1. I got  delay ( >10 seconds ) for UDP multicast stream.

I will upload a video about this issue.

Is there any ideas about how to reduce it?

   

Please check this video:

0 Kudos

865 Views
jack_mao
NXP Employee
NXP Employee

please refer to Re: Video delay problem in Android  to see if you can find answer

0 Kudos

865 Views
williamho
Contributor II

Dear Mao,

Thanks for your help at first.

But it's different situation between #342071 and me. (Reverse actually)

His setup :

[PC + VLC stream server] ---(network) ---> [i. MX6 tablet + MX Player client]

My setup :

[i. MX6 tablet + mxc-vpu-test stream] ---(network) ---> [PC + VLC stream client]

(Maybe I will try i. MX6 tablet as client later.)

Have you ever tried streaming server function of 'mxc-vpu-test' ?

Can you share your test setup? Thanks a lot.

0 Kudos

865 Views
jack_mao
NXP Employee
NXP Employee

Hi,

    The omxplayer will cache some data before start decoding, this is mentioned in the reference Community SR, I think you could reduce that buffer size, that will be helpful

0 Kudos