See it like a crop tool where you first set the dimensions of the cropping rectangle and then place the rectangle somewhere in the original picture where the coordinates x and y is where to place the cropping rectangle based on upper left corner of the rectangle. Since the new height is 20 pixels less than the original it will crop 10 pixels at top and bottom. Here the new height after cropping is 700 pixels and the upper left corner of the cropped image is placed at x=0 and y=10 on the original frame. You want to crop 10 pixels from top and bottom but leave the width uncropped: X and y is the coordinate of the upper left corner of the cropping rectangle where x=0 corresponds to left edge of original frame and y=0 the top edge of the original frame. Width and height is the dimesions of the cropped image after cropping. Is the post from the ffmpeg thread I used. (Hopefully, the OP in that thread is better at grasping the manual than i am) At any rate, the example I used looks as if it's just taking 10 pixels, and the person who answered the person asking the question just told them to look at the manual for more details. I'm not sure what I'm missing here, but I suspect it's pretty obvious. (If anyone is kind enough to look at the man page for me, just search for in_w on the page and the crop section begins above it.) I understand that by using in_w and/or in_h with no arguments, one just uses the original width or eight, but I'm not sure how the h-10 takes 20 pixels off the bottom. The man page refers to taking equal amounts off top and bottom. I'm not sure how one designates top and bottom with the new syntax. However, I'm confused as to why it works. Now, one uses -vf crop= and some syntax that I am not getting. Say I wanted to take 20 pixels off the bottom, it used to be -cropbottom 20. I'm having trouble understanding the new version of ffmpeg cropping syntax.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |