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

2024-03-26 Thread Paul B Mahol
On Tue, Mar 26, 2024 at 10:07 AM Bouke / edit 'B  wrote:

>
> > On 26 Mar 2024, at 09:57, computermaster360 
> 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@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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

2024-03-26 Thread Bouke / edit 'B
 
> On 26 Mar 2024, at 09:57, computermaster360  
> 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.

Bouke


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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

2024-03-26 Thread computermaster360
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?
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".