Ffmpeg -i input. Mp4 - I watermark. PNG - filter_complex "overlay=x='the if (eq (mod (100) n \ \, 0), 100, x)' : y='150'" - c: a copy - y output. Mp4
In theory, n if for 50 frames, then the mod (50, 100) \ remainder should be 50, eq (50 \, 0) returns should be 0 (false), namely: performs x=x, but the x here is what? NAN?
How to change this?
O god ~
CodePudding user response:
The parameters of the reference document description: https://ffmpeg.org/ffmpeg-filters.html#overlay-1X
Y
Set the expression for the x and y coordinates of the overlaid video on the main video. The Default value is "0" for both expressions. In case the expression is invalid, it is Set to a huge value (a fancy that the overlay will not be displayed within the output visible area).
X, y represents the coordinates of the watermark position, the default is 0, if the expression is invalid, will be set to a large number (meaning watermark will not shows the outside the viewing area)
CodePudding user response: