Multiple VLCMediaPlayer stream multiple RTSP streams

iOS, iPad, iPhone, tvOS specific usage questions
TheBEarF8
Blank Cone
Blank Cone
Posts: 14
Joined: 09 Mar 2014 21:30

Multiple VLCMediaPlayer stream multiple RTSP streams

Postby TheBEarF8 » 19 Mar 2014 03:38

Trying to create an app that will tap into CCTV cameras

So I have multiple VLCMediaPlayers like so

Code: Select all

player1 = [[VLCMediaPlayer alloc] init]; [player1 setDrawable:view1]; [player1 setMedia:[VLCMedia mediaWithURL:[NSURL URLWithString:@"rtsp://10.10.10.10/channel=1_stream=1.sdp?real_stream"]]]; [player1 play];
I see the following in the console Lots of them
[1829ea74] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[1829ea74] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[1829ea74] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[1829ea74] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[1829ea74] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)


Plus the Videos are all static the frame stays the same and every 5 to 10 minutes the frame updates
You can tell because the clock in picture does not change

1) Is there a way to have multiple rtsp streams at once ?

2) How can I tell which player is generating the console message ?

3) Would it be better to to use something like DVBlast
and feed all the cameras to a 1U server on the network (Can you even, input RTSP streams to DVBlast ?)
and then RTP Multicast one stream from the server to the iPad?

4) Is there another option that is better ?


Thanks in advance

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: Multiple VLCMediaPlayer stream multiple RTSP streams

Postby fkuehne » 21 Mar 2014 10:03

[1829ea74] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[1829ea74] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
You are trying to decode more streams (or too many HD streams) than supported by your device.
1) Is there a way to have multiple rtsp streams at once ?
Sure, just use multiple VLCMediaPlayer objects and video output views. However, pay attention to the CPU load, which when playing 4 streams instead of one, will be four times higher..
How can I tell which player is generating the console message ?
You can't, unless you silence all objects except for one.
3) Would it be better to to use something like DVBlast
and feed all the cameras to a 1U server on the network (Can you even, input RTSP streams to DVBlast ?)
and then RTP Multicast one stream from the server to the iPad?
Absolutely.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

TheBEarF8
Blank Cone
Blank Cone
Posts: 14
Joined: 09 Mar 2014 21:30

Re: Multiple VLCMediaPlayer stream multiple RTSP streams

Postby TheBEarF8 » 21 Mar 2014 13:10

Thanks Felix
Could you please shed some light on how I could approach

3)
Use a 1) server with DVBlast or cvlc with Mosaic or what ?

Thanks in advance

jasauders
New Cone
New Cone
Posts: 2
Joined: 03 Jul 2014 07:47

Re: Multiple VLCMediaPlayer stream multiple RTSP streams

Postby jasauders » 03 Jul 2014 08:41

Did you have any luck with this? I am in an identical situation. CCTV cameras, RTSP streams, want to view several at once without needing multiple instances of VLC. So far Mosaic has struck out for me. I may be doing something wrong with it but what documentation I've read hasn't helped so far. I'd be curious to know if you found a workable solution or not.


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 5 guests