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

Paul B Mahol onemda at gmail.com
Tue Mar 26 12:04:13 EET 2024


On Tue, Mar 26, 2024 at 10:07 AM Bouke / edit 'B <bouke at editb.nl> wrote:

>
> > 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.
>

Yes, because ffplay resets audio output/filters state, and does not support
gapless playback.


>
> Bouke
>
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://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