RTSP not Playing in VLCKit

This forum is about all development around libVLC.
chrisfauerbach
New Cone
New Cone
Posts: 3
Joined: 02 Oct 2018 03:36

RTSP not Playing in VLCKit

Postby chrisfauerbach » 02 Oct 2018 03:38

Hello all! I'm trying to write a very basic application using VLCKit for a Mac OS application. XCode, Mac OS 10.13, etc.

I can use the bunny URL without issue, audio and video show just fine:
Yet, when I run against an RTSP feel, I get some output in the standard out, but no audio/video
Name output is: rtsp://192.168.10.12:554/2
Opening connection to 192.168.10.12, port 554...
...remote connection opened
Sending request: OPTIONS rtsp://192.168.10.12:554/2 RTSP/1.0
CSeq: 2
User-Agent: LibVLC/3.0.4 (LIVE555 Streaming Media v2016.10.21)


Received 102 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 2
Public: OPTIONS,DESCRIBE,SETUP,TEARDOWN,PLAY,SET_PARAMETER,GET_PARAMETER


Sending request: DESCRIBE rtsp://192.168.10.12:554/2 RTSP/1.0
CSeq: 3
User-Agent: LibVLC/3.0.4 (LIVE555 Streaming Media v2016.10.21)
Accept: application/sdp


Received 662 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
CSeq: 3
Content-Type: application/sdp
Cache-Control: must-revalidate
Content-Length: 508
Content-Base: rtsp://192.168.10.12:554/2

v=0
o=CameraStreaming 3132335948 1236907222000 IN IP4 192.168.10.12
s=10
c=IN IP4 0.0.0.0
t=0 0
a=control:*
m=video 0 RTP/AVP 96
a=control:trackID=0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=4D0014;sprop-parameter-sets=Z00AFJ2oUH6bgICAgQ==,aO48gA==
a=framesize:96 320-240
m=audio 0 RTP/AVP 104
a=control:trackID=1
a=rtpmap:104 MPEG4-GENERIC/48000/2
a=fmtp:104 streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1190
Any thoughts?

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: RTSP not Playing in VLCKit

Postby mfkl » 02 Oct 2018 08:43

Does playing your stream work with the official macOS VLC app?
https://mfkl.github.io

chrisfauerbach
New Cone
New Cone
Posts: 3
Joined: 02 Oct 2018 03:36

Re: RTSP not Playing in VLCKit

Postby chrisfauerbach » 02 Oct 2018 13:53

It does! I should have specified that in the first place. My apologies.

I'm new to Mac OS development (but a 20 year developer).. so I very well may be doing something stupid, but I'm pretty sure I'm not :D

Just tried my app and VLC against this too, no issues in the VLC app, same behavior in mine.


rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov

chrisfauerbach
New Cone
New Cone
Posts: 3
Joined: 02 Oct 2018 03:36

Re: RTSP not Playing in VLCKit

Postby chrisfauerbach » 03 Oct 2018 19:31

Figured it out! Debug logs for the win!

My app didn't have network server permissions. Once set, all was good!


Return to “Development around libVLC”

Who is online

Users browsing this forum: m1adow and 20 guests