[FFmpeg-user] ffplay - no delay between playbacks when looping

Bouke / edit 'B bouke at editb.nl
Tue Mar 26 11:07:04 EET 2024

> On 26 Mar 2024, at 09:57, computermaster360 <computermaster360 at gmail.com> wrote:
> I want to loop a short wav sample, which is an 8-bar melody:
>    ffplay -loop 0 sample.wav
> There is a small, but perceptible delay between individual playbacks
> of the sample, which throws the melody off. Is there a way to make the
> playback completely continuous with no delay?

Not tested, but I would try to do the loop in FFmpeg and pipe to FFplay.
This way FFplay will get just samples, bypassing whatever happens on restart playback of the file.


More information about the ffmpeg-user mailing list