Tuesday, 6 September 2011

FFserver configuration for MJPEG streaming


This is the configuration for MJPEG streaming. My test case is getting MJPEG streaming from IP Camera and transcode to another MJPEG video stream. This was needed as my IP cam limits the available connection to 10. It works well but sometimes it reports error like "invalid stream index xxx", which needs to be investigated.

The configuration is like this.

Port            8090
BindAddress     0.0.0.0
MaxClients      1000
MaxBandWidth    50000
CustomLog       -
NoDaemon


<Feed office.ffm>
File            /tmp/office.ffm
FileMaxSize     20M
</Feed>


<Stream office.mjpeg>
Feed office.ffm
Format mpjpeg
VideoFrameRate 10
#VideoBitRate 2048
#VideoBufferSize 4096
VideoSize 640x480
VideoQMin 3
VideoQMax 31
NoAudio
Strict -1
</Stream>

No comments:

Post a Comment