AnsweredAssumed Answered

Play RTSP stream issue on Lollipop

Question asked by igor ferrara on Jun 26, 2016
Latest reply on Jul 8, 2016 by SergioSolis

Hi all,
I'm using a SabreSD board as RTSP server.
It has been loaded linux 4.1.15 along with tw6869 device driver.
An avc8000nano board is connected to Mini-PCIe slot on SabreSD. Two cameras are connected on channels vch0 and vch1.
The RTSP server is the Gateworks gst-rtsp-server test-launch application.

The pipelines are the following:

 

gst-variable-rtsp-server -p 9001 -u "imxv4l2videosrc device=/dev/video0 queue-size=55 ! imxipuvideotransform deinterlace=true ! imxvpuenc_h264 bitrate=5000 ! h264parse ! rtph264pay name=pay0 pt=96"

 

gst-variable-rtsp-server -p 9002 -u "imxv4l2videosrc device=/dev/video1 queue-size=55 ! imxipuvideotransform deinterlace=true ! imxvpuenc_h264 bitrate=5000 ! h264parse ! rtph264pay name=pay0 pt=96"

 

The RTSP client is a SabreSD board with Android 5.1.1 (including the multimedia extended packages).

The problem is that OMXplayer is not able to play the streaming video.

OMXPlayer returns these errors:

 

06-23 14:35:06.172 29301-20022/? I/OMXPlayer: read_header fail -5, retry 1

06-23 14:35:06.174 29301-20022/? I/OMXPlayer: TCP connection to 192.168.0.80:9001 failed: Connection refused

06-23 14:35:06.274 29301-20022/? I/OMXPlayer: --

Sending:

06-23 14:35:06.274 29301-20022/? I/OMXPlayer: read_header fail -5, retry 2

06-23 14:35:06.275 29301-20022/? I/OMXPlayer: TCP connection to 192.168.0.80:9001 failed: Connection refused

06-23 14:35:06.376 29301-20022/? I/OMXPlayer: --

Sending:

06-23 14:35:06.376 29301-20022/? I/OMXPlayer: read_header fail -5, retry 3

06-23 14:35:06.379 29301-20022/? I/OMXPlayer: TCP connection to 192.168.0.80:9001 failed: Connection refused

06-23 14:35:06.479 29301-20022/? I/OMXPlayer: --

Sending:

06-23 14:35:06.479 29301-20022/? I/OMXPlayer: read_header fail -5, retry 4

06-23 14:35:06.480 29301-20022/? I/OMXPlayer: TCP connection to 192.168.0.80:9001 failed: Connection refused

06-23 14:35:06.580 29301-20022/? I/OMXPlayer: --

Sending:

06-23 14:35:06.580 29301-20022/? I/OMXPlayer: read_header fail -5, retry 5

06-23 14:35:06.582 29301-20022/? I/OMXPlayer: TCP connection to 192.168.0.80:9001 failed: Connection refused

06-23 14:35:06.682 29301-20022/? I/OMXPlayer: --

Sending:

06-23 14:35:06.682 29301-20022/? I/OMXPlayer: read_header fail -5, retry 6

06-23 14:35:06.684 29301-20022/? I/OMXPlayer: TCP connection to 192.168.0.80:9001 failed: Connection refused

06-23 14:35:06.784 29301-20022/? I/OMXPlayer: --

Sending:

06-23 14:35:06.784 29301-20022/? I/OMXPlayer: read_header fail -5, retry 7

06-23 14:35:06.786 29301-20022/? I/OMXPlayer: TCP connection to 192.168.0.80:9001 failed: Connection refused

06-23 14:35:06.886 29301-20022/? I/OMXPlayer: --

Sending:

06-23 14:35:06.887 29301-20022/? I/OMXPlayer: read_header fail -5, retry 8

06-23 14:35:06.888 29301-20022/? I/OMXPlayer: TCP connection to 192.168.0.80:9001 failed: Connection refused

06-23 14:35:06.989 29301-20022/? I/OMXPlayer: --

Sending:

06-23 14:35:06.989 29301-20022/? I/OMXPlayer: read_header fail -5, retry 9

06-23 14:35:06.990 29301-20022/? I/OMXPlayer: TCP connection to 192.168.0.80:9001 failed: Connection refused

06-23 14:35:07.090 29301-20022/? I/OMXPlayer: --

Sending:

06-23 14:35:07.090 29301-20022/? I/OMXPlayer: read_header fail -5, retry 10

06-23 14:35:07.092 29301-20022/? I/OMXPlayer: TCP connection to 192.168.0.80:9001 failed: Connection refused

06-23 14:35:07.192 29301-20022/? I/OMXPlayer: --

Sending:

06-23 14:35:07.192 29301-20022/? I/OMXPlayer: read_header fail -5, retry 11

06-23 14:35:07.194 29301-20022/? I/OMXPlayer: TCP connection to 192.168.0.80:9001 failed: Connection refused

06-23 14:35:07.194 29301-20022/? I/OMXPlayer: read_header totally fail!!!

06-23 14:35:07.194 29301-20022/? I/OMXPlayer: LEVEL: 1 FUNCTION: InstanceInit LINE: 76

06-23 14:35:07.194 29301-20022/? I/OMXPlayer: InitStreaming failed.

06-23 14:35:07.195 29301-20019/? I/OMXPlayer: LEVEL: 1 FUNCTION: SysEventHandler LINE: 1804

06-23 14:35:07.195 29301-20019/? I/OMXPlayer: OMX.Freescale.std.parser.streaming.sw-based report Error 80001020.

06-23 14:35:07.209 29301-20020/? I/OMXPlayer: LEVEL: 1 FUNCTION: Load LINE: 832

06-23 14:35:07.209 29301-20020/? I/OMXPlayer: Can't load content rtsp://192.168.0.80:9001/stream

06-23 14:35:07.209 29301-20020/? I/OMXPlayer: GMPlayer Stop

 

The previous pipelines and the same 'apk' app work well on the same board with Android JB 4.3.

Further we have no problem using VLC as client in a in Windows PC.

 

I don’t understand where is the problem.

Can someone help me?

This problem blocks our project.

Thanks in advance,

 

Igor

Outcomes