Page 1 of 1

Multiple VLCMediaPlayer stream multiple RTSP streams

Posted: 19 Mar 2014 03:38
by TheBEarF8
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

Re: Multiple VLCMediaPlayer stream multiple RTSP streams

Posted: 21 Mar 2014 10:03
by fkuehne
[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.

Re: Multiple VLCMediaPlayer stream multiple RTSP streams

Posted: 21 Mar 2014 13:10
by TheBEarF8
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

Re: Multiple VLCMediaPlayer stream multiple RTSP streams

Posted: 03 Jul 2014 08:41
by jasauders
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.