VLCKit not displaying URL's with pictures in .jpg format

This forum is about all development around libVLC.
PlasmaUK
New Cone
New Cone
Posts: 6
Joined: 14 Aug 2020 13:32

VLCKit not displaying URL's with pictures in .jpg format

Postby PlasmaUK » 14 Aug 2020 13:45

I'm using VLCKit in an iOS and tvOS project via Cocoapods to display RTSP Streams from various places, works great!
I'm looking to see if I can make the app support static image URL's that change over time, for example this is a traffic cam url that the image changes regularly:

http://www.kandrive.org/cameras/cam307015920.jpg

When I load it in desktop VLC it displays the image and refreshes it every 10 seconds or so, when I try to load it inside VLCKit I get nothing.
I would like to replicate the VLC Desktop behaviour in my app, this is the code I'm using to load up the RTSP URL's which works fine, but doesn't work for jpg streams.

Code: Select all

NSString *url = @"http://www.kandrive.org/cameras/cam307015920.jpg"; VLCMedia *media = [VLCMedia mediaWithURL:[NSURL URLWithString:url]]; cameraPlayer = [[VLCMediaPlayer alloc] init]; cameraPlayer.drawable = cameraButton; cameraPlayer.media = media; cameraPlayer.delegate = self; [cameraPlayer play]; [self.view addSubview:cameraButton];
Am I missing something obvious here, do I need to set some specific options when I init the player or is the feature in Desktop VLC not using the standard VLCKit player?

Many Thanks in advance!

Plasma

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

Re: VLCKit not displaying URL's with pictures in .jpg format

Postby mfkl » 02 Sep 2020 13:22

Hi,

Can you share the verbose logs of both VLC and your vlckit app when trying to play that jpg file please?
https://mfkl.github.io

PlasmaUK
New Cone
New Cone
Posts: 6
Joined: 14 Aug 2020 13:32

Re: VLCKit not displaying URL's with pictures in .jpg format

Postby PlasmaUK » 09 Sep 2020 19:27

Its very strange, starting my app with -vvv when using RTSP gives lots of info:

Code: Select all

2020-09-09 18:03:55.463214+0100 Camera_VLC[1256:220589] creating player instance with private library as options were given Opening connection to 192.168.17.254, port 7447... ...remote connection opened Sending request: OPTIONS rtsp://192.168.17.254:7447/TS0yb1Ky35K7aa8o RTSP/1.0 CSeq: 2 User-Agent: LibVLC/3.0.10 (LIVE555 Streaming Media v2016.10.21) Received 275 new bytes of response data. Received a complete OPTIONS response: RTSP/1.0 200 OK CSeq: 2 Cache-Control: no-store Date: Wed, 09 Sep 2020 17:03:55 UTC Expires: Wed, 09 Sep 2020 17:03:55 UTC Pragma: no-cache Public: DESCRIBE, OPTIONS, PAUSE, PLAY, SETUP, TEARDOWN, ANNOUNCE, RECORD Server: EvoStream Media Server (www.evostream.com) Sending request: DESCRIBE rtsp://192.168.17.254:7447/TS0yb1Ky35K7aa8o RTSP/1.0 CSeq: 3 User-Agent: LibVLC/3.0.10 (LIVE555 Streaming Media v2016.10.21) Accept: application/sdp Received 919 new bytes of response data. Received a complete DESCRIBE response: RTSP/1.0 200 OK CSeq: 3 Cache-Control: no-store Content-Base: rtsp://192.168.17.254:7447/TS0yb1Ky35K7aa8o/ Content-Length: 607 Content-Type: application/sdp Date: Wed, 09 Sep 2020 17:03:55 UTC Expires: Wed, 09 Sep 2020 17:03:55 UTC Pragma: no-cache Server: EvoStream Media Server (www.evostream.com) v=0 o=- 2464 0 IN IP4 192.168.17.254 s=B4FBE47E3461_0 u=www.evostream.com e=contact@evostream.com c=IN IP4 192.168.17.254 t=0 0 a=recvonly a=control:* a=range:npt=now- m=audio 0 RTP/AVP 96 a=recvonly a=rtpmap:96 mpeg4-generic/11025/1 a=control:trackID=1 a=fmtp:96 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1508; SizeLength=13; IndexLength=3; IndexDeltaLength=3; m=video 0 RTP/AVP 97 a=recvonly a=control:trackID=2 a=rtpmap:97 H264/90000 a=fmtp:97 profile-level-id=4d0029; packetization-mode=1; sprop-parameter-sets=Z00AKZpkA8ARPy/+AXoBfNwEBAUAAAMD6AAA6mCdoIhGoA==,aO48gA== Sending request: SETUP rtsp://192.168.17.254:7447/TS0yb1Ky35K7aa8o/trackID=1 RTSP/1.0 CSeq: 4 User-Agent: LibVLC/3.0.10 (LIVE555 Streaming Media v2016.10.21) Transport: RTP/AVP/TCP;unicast;interleaved=0-1 Received 267 new bytes of response data. Received a complete SETUP response: RTSP/1.0 200 OK CSeq: 4 Cache-Control: no-store Date: Wed, 09 Sep 2020 17:03:55 UTC Expires: Wed, 09 Sep 2020 17:03:55 UTC Pragma: no-cache Server: EvoStream Media Server (www.evostream.com) Session: 5eHsUNT2 Transport: RTP/AVP/TCP;unicast;interleaved=0-1 Sending request: SETUP rtsp://192.168.17.254:7447/TS0yb1Ky35K7aa8o/trackID=2 RTSP/1.0 CSeq: 5 User-Agent: LibVLC/3.0.10 (LIVE555 Streaming Media v2016.10.21) Transport: RTP/AVP/TCP;unicast;interleaved=2-3 Session: 5eHsUNT2 Received a complete SETUP response: RTSP/1.0 200 OK CSeq: 5 Cache-Control: no-store Date: Wed, 09 Sep 2020 17:03:55 UTC Expires: Wed, 09 Sep 2020 17:03:55 UTC Pragma: no-cache Server: EvoStream Media Server (www.evostream.com) Session: 5eHsUNT2 Transport: RTP/AVP/TCP;unicast;interleaved=2-3 Sending request: PLAY rtsp://192.168.17.254:7447/TS0yb1Ky35K7aa8o/ RTSP/1.0 CSeq: 6 User-Agent: LibVLC/3.0.10 (LIVE555 Streaming Media v2016.10.21) Session: 5eHsUNT2 Range: npt=0.000- Received a complete PLAY response: RTSP/1.0 200 OK CSeq: 6 Cache-Control: no-store Date: Wed, 09 Sep 2020 17:03:55 UTC Expires: Wed, 09 Sep 2020 17:03:55 UTC Pragma: no-cache RTP-Info: url=rtsp://192.168.17.254:7447/TS0yb1Ky35K7aa8o/trackID=1;seq=5420;rtptime=0,url=rtsp://192.168.17.254:7447/TS0yb1Ky35K7aa8o/trackID=2;seq=8571;rtptime=0 Range: npt=now- Server: EvoStream Media Server (www.evostream.com) Session: 5eHsUNT2 [swscaler @ 0x10d57c000] Forcing full internal H chroma due to input having non subsampled chroma 2020-09-09 18:03:56.427191+0100 Camera_VLC[1256:220589] Metal GPU Frame Capture Enabled 2020-09-09 18:03:56.428178+0100 Camera_VLC[1256:220589] Metal API Validation Enabled
But starting it with -vvv and a .jpg stream it outputs only:

Code: Select all

2020-09-09 18:05:02.107365+0100 Camera_VLC[1261:221611] creating player instance with private library as options were given
Thanks

Plasma


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 14 guests