How do I fade out at the end of a video?
Give fade=t=out a start time. st defaults to 0, so without it the fade out runs over the first second and the rest of the video stays black:
ffmpeg -i in.mp4 -vf fade=t=out:d=1 -c:a copy out.mp4Brightness 69.5 on frame 0, 41.1 at 0.5 s, then 16 (black) from 1 s to the end of the 10 s file.
fade cannot count back from the end, so read the length first and set st to the length minus the fade:
ffprobe -v error -show_entries format=duration -of csv=p=0 in.mp410.000000, so a 1 s fade out takes st=9.






