From Dev.to
How to Fade In and Out a Video With FFmpeg (Anchor the Fade to the Last Frame, Fade the Audio Too, and Test It With pytest)
To fade a video in and out with FFmpeg, re-encode it with two fade filters and two afade filters, and set the fade-out start from the timestamp of the last frame, not from the file's duration: ffmpeg...
