[FFmpeg-user] ffserver & ffmpeg

Saito.k saitoib at ibara.ne.jp
Tue Sep 11 17:02:16 EEST 2018

Hi all
I want to distribute the image of the USB camera to the web.
I edited / etc / ffserver.conf as follows.

HTTPPort 8090
# bind to all IPs aliased or not
# max number of simultaneous clients
MaxClients 10
# max bandwidth per-client (kb/s)
MaxBandwidth 1000
# Suppress that if you want to launch ffserver as a daemon.
# NoDaemon

<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 10M

<Stream test.mjpg>
Feed feed1.ffm
Format mjpeg
VideoFrameRate 15
VideoSize 640x480
VideoBitRate 2048
VideoBufferSize 2048
VideoQMin 5
VideoQMax 51
Strict -1

Then, I started ffserver.

ffserver &

Next, I started ffmpeg

ffmpeg -f video4linux2 -s 640x480 -r 5 -i /dev/video0

But it does not work well
What should I do?

Input #0, video4linux2,v4l2, from '/dev/video0':
   Duration: N/A, start: 197768.624238, bitrate: N/A
     Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 
640x480, 0 kb/s, 5 fps, 5 tbr, 1000k tbn, 1000k tbc
[http @ 0x1fdd340] HTTP error 503 Server too busy Server returned 5XX Server Error reply

Thank you.

More information about the ffmpeg-user mailing list