streaming with red5 server - red5

I want to stream with red5 server and I did the following code
ffmpeg -i /var/lib/red5/webapps/test/1.flv -f flv rtmp://127.0.0.1:1935/live/livestream
But when i try to capture the stream it did not give anything.

red5 can read flv files directly and convert it to an rtmp stream on port 1935 by default. No need for ffmpeg. Moreover, port 1935 is used by red5 for connecting a flash client, not for pumping in an rtmp stream.

Related

How to capture rtp stream from webrtc then convert it to hls to broadcast to client?

How to capture rtp stream from webrtc then convert it to hls to broadcast to client ?
I want to receive rtp from webrtc in browser via media server (eg kurento ... ) then convert it to hls stream. User can use hlsEndpoint to play.
WebRTC -> RTP -> HLS
What is the correct way?
My aim is to create a live stream app that supports push streams using webrtc , i'm working with rtmp , i want webrtc as an additional option.
Tks all.
Just use a media server to covert WebRTC to Live Streaming like RTMP, HTTP-FLV or HLS, please read this wiki.
Because the WebRTC is not only RTP, but also need to transcode the audio from opus to aac, and there is something like the jitter-buffer, NACK or packet out-of-order to handle.
For live streaming, the RTMP is the de-facto standard in live streaming industry, so if you covert WebRTC to RTMP, you got everything, like transcoding by FFmpeg, forwarding to YouTube, or DVR to file, etc.
If you need to convert WebRTC to HLS or RTMP you may check Ant Media Server
The community edition also provides this.

Restreaming an rtsp stream through ffmpeg on iOS

I have an iOS application that displays an rtsp stream from an IP camera on the local network, I would like to restream it to an external server in real time (Wowza to be specific) the server will take care of converting rtsp to HLS so that the users can view the live broadcast on their devices.
On a computer it would be pretty straight forward:
ffmpeg [input-options] -i [input-file] [output-options] [output-stream-URI]
But I need to do it programmatically on iOS, and I'm not really sure if it's even possible. Anyone?
If you already have a server (where Wowza is installed) a good idea would be to run FFMPEG there. You can trigger that from mobile (with a script requests that executes ffmpeg command).

How to stream WebRTC audio to Icecast server?

How can i make an audio stream captured in browser using WebRTC to be streamed live via icecast/shoutcast protocols?
Use liquidsoap + webcaster.js:
https://github.com/webcast/webcaster

RTSP over SSL (RTSPS)

We have a video streaming (video on demand) server implemented using wowza streaming engine. Clients (android application, web browser) access the stream using RTMP (web browser) and RTSP (android application). As we have requirement that the streaming should be over SSL, as web browser's player (jw player) supports RTMPS, I have configured wowza to support RTMPS and tested the functionality. But we also need to support RTSP over SSL (RTSPS). I have read that wowza doesn't support RTSPS (ref: https://www.wowza.com/forums/showthread.php?34002-RTP-RTSP-over-SSL). Then we need to terminate the SSL on ELB itself(our video streaming server is behind an ELB).
We are using ffmpeg player in android player. Under this link there is nothing mentioned regarding RTSPS or RTSP over SSL. Just I am wondering whether such a protocol exists ?. If so, is there any android player or any other player I can use for testing RTSPS ?
Please go through the below link to configure your server to accept secured connection
[https://www.wowza.com/docs/how-to-get-ssl-certificates-from-the-streamlock-service#rtmpsPlayback][1]
Cross compile your ffmpeg to support openssl library.
Push your video stream to wowza using "rtsps"
eg:
ffmpeg -re -i -acodec copy -vcodec copy -f rtsp
rtsps://username:password#:443/live/myStream
I was recommend place a LB infront of my Wowza for SSL offloading so you can load the m3u8 over SSL. I was also told you can do that quite easily using HA Proxy for example. It is explained how to accomplish this here for RTMP but the same can obviously done with HTTP:
https://github.com/arut/nginx-rtmp-module/issues/457#issuecomment-250783255
Note, I have not tried this yet and I am unclear on exactly the proper use scenario. Hope this is helpful.
You can add a hostport to enable Streaming RTP/RTSP over SSL
<HostPort>
<Name>Default Secure Streaming</Name>
<Type>Streaming</Type>
<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
<IpAddress>*</IpAddress>
<Port>1937</Port>
<HTTPIdent2Response></HTTPIdent2Response>
<SSLConfig>
<KeyStorePath>${com.wowza.wms.context.VHostConfigHome}/conf/keystore.jks</KeyStorePath>
<KeyStorePassword>somePassword</KeyStorePassword>
</SSLConfig>
...
</HostPort>
You can playback over RTSPS with Wowza Streaming Engine.
With your SSL certificate in place, try this to test playback using the sample file provided in [install-dir]/content/sample.mp4 and the provided vod application.
ffplay rtsps://[your-wowza/cert-domain]:443/vod/mp4:sample.mp4

http streaming using vlc, apache web server

I was wondering if you could help me in the following scenario.
Currently I am receiving a udp stream in H.264 format and would like to use vlc to transcode it to a mobile device format and turn it into a stream file which I can then serve using an apache web server.
Does anyone have a tutorial on how to accomplish this?
Thank you.