panaers.blogg.se

Ffmpeg scale subtract
Ffmpeg scale subtract





ffmpeg scale subtract

I'm not sure how to draw the box and scale it separately from the source video. Now, if I set the width to a fixed value, it runs, but then there's the problem that the overlay contains the whole video itself as it is the input of the drawbox filter. With this I get an error of: Error when evaluating the expression 'if(gte(t*20,600),600,t*20)'. This is where I got trying to use drawbox and scale: ffmpeg -y -i c81e728d9d4c2f636f067f89cc14862c.mp4\ĭrawbox=0:0:20:20,scale=eval=frame:w='if(gte(t*20,600),600,t*20)':h=20 Instead of manually entering the x value well use iw and subtract 100 pixels from it: ffmpeg -i input.mp4 -filter:v ' crop 100:100:iw-100:0' output.mp4. I've seen some solutions using overlay, but they are fixed width and are rather used to move the box around. Since drawbox does not support the 't' (as in time) variable, I'm at a loss here. His artwork featured an ffmpeg script that generates a continuous flow of glitch. I need to draw a box that grows in size horizontally over a video (scaling its width as time goes by)







Ffmpeg scale subtract