[FFmpeg-user] 'ALSA buffer xrun' errors only when running as systemd

Nicolas George george at nsup.org
Thu Jul 2 14:54:14 EEST 2020


Ram Shaffir (12020-07-02):
> In the last few weeks, I’m struggling to figure out the reason for why
> my ffmpeg command that works well when running in the console but has
> ALSA buffer xrun errors when it runs as a systemd service in RPI,
> until now I don’t know for sure where the problem is, is it in the
> alsa settings or in my ffmpeg command; I truly hope you’ll help me
> point me to the right solution!

ALSA xruns happen when ffmpeg does not read/write the audio device
frequently enough and the hardware buffer fills/dries up.

I suspect the difference lies in Linux giving different priorities to
processes detected as interactive and processes detected as background.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20200702/8cf00eed/attachment.sig>


More information about the ffmpeg-user mailing list