[FFmpeg-user] fixed size cropping rectangle, moving in time
Moritz Barsnick
barsnick at gmx.net
Tue Dec 16 23:18:11 CET 2014
Hi Sub,
On Tue, Dec 16, 2014 at 22:22:48 +0100, Sub Phil wrote:
> I wish to have a fixed size cropping rectangle, that changes its x-position
> after say 15 sec for an initial x position of say 200 to 100.
>
> Do I miss some quotes??
>
> F:\>ffmpeg -i timeC.mp4 -vf "crop=in_w-700:in_h-100:if(lte(t,15),200,100):80" -an -c:v libx264 -preset:v ultrafast "test.mp4"
You should escape each comma using a backslash. Under Windows and under
Unix, as it's for the sake of ffmpeg, not for the shell/cmd.exe. :-)
-vf "crop=in_w-700:in_h-100:if(lte(t\,15)\,200\,100):80"
(Untested by myself under Windows, but I think it should work.)
Moritz
More information about the ffmpeg-user
mailing list