We are facing some issue regarding TCP streaming, So we need help.
Project requirement:
RTSP streaming over TCP.
Take snapshot of streaming video.
Streaming multiple videos in single screen.
We have used Android media player to stream RTSP. But media player supports RTSP only over UDP protocol, It fails over TCP. We need to support RTSP streaming over TCP protocol in the project.
Android VLC player supports streaming RTSP over TCP protocol. We have tried VLC using this link https://wiki.videolan.org/AndroidCompile/. But we cannot play multiple videos in single screen, also snapshot feature cannot be implemented since VLC uses SurfaceView to load the video.
Any suggestion regarding "streaming multiple RTSP videos over TCP" and "Snapshot" would be helpful.
Thanks in advance.
now the VLC code is updated.
it supports multiple instance.
You can use texture view to get a snapshot gather than surface view.
hope this helps ;)
Related
I want to make an Android app which should be capable of playing at least 6 Live RTSP video streams with functionality of pause and play. Is there any way to achieve this efficiently. Thanks in advance.
Android Video Streaming Layout
I never used it but there is a library for stream in rtmp and rtsp. Here is the github : https://github.com/pedroSG94/rtmp-rtsp-stream-client-java
I am planning to make an app for video live streaming ,and I searched a lot for that, if any example for live streaming using rtsp, but no luck for rtmp.
I have requirement using RTMP protocol for streaming. There is quite good player for rtmp but didn't found any example streaming using rtmp
I have tried broadcasting videos in Android app through Wowza server and it works pretty well with this demo of javaCV.
But the only problem with this is that it uses flv file format to broadcast on Wowza server. It uses FFmpegFrameRecorder to broadcast live video to wowza server (not VOD). To set format of the video broadcasted at server, it uses following method:
recorder.setFormat("flv");
So the main problem with this method is that when I use other formats, it doesn't work. For E.g.:
recorder.setFormat("mpeg"); //or something like mov, etc
Please suggest a way to broadcast video from Android device to wowza server with any format other than flv. Please provide any links or tutorials with which I can start.
Thanks in advance.
Edit: I am able to play only audio while streaming vlc video format in Android and iOS devices.
Your issue is not container, but protocol. For live streaming, your best options are RTMP, RTP/RTSP. RTMP is essentially FLV with VCR style commands (play pause stop). There is no streaming protocol for MP4, except HTTP. and this would require you to produce a new mp4 ever few seconds and reassemble server side.
Im not sure you FLV/RTMP is off limits to you, because it probably is the best. But next I would suggest RTSP, and maybe WebRTC.
Flowplayer can play rtmp and http live stream but can i use the same player to play rtsp stream. I have rtsp stream for android which can be played using external player but it opens in fullscreen mode. I thought of putting it inside a frame but the external player opens outside of the frame in android device. So i want to use flowplayer to play rtsp stream in android. Is it possible and if not what to use.
I am fairly certain that Flowplayer, while a great solution for many things, cannot be extended to accept a straight RTSP stream. In any case, I don't believe there is a supported mobile version or plugin of Flowplayer for Android at this point. I have even seen reports that embedded flowplayers being viewed on Android have been sketchy at best.
I have, however, used ffserver and ffmpeg (http://ffmpeg.org/) to transcode the RTSP stream into .flv to be played with Flowplayer, but if a transcoded stream could be broadcast on your system, you'd be well on your way!
Mason
I know that android supports RTSP streaming if you use the native video player, but I have not been able to find if you can stream video on Android using the HTML5 tag.
The real reason I want to figure this out is I will be using Apple HTTP Live Streaming to serve video to the iPhone using HTML5 and would like to keep things simple and be able to simply define another streaming video source for android.
Any help would be greatly appreciated! Thanks.
No, it doesn't work and probably never will. However, from Android 3.0, HTTP Live Streaming is supported.
I recommend you use a flexible media server such as Wowza. It can stream HLS as well as RTSP and RTMP(Flash) from a single source.