[FFmpeg-user] ffmpeg high CPU usage

Moritz Barsnick barsnick at gmx.net
Wed Feb 21 17:33:39 EET 2018

On Tue, Feb 20, 2018 at 15:15:42 +0100, Glenn Cooper wrote:
> I am trying to stream to YT by using a live Icecast radio stream and converting it on the fly. Whilst I have this working, the CPU overhead is simply ridiculous and I suspect there's an error with my usage. I would hope that someone could advise further. This is my config:
> ffmpeg -loop 1 -r 1  -s 624x352 -i image1.png -i http://radio.strictly.house:9500/stream -c:v libx264 -x264opts keyint=5:min-keyint=5:scenecut=-1 -preset ultrafast -crf 1 -c:a copy -shortest -pix_fmt yuv420p -f flv rtmp://a.rtmp.youtube.com/live2/ge7a-2059-1v3e-bv2t #</dev/null >/dev/null 2>/var/log/ffmpeg.log &

You should kindly also show us the complete, uncut console output of
your command.

You also didn't point out how much CPU usage you were encountering, and
what kind of CPU. On my age old, crappy Intel CPU, encoding a still
image of that size takes about 10% CPU (even if I drop your quite
extreme "-crf 1" - why are you using that?).


More information about the ffmpeg-user mailing list