Rtsp To Rtmp

ballz

n3wb
Nov 17, 2014
11
0
So im using an Ip-camera witch streams with rtsp, but i want to be able to take it to a site and have it stream in Rtmp or Hls, i tried red5 but its to complicated anny help on red5 or anny other programs i can use would be nice and it cant cost money since im short on that, also i got red5 to "start" i can connect to it from other computers but i dont know how to get my ip camera feed to the live media server and forward the stream
 
VLC Might do it
ffmpeg can feed red5, you probably want to use flowplayer to embed it into your website.
Code:
ffmpeg [COLOR=#666600]-[/COLOR]i [COLOR=#008800]"link from source"[/COLOR] [COLOR=#666600]-[/COLOR]vcodec copy [COLOR=#666600]-[/COLOR]acodec libfaac [COLOR=#666600]-[/COLOR]ar [COLOR=#006666]44100[/COLOR] [COLOR=#666600]-[/COLOR]f flv  rtmp[COLOR=#666600]:[/COLOR][COLOR=#880000]//destination.server/path/to/app[/COLOR]
if you got a linux box there is crmtpserver, instead of red5 http://www.computerglitch.net/blog/blog/2014/02/18/converting-axis-rtsp-to-rtmp-streams/
 
Last edited by a moderator:
is there annyway i could get ur skype or something? im so lost atm will try to use ffmpeg aswell. if anny1 feel like helping me please pm details for something that goes abit faster to write into than a forum :)
 
sorry, i doubt you could afford a one on one session with me ;)

im sure there will be someone else in the future trying to accomplish the same thing; lets try to keep the conversation public record as to help future visitors to our community.

lets start over at the basics,
You want to stream your webcam to your website and embed it without any extra browser plugins required? Do you need to do this for a wide audience? You hosting it your self?

someone just posted up here a few weeks ago about how to use VLC to re-encode a RSTP stream into an html5 compatible video output; that would be much simpler.. but if you need a remotely hosted video broadcaster that can handle tons of concurrent users then we should figure out how to set you up best.
 
its not just for personal use its gonna be a public cam on some animals, atm i can open the "stream" with vlc or http login but i dont want every1 to go to my ip cams ip, and have to logg in i want them to be able to go to my homepage and eaither click a link or have it embedded in the site, and from there it should stream rtmp or hls so i read alot about this tested alot of diffrent live-media servers and stuff but problem is i have 0$ so i thought my best choice would be ffmpeg and red5 but i have no clue at all how to set it up
 
ok so whats your internet upload speeds? most people's home internet is barely capable of driving 1 HD stream at a time, so two viewers could choke you out.. Red5 and RSTP is ment to be hosted in the cloud or on your webserver so you can relay the stream to multiple viewers from a single source.

the thread I mentioned earlier: http://www.ipcamtalk.com/showthread...to-an-HTML5-compatible-format&highlight=html5

the easiest way to get what you want without killing your internet is uploading still images at 1-2fps to your webserver.
 
Last edited by a moderator:
Thank you both for your help and time trying to read as much as possible before trying to set it up
 
allright thats a great start, you can surely drive quite a few streams with that kind of bandwidth available.. now what operating system are we working with here?
 
Ok heres the thing atm im on an laptop "bad" with windows 7 also have 1 more besides me with ubuntu linux but these are just "test subjects" to se if i can get it to work then i will set it up on eaither a server or a more powerful computer i have most experiance in windows based programs but if there is 1 much easier solution with linux im fine to try it out
 
In Ubuntu you can easially get all the stuff required from the repositories, ffmpeg, red5, and all the supporting files with a few simple clicks.. it can be done on windows but I have no idea the complexity... if it requires setting up cygwin or some unix like environment in windows Id just go with Ubuntu as your already 90% there.

I set it up a while back for a chat server that had Web Camera support, didnt find it very difficult following a guide online step by step.

Red5 is like the webserver that hosts the streams, ffmpeg is used to convert the IPCamera's RSTP output into an input to feed into Red5's source..

Then on your website you use a flash video player like flowplayer (free) and configure it to use the Red5's Output URL. Quality will be controlled in ffmpeg's settings when it transcodes the IPCam video into flash video.

http://burnsforce.com/index.php/diy-home-security-part-1-setup-red5-rtmp-live-stream/
 
Since i have no experiance in ubuntu before on the 1) install java and its dependencies: then there is like a code line i would assume i have no idea what to do with that do i just google it or?
 
Found out that i have to use the terminal but all the versions of that guide should be out of date
 
ok so now my boss told me i could use some monney for adobe media live encoder and server but now im having another problem the encoder wont find my ip cam anny1 know how to fix this?
 
It's really not that hard to do, don't know why nobody else has helped you much. There's several software packages that convert RTSP to RTMP. VLC is open source, but is lousy. I've us Unreal Media Server with good success, wrote an article here - http://www.networkcameracritic.com/?p=1290

Also, from a commercial point of view, many use Wowsa, not cheap, not easy to use, but does the job well. Also, you can use a streaming service like ustream and pay a monthly fee. They take your RTSP stream and convert it for you.