[FFmpeg-user] 'ALSA buffer xrun' errors only when running as systemd
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: not available
More information about the ffmpeg-user