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

Zoltan Kerenyi Nagy kerenyi.nagy.zoltan at gmail.com
Tue Feb 5 19:15:50 EET 2019


Hi,

The CPU usage is still abobe 90% with libshine. Do you think that something
is buggy with my script?
https://pastebin.com/dyHK6ATh

Zoli

On Tue, 5 Feb 2019 at 01:19, Lou Logan <lou at lrcd.com> wrote:

> 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
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list