Trying to debug issues with streaming using LibVLC on iOS

This forum is about all development around libVLC.
intveltr
New Cone
New Cone
Posts: 2
Joined: 12 Jun 2017 19:13

Trying to debug issues with streaming using LibVLC on iOS

Postby intveltr » 12 Jun 2017 19:39

I'm trying to use LibVLC in an iOS project but I have some trouble getting a stream to work. I successfully built LibVLC for iOS and created a working player, pretty much the same as the SimplePlayback example. The player works fine on different media files and some online example streams. However it fails when I try to stream a feed from a camera piped through Bluecherry (rtsp, h264)

What happens (when I run the player with the -vvv option) is the debug output (see below) showing a normal rtsp session start as far as I can see. The app shows a single frame of the stream, but then stops (the image doesn't move).

The options I am passing to the VLCMediaPlayer:
-vvv
--rtsp-tcp
--rtsp-user
--rtsp-pwd

I've tried openig the same stream in VLC on the PC as well in the VLC app on the iPhone, and it works correctly in both cases. Is there something special I need to do in order to open or support certain types of streams?

Code: Select all

017-06-12 19:32:32.163 VLCKit Test[62559:4268465] creating player instance with private library as options were given Opening connection to 192.168.1.162, port 7002... ...remote connection opened Sending request: OPTIONS rtsp://192.168.1.162:7002/live/1 RTSP/1.0 CSeq: 2 User-Agent: LibVLC/3.0.0-git (LIVE555 Streaming Media v2016.11.28) Received 104 new bytes of response data. Received a complete OPTIONS response: RTSP/1.0 200 OK CSeq: 2 Content-Length: 0 Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE Sending request: DESCRIBE rtsp://192.168.1.162:7002/live/1 RTSP/1.0 CSeq: 3 User-Agent: LibVLC/3.0.0-git (LIVE555 Streaming Media v2016.11.28) Accept: application/sdp Received 112 new bytes of response data. Received a complete DESCRIBE response: RTSP/1.0 401 Authorization Required CSeq: 3 Content-Length: 0 WWW-Authenticate: Basic realm="RTSP Server" Resending... Sending request: DESCRIBE rtsp://192.168.1.162:7002/live/1 RTSP/1.0 CSeq: 4 Authorization: Basic YWRtaW46Y2hhaWtBNjY= User-Agent: LibVLC/3.0.0-git (LIVE555 Streaming Media v2016.11.28) Accept: application/sdp Received 80 new bytes of response data. Have received 80 total bytes of a DESCRIBE RTSP response; awaiting 305 bytes more. Received 305 new bytes of response data. Received a complete DESCRIBE response: RTSP/1.0 200 OK CSeq: 4 Content-Length: 305 Content-Type: application/sdp v=0 o=- 0 0 IN IP4 127.0.0.1 s=No Name t=0 0 a=tool:libavformat 57.25.100 m=video 0 RTP/AVP 96 b=AS:128 a=rtpmap:96 H264/90000 a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z00AKpWoHgCJ+VA=,aO48gA==; profile-level-id=4D002A a=control:streamid=0 m=audio 0 RTP/AVP 8 a=control:streamid=1 Sending request: SETUP rtsp://192.168.1.162:7002/live/1/streamid=0 RTSP/1.0 CSeq: 5 Authorization: Basic YWRtaW46Y2hhaWtBNjY= User-Agent: LibVLC/3.0.0-git (LIVE555 Streaming Media v2016.11.28) Transport: RTP/AVP/TCP;unicast;interleaved=0-1 Received 120 new bytes of response data. Received a complete SETUP response: RTSP/1.0 200 OK CSeq: 5 Content-Length: 0 Session: 1090663979 Transport: RTP/AVP/TCP;mode="PLAY";interleaved=0-1 Sending request: SETUP rtsp://192.168.1.162:7002/live/1/streamid=1 RTSP/1.0 CSeq: 6 Authorization: Basic YWRtaW46Y2hhaWtBNjY= User-Agent: LibVLC/3.0.0-git (LIVE555 Streaming Media v2016.11.28) Transport: RTP/AVP/TCP;unicast;interleaved=2-3 Session: 1090663979 Received a complete SETUP response: RTSP/1.0 200 OK CSeq: 6 Content-Length: 0 Session: 353793983 Transport: RTP/AVP/TCP;mode="PLAY";interleaved=2-3 Sending request: PLAY rtsp://192.168.1.162:7002/live/1 RTSP/1.0 CSeq: 7 Authorization: Basic YWRtaW46Y2hhaWtBNjY= User-Agent: LibVLC/3.0.0-git (LIVE555 Streaming Media v2016.11.28) Session: 353793983 Range: npt=0.000- Received a complete PLAY response: RTSP/1.0 200 OK CSeq: 7 Content-Length: 0

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Trying to debug issues with streaming using LibVLC on iOS

Postby Jean-Baptiste Kempf » 16 Jun 2017 16:15

The logs show it working fine. Where does it fail?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

intveltr
New Cone
New Cone
Posts: 2
Joined: 12 Jun 2017 19:13

Re: Trying to debug issues with streaming using LibVLC on iOS

Postby intveltr » 19 Jun 2017 17:14

No video is displayed in the view for that stream. The stream does work on the VLC app on iOS


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 33 guests