Home > other >  Ffmpeg before 100 frames does not display the image watermark, can you tell me what is the situation
Ffmpeg before 100 frames does not display the image watermark, can you tell me what is the situation

Time:09-20

 
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-1
X
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:

reference 1st floor ArcRain response:
the parameters of the reference document description: https://ffmpeg.org/ffmpeg-filters.html#overlay-1
X
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 (means that the watermark will be in the viewing area without shows)

So how does this change? Have a problem! ~ I look good
  • Related