'Start number of frame number of ffmpeg overlay filter

When using n to mean filter number in ffmpeg's overlay filter, it says on https://ffmpeg.org/ffmpeg-filters.html#overlay-1 that it starts from 0, but it actually appears to start from 1. Why is this?

ffmpeg -r 1 -loop 1 -t 4 -i back.png -i over1.png -i over2.png -filter_complex_script script.txt out.mp4
[0]drawtext=fontfile=Arial.ttf:text='%{frame_num}':x=(w-tw)/2:y=h-(2*lh):fontsize=50[s1];
[s1][1]overlay[s2];
[s2][2]overlay=x=100*n:y=100

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source