[FFmpeg-user] xfade and acrossfade

Michael Koch astroelectronic at t-online.de
Fri Jan 31 22:05:33 EET 2020


Am 31.01.2020 um 19:09 schrieb Paul B Mahol:
> On 1/31/20, Michael Koch <astroelectronic at t-online.de> wrote:
>> Paul,
>>
>> is there any chance that the new xfade filter and the acrossfade filter
>> could be harmonized, so that they accept the same parameters?
>> The acrossfade filter does always fade near the end of the first input
>> stream. Only the duration must be specified.
>> The xfade filter expects a duration and an offset. If you want to fade
>> near the end of the first stream, you have to know its length.
>> I prefer the behaviour of acrossfilter because it's unnecessary to know
>> the length.
>> If you want the video fade earlier in the stream, the trim filter could
>> be used before xfade.
> Nope, because storing 1000 frames (duration of transition) in RAM is not free.

A maximum of 100 frames (4s at 25fps) would be sufficient for 99% of all 
cases.

Michael



More information about the ffmpeg-user mailing list