[FFmpeg-user] Rebroadcasting a stream without using ffserver

paulj at fastmail.es paulj at fastmail.es
Mon Aug 27 18:11:34 CEST 2012


	I originally sent this out this morning, but it didn't seem to go through, so I'm 
resending. Sorry if you guys get it twice.

           I am working on a project where we'll have a camera and a computer in a 
geographically isolated location (nothing too exciting; it just means we can't lay Ethernet 
cable to it), and the video stream needs to be rebroadcast using Wifi to another computer in 
a "base station", where it will be stored, viewed, etc.. I was thinking of doing it using just 
ffmpeg; in computer A (the one connected to the camera), I'll have:

           ffmpeg -rtsp_transport tcp -i rtsp://(Camera URL) -vcodec copy -acodec copy -f rtsp 
rtsp://(IP address of computer B):5050


           While in computer B, the one in the "base station", I'll have ffmpeg listening in that port 
and dumping the incoming stream into a file:

           ffmpeg -rtsp_flags listen -f rtsp -i rtsp://localhost:5050/ -vcodec copy -acodec copy 
video.mp4


           From the tests I've done, the above setup does work. So, would I have anything to 
gain if I added ffserver, or some other kind of streaming server software? Would that be 
more stable? (There will be only 1 computer streaming video to another computer, not 
dozens of clients... but the stability of the link is very important).


  
                                  Paulo.

-------------------------------------------
"Oh, don't worry kids. Most of you will
never fall in love. You'll just marry
for fear of dying alone."

                             The Simpsons.
-------------------------------------------



More information about the ffmpeg-user mailing list