[FFmpeg-user] ffmpeg HIGH CPU, http streaming with libmp3lame

Zoltan Kerenyi Nagy kerenyi.nagy.zoltan at gmail.com
Mon Feb 4 22:31:30 EET 2019

Hi All,

For some reason the CPU is insanely high, hitting almost all the time 100%,
I run ffmpeg on an ARM7 4 core embedded device.

This is the setup, how I do it:

ffserver -d -f /etc/ffserver.conf
ffmpeg -f alsa -i hw:0,0 http://localhost:4444/audio.ffm


/etc/ffserver.conf :

HTTPPort 4444
MaxHTTPConnections 10
MaxClients 10
MaxBandwidth 1024
CustomLog -

<Feed audio.ffm>
    File /tmp/audio.ffm
    FileMaxSize 128M
<Stream audio>
    Feed audio.ffm
    Format mp2
    Audiocodec libmp3lame
    AudioBitRate 128
    AudioChannels 2
    AudioSampleRate 8000

<Stream stat.html>
    Format status
    FaviconURL http://pond1.gladstonefamily.net:8080/favicon.ico

I was experimenting with these parameters, however the CPU usage never

ffmpeg -f alsa -i hw:0,0-ar 8000 http://localhost:4444/audio.ffm
ffmpeg -f alsa -i hw:0,0 -b:a 128k http://localhost:4444/audio.ffm

Do you have any idea, why this procedure  is so CPU intense? FFmpeg is
installed to my device via the Yocto Project, so the arm cpu was taken into
consideration, I checked the bblayer file.



More information about the ffmpeg-user mailing list