[FFmpeg-user] HLS-webm and unicast

Reaz Baksh reaz.baksh at bellmedia.ca
Thu Aug 27 17:58:51 CEST 2015


Hello
I managed to get two streams outputted with the following command but this is causing the cpu to go to almost 200%.  Is there something that I'm missing that I could add to reduce the high cpu usage:

ffserver -d -f /etc/ffserver.conf & ffmpeg -I rtp://192.168.1.101@239.5.1.1:5004 http://localhost :8090/feed1.ffm

The ffserver.conf is:

HTTPPort 8090
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 100000
CustomLog /home/eng/ffmpeg_sources/ffmpeg/log/ffserver.log
#NoDefaults
<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 1G
#Launch ffmpeg
</Feed>

<Stream 1.webm>
Feed feed1.ffm
Format webm
VideoCodec libvpx
VideoBitRate 400
VideoSize 320x240
VideoFrameRate 30
VideoBitRateTolerance 100
VideoBitRateRange 350-450
VideoBufferSize 200
AVOptionVideo flags +global_header
AVOptionVideo cpu-used 0
AVOptionVideo qmin 10
#AVOptionVideo qmax 42
AVOptionVideo quality good
PreRoll 10
StartSendOnKey
AudioCodec vorbis
AudioBitRate 64
AudioSampleRate 44100
AudioChannels 2
</Stream>

<Stream 1.flv>
Feed feed1.ffm
Format flv
VideoCodec libx264
VideoBitRate 900
VideoSize 720x576
VideoFrameRate 30
VideoBitRateTolerance 100
VideoBitRateRange 850-950
VideoBufferSize 400
#AVOptionVideo flags +global_header
#AVOptionVideo cpu-used 0
AVOptionVideo qmin 10
#AVOptionVideo qmax 42
#AVOptionVideo quality good
PreRoll 10
StartSendOnKey
AudioSampleRate 44100
AudioChannels 2
AudioCodec pcm_u8
AudioBitRate 192
</Stream>

# Only allow local people to get the status
<Stream stat.html>
Format status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</Stream>

Thanks

Reaz


More information about the ffmpeg-user mailing list