Simple video streaming with ffserver
ffserver is part of the ffmpeg package.
ffserver creates a network socket that is available from client machines to view the video. Once started, you attach an ffmpeg process to the server to do the encoding. Configuration of ffserver is done via the /etc/ffserver.conf file.
Typical ffserver.conf file
To get things going, start the server
Attach the ffmpeg process to do the encoding. This is done via a loopback socket.
- -r - rate in frames per second
- -s size in pixels width x height (width must be a multiple of 16) and should match the values in the above config file.
- -f gets input from the video4linux driver
- -i is the v4l device (if this is not present refer to Logitech QuickCam Express)
- Lastly the loopback socket
Now you should be able to browse to the server address (or localhost if it's the same machine) and see some live video.
The name of the file will be as defined in the <Stream> section above.
- P2P Video Streaming - A book by Eric Setton and Bernd Girod, free delivery