Converting FMS RTMP Live stream to RTSP for BlackBerry - blackberry

Is there a way to convert a RTMP live stream from FMS 4.5 to RTSP for a BlackBerry App? I have a FMS 4.5 server deployed would like to enable live streaming to BlackBerry users via a native app and according to BlackBerry documentation, the only protocols that can support Live Streaming on a BlackBerry device are HTTP & RTSP.
BlackBerry Support for media streaming

You could use rtmpdump in a cgi and write to stdout, wouldn't be rtsp, just http.
This is how I used play rtmp streams off NBC without flash.
The script is called with the rtmp stream as an argument.
such as:
http://example.com/cgi-bin/nbc.cgi?nbcv=url-minus-domain/movie.mp4
#!/usr/bin/env python
import cgi
import subprocess
rtmpdump='/usr/local/bin/rtmpdump';
# use the quiet switch we are writing the video to stdout.
quiet='-q';
# swf verification
swfUrlswitch='-s';
swfUrl='http://www.nbc.com/assets/video/3-0/swf/NBCVideoApp.swf';
rtmpUrlswitch='-r';
rtmpbase= 'rtmp://cp81777.edgefcs.net/ondemand/';
# grab the argument
a=cgi.FieldStorage()
rtmpUrl=rtmpbase+a.getvalue('nbcv');
pargs=[rtmpdump,quiet,swfUrlswitch,swfUrl,rtmpUrlswitch,rtmpUrl]
# http headers
if rtmpUrl[-3:]=='mp4':
print 'Content-Type: video/x-mp4'
if rtmpUrl[-3:]=='flv':
print 'Content-Type: video/x-flv'
# make sure you print a blank line after the header.
print ''
# call rtmpdump
subprocess.Popen(pargs)

Related

What is the role of Streaming server like Wowza?

I have been exploring on how to live stream from iPhone. I will have to publish a stream at URL to Wowza server that I came to know. Other thing is that I will require a library for iOS to encode and compress the camera output and will have to send that stream over RTMP protocol to the Wowza server. At the receiving and, there should be a player which can decode, decompress that stream comes from the Wowza to the device like iPhone (a user who wants to see live stream).
My question is, if encoding is done through particular iOS SDK, RTMP has a role as a Protocol, a player at receiving end has a role of decoding, then what is the role of Wowza ? What is its function that makes it very important in the live streaming process ?
I have been searching on the function of a Media Streaming server since 3 days, but I could not understand the exact function of Media Streaming server like a Wowza.
I am desperate to the answer..
Any explanation will be appriciated, thanks in Advance !!!
I actually did a year-long project involving media streaming on iOS and I used Wowza. The role of Wowza is to function as a media server that can receive the video that is broadcast from an iOS device over the RTMP protocol. With Wowza, you have options to send http parameters that instruct the server to begin or stop recording the live video that is being streamed. You also have the option of embedding video players in websites for live view.

Webcam streaming to red5 and embed to website

I'm trying to build an application which allows users to livestream stream from theirs webcam.
My main problem is I don't know how connect this webcam script to the red5 streaming server and how to embed it to the website.
I will be thankful for any guidance.
You must send stream to some RED5 RTMP chanel and connect the flash script to the chanel via RTMP to get stream. Next, you must have application in red5 side to use rtmp protocol for streaming try use oflaDemo application which is in default build and look how it works in it.
But streaming is not so hard here is some guides how to do it:
Simple guide with OlfaDemo
Guide 2
I hope this helps.

How to play a non-rtmp stream

I have an issue to stream a video conference for many mobile device(Andriod, iPhone etc) and I have troubles with streaming.
RTMP stream uses a flash and didn't work with this devices.
What stream can I use? and how can I convert rtmp to this supported stream?
For mobile devices you would need to convert your video to HTTP Live Streaming (HLS). If it's truly a live stream, you could use something Zencoder live streaming to convert it. If the RTMP stream is just reading from an MP4, you could use Handbrake or Zencoder to transmux it to HLS.

How to play a RTMP stream on IPhone at websites

I'm developing a website who needs an external RTMP stream.
I'm using jwplayer to run the stream using Flash (examples and information about here).
My problem is the stream do not works at iOS.
Somebody suggests a solution?
IOS does not support rtmp protocol for that you has to use http protocols, i.e. ,http live streaming

RTSP to HTTP Live Streaming (iOS)

I have RTSP feed coming from my IP Camera as my source input and need to publish it to HTTP Live Streaming (HLS) for playback on iOS devices. I have already tried RTSP-to-RTSP on iOS and it worked; this time I want to try RTSP-to-HLS. I already have Wowza and ffmpeg installed but I just don't know what commands I should run to produce HLS. I've googled for the right commands but I just couldn't find them. What should I run?
Safari supports HLS. Does it also mean that UIWebView supports HLS as well?

Resources