Android VideoView save RTSP stream - android

I'm playing on my Android Nexus One some videos of a few cisco cameras using a VideoView. While this works fine, I'm unsure if it's possible to save the movie to a file.
I'm opening an URL like rtsp://192.168.1.22:554/live.sdp
How can I save it to the SDcard ? Handle it like a file maybe ... Is that possible ?

You can implement/use library, your own RTSP client which will pipe the incoming RTP packets into a file.
if you want to also play the video stream you can then give the media player a local RTSP server address to your RTSP server and then pipe the same RTP packets to the media player as well.
If you need you can find an open source RTSP server/client here

Related

How to broadcast the rtmp live video using wowza media server?

I have used javacv library to stream the live video from mobile to wowza media server and it's working fine. And I tried to record the live video in media server for broadcasting the video to multiple devices but I can hear only audio from the recorded video file.
Please let me know where I have done wrong and let me know the steps for re-stream the video to multiple device. I'm new to the Media server platform.
Thanks.

Play RTP stream withouth RTSP in Android VideoView

I'd like to play a RTP stream in an Android VideoView. I create the stream with gstreamer on a linux machine and fire the rtp stream to a udp sink.
Is it possible to consume this stream in an Android VideoView without having a RTSP server?
I tried to set the video URI to "rtp://:#" but then I got an error "Video could not be played". I also thought about creating an SDP file and using that on the Android device. But I'm not sure if this works and how to create such a file.
Thanks
http://developer.android.com/guide/appendix/media-formats.html
Above link is first stop for what is support or no.
As it says rtp only in conjunction with sdp as per rtsp spec.
No can't do naked rtp stream in base android.
Try porting some lib like live555 if you must have naked rtp.

Unable to play H.264 RTP stream in Android

I'm currently trying to get my Android playing a H.264 encoded video stream. I pass the URI of my RTSP server (and the respective media layer) to a VideoView instance and in Wireshark, I see the following:
Sauce Destination Protocol Info
192.168.1.104 192.168.1.91 RTSP DESCRIBE rtsp://192.168.1.91:554/mytransmitteroutput1
192.168.1.91 192.168.1.104 RTSP Reply: RTSP/1.0 200 OK [SDP]
Funny thing is, the media player never gets further than this, never calling a SETUP etc. It just stops, on the VideoView "Can't play this video" appears and in Eclipse, I see the generic error Error (1, -247483648) so I assume the Android media player isn't happy with the SDP I'm sending back after the DESCRIBE. However, players like VLC or MXPlayer are completely satisfied and able to decode the stream.
Media format parameters in SDP
fmtp:96 profile-level-id=42C016; packetization-mode=1; sprop-parameter-sets=Z0KAHpZSgWh7IA==,aMkjUg==
I'm stupid. H.264 was encoded using high profile. According to this page https://developer.android.com/guide/appendix/media-formats.html, Android only supports the base profile.

Audio Microphone Live Streaming in Android

I am new in live streaming. I have a problem to create live streaming of recording file. I can upload the audio file to server and play from url using media player but i dont want this i want as i speak it broadcast to all and when i finish my speech then it stops broadcasting. Is it feasible or not. If feasible then how?
Can i do this with Amazon CloudFront?
As per my knowledge you can use Spydroid
it is basically for video streaming but you can use it for audio streaming as well and then you have to alter its code for audio streaming..
seccondly you will need some media server i will prefer you to use Red5 media server as it is opensource Red 5
red5 supports audio and video streaming both but you have to study it little bit

stream audio file from FTP server to Android App

I have a FTP server setup that holds audio files in one of its directories. I would like to stream the audio from the server and play it on my Android phone instead of downloading it and playing it back that way. Also, is it possible to stream it to the MediaPlayer in Android for playback?
The FTP protocol does not support streaming audio or video.
However, you could set up a streaming server on the same box that will do it for you. I've used VLC to stream video and it's pretty easy to set up. Should work for audio too.
http://www.videolan.org/doc/streaming-howto/en/index.html
You can stream video over FTP. It is just a basic transfer protocol and once you have the data streaming to your device you can do what you want with it. Take a look at this tutorial if you want to set up streaming to your phone:
https://www.digitaldrugs.co.uk/wordpress/?p=37
Sure it is possible, the only problem I see is that your media files should be in a continuous file format, such as MP3. See shoutcast streaming for example, it works via http.
yxplayer is what you want, but it might be a bit limited
You can stream mp3 over FTP. Same way you can DL mp3 from ftp and listen to it before it's finished DLing. There's File Managers/Explorers like FX for one that will do this, but all it's streaming stuff is a trial or maybe by now a paid unlockable feature. Look for an open source remedy.

Categories

Resources