Searching the best solution for playing rtsp stream in flash

About encoding, codec settings, muxers and filter usage
kdojgd
New Cone
New Cone
Posts: 1
Joined: 01 Oct 2010 06:21

Searching the best solution for playing rtsp stream in flash

Postby kdojgd » 01 Oct 2010 07:39

Hello everybody,

after searching for weeks on a good solution to get flash playing my RTSP MP4 IP-camera stream, I'm getting nerved of finding "no solutions", "buggy solutions", "expensive solutions" and "unstable things"... currently I'm running out of time, so after trying ffmpeg / ffserver, RED5, and many others, I'm now giving VLC a chance ... please help me, I would be really thankful, if I just get it on, to work well...

Source information
I'am always using the Cisco wireless IP-cameras
both cameras offer simultaneous streams in MJEPG (no audio) format over HTTP and MP4 (with audio) over RTSP, for my needs I have to choose MP4 over RTSP, because I need audio and video output.

The livestream is reachable like this "rtsp://user:password@camera_ip/img/media.sav"


Target system
The livestreams target is every actual web-browser on any OS using a standard flashplayer plug-in. So Flash cannot directly stream RTSP, it's not supported (only in flash light for mobile devices), out of this fact, I need to transcode the stream from RTSP to any format supported in the actual flashplayer.


Solution wanted
Therefore I need a server like VLC, what requests the livestream from the camera (connected through the internet), does all the transcoding stuff, in a Flash supported streaming format, and publishes it for my websites! Currently I have seen, VideoLan offers different programs, like vlc player, vlc server, vlma and so on, I dont know, what would be the best solutions for my project.

I already tried some configurations with vlc, but most of them do not work or dont work stable. As I was searching for help on google and in some forums, I always just found people with similar problems and more bugs and information about things what are not working instead of things that are working ...

My question
Please, could somebody tell my, how I set up a server in the best way to meed my expectations, I'm running a ubuntu server (no GUI, terminal only) and I have complete root access. Most important is stability of the video-server, because I need to set it up for costumers running a website, they like to have this as live-stream, so it would be a really bad thing, if the stream is aborting every second day or the server keeps hanging up contentiously?

Well, I'm really thankful for each help you could offer me, some sample commands would be really nice also :) :?:

(Excuse my worse English, I'm no native speaker :P )
Thanxs

Mark

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Searching the best solution for playing rtsp stream in f

Postby Jean-Baptiste Kempf » 11 Oct 2010 11:08

If you can playback the stream with VLC, just restream in RTP to wowza.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

alrama
Blank Cone
Blank Cone
Posts: 21
Joined: 02 Nov 2006 12:11

Re: Searching the best solution for playing rtsp stream in f

Postby alrama » 24 Nov 2010 13:57

you could use a simple .BAT (or equivalent bash shell) like this:

:start
del /f /q "C:\Documents and Settings\Administrator\Application Data\vlc\crashdump*"
"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --quiet -I dummy --no-quiet-synchro --play-and-exit rtsp://user:password@camera_ip/img/media.sav :sout=#transcode{vcodec=h264,vb=768,ab=64,acodec=mp3,samplerate=44100,deinterlace,high-priority}:std{access=http,dst=0.0.0.0:8080/stream.flv}
goto start


You will have:
  • If input stream goes down, VLC exit and rerun (due to goto start, deleting chrash dump to avoid blocking popup message)
  • A high quality Flash supported format like H264
Flash Plugin have to addressing to : http://<you VLC host>:8080/stream.flv

Alberto


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 2 guests