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

Lou Logan lou at lrcd.com
Tue Feb 5 02:18:46 EET 2019


On Mon, Feb 4, 2019, at 11:31 AM, Zoltan Kerenyi Nagy wrote:
> 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

You can see if libshine gives you better performance likely at the cost of quality per bit but it may not matter. You'll need to compile with "--enable-libshine" and encode with "-c:a libshine" unless it is the only MP3 encoder.

> ffmpeg -f alsa -i hw:0,0-ar 8000 http://localhost:4444/audio.ffm

Use the "-sample_rate" ALSA private option (before the input) if you want to change the sample rate, otherwise ffmpeg will use the default ALSA value of 48000 and resample to 8000.

https://ffmpeg.org/ffmpeg-devices.html#alsa


More information about the ffmpeg-user mailing list