You can use FFserver to stream video using RTSP.
Just change the console syntax to something like this:
ffmpeg -i space.mp4 -vcodec libx264 -tune zerolatency -crf 18 http:
Create a file ffserver.config
( sample ) where you declare HTTPPort
, RTSPPort
and the SDP stream. Your configuration file might look like this (some important things might be missing):
HTTPPort 1234 RTSPPort 1235 <Feed feed1.ffm> File /tmp/feed1.ffm FileMaxSize 2M ACL allow 127.0.0.1 </Feed> <Stream test1.sdp> Feed feed1.ffm Format rtp Noaudio VideoCodec libx264 AVOptionVideo flags +global_header AVOptionVideo me_range 16 AVOptionVideo qdiff 4 AVOptionVideo qmin 10 AVOptionVideo qmax 51 ACL allow 192.168.0.0 192.168.255.255 </Stream>
With this setting, you can watch the stream using VLC by typing:
rtsp:
Here is the FFserver documentation.
source share