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

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.

Related

Record device Audio and Stream using FFMPEG or

I a developing an app in which I want to record Device internal Audio and stream the audio to other device on Same network.
I heard that FFMPEG and RTMP protocols provide the functionality to record and stream Audio. But I al unable to search any working example or demo.
I also searched about MediaProjection API, but it is recording the screen with Audio and then saving in local device memory rather than streaming it.
All I want to Stream the Audio while recording to other device on same network.
I followed following links for Audio streaming:
Screen capture
The above link record the device screen and Audio and then saving in Local memory. But I want to stream to other device.
RTMP Live streaming
Record Audio stream using FFMPEG
And this one:
Audio stream
But there is no proper documentation or working example from which I get some hint, so that I can integrate that one in my app.
I know ampme App have this feature. As it is streaming device Video and Audio to other nearby devices.
I am stuck here. Please provide some info so that I can proceed further.

How to Live stream RTMP/RTSP to a WOWZA server on Android

I am developing an Android application in which I want to publish as well as stream a video...
What I want is:
My app records a video and that video is sent to the server
The recorded video will be streamed live to another Android device at the same time..
P.S.:
I am using wowza server and RTMP stream. I would like to stream RTMP video (.flv)... If no solution is available, I would like to switch to RTSP and for that also, need a working link to follow.
Are there any suite of classes that make this easy?
Using libstreaming you can stream live video to the Wowza server form the android device running Android 4.0(API Level 14),or more recent.
For More details Check this link: https://github.com/fyhertz/libstreaming/wiki/Using-libstreaming-with-Wowza-Media-Server
Download the examples from here: https://github.com/fyhertz/libstreaming-examples

Live Video Broadcasting in Android using Wowza Server

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.

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

Android VideoView save RTSP stream

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

Categories

Resources