[FFmpeg-user] ffserver dies on stream request
Naz
lists at mrnaz.com
Mon Mar 2 05:03:17 CET 2009
Hi all,
I am pushing video from ffmpeg here at home to a ffserver instance
running on a remote machine. I have been able to do it in the past,
however, when I upgraded to the current git (as of about 48 hours ago)
it stopped working. What now happens is that the server starts but
consumes 100% of CPU. I read in issue 855 that deleting /tmp/feed1.ffm
solves this, so I tried that, and it does.
After deleting the feed file, ffserver starts, and accepts a connection
from ffmpeg and ffmpeg seems to report that it is streaming as normal,
outputting bitrate and timestamp progress to stdout.
However, soon after a client attempts to connect via HTTP, ffserver's
CPU shoots back up to 100%. If I kill ffserver before this, I don't have
to delete the feed file. I've let ffserver run for some minutes without
attempting a client connection, and it has not occurred before I made
the attempt. This leads me to believe that the corruption in the feed
file occurs when a connection is attempted from a client.
My ffserver.conf is below. I've attempted this with only one of the
streams enabled at a time, commenting out all the others as you can see.
Any help on this would be appreciated.
=== ffserver.conf ===
Port 8090
BindAddress 0.0.0.0
MaxClients 100
MaxBandwidth 1000
CustomLog -
NoDaemon
<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 50K
#ACL allow 127.0.0.1
</Feed>
#<Stream hi.swf>
#Feed feed1.ffm
#Format swf
#AudioCodec libmp3lame
#AudioBitRate 32
#AudioChannels 1
#AudioSampleRate 11025
#VideoCodec flv
#VideoBitRate 150
#VideoBufferSize 40
#VideoFrameRate 3
#VideoSize 160x96
##VideoIntraOnly
#</Stream>
#<Stream lo.swf>
#Feed feed1.ffm
#Format swf
#AudioBitRate 16K
#AudioChannels 1
#AudioSampleRate 11025
#AudioCodec libmp3lame
#VideoBitRate 25K
#VideoFrameRate 8
##VideoSize 176x144
#VideoSize 256x192
##VideoGopSize 20
#VideoCodec flv
#VideoQMin 2
#VideoQMax 7
##NoAudio
#</Stream>
<Stream test.asf>
Feed feed1.ffm
Format asf
VideoFrameRate 15
VideoSize 352x240
VideoBitRate 256
VideoBufferSize 40
VideoGopSize 30
AudioBitRate 64
</Stream>
#<Stream audio.swf>
#Feed feed1.ffm
#Format swf
#AudioBitRate 16K
#AudioChannels 1
#AudioSampleRate 11025
#AudioCodec libmp3lame
#NoVideo
#</Stream>
<Stream stat.html>
Format status
# Only allow local people to get the status
#ACL allow localhost
#ACL allow 192.168.0.0 192.168.255.255
#FaviconURL http://pond1.gladstonefamily.net:8080/favicon.ico
</Stream>
<Redirect index.html>
URL http://www.ffmpeg.org/
</Redirect>
--
السلام عليكم
Web: www.mrnaz.com
Ph: +61 400 460 662
More information about the ffmpeg-user
mailing list