If I save a frame as a JPG using something like:
I can get the coordinates to create an image with the perspective corrected using:Code:ffmpeg -i /dev/video0 -frames:0 1 check.jpg
It looks great. However, if I try this:Code:ffmpeg -i check.jpg -vf "perspective=51:31:230:30:263:159:23:161" corrected.jpg
Then I get a video where the image appears to implode on itself. I've noticed that the jpg images I get are 320x240 and the video frames are 640x480, but scaling the coordinates doesn't have any effect. So, I assume the geometry of the frame is different in some way; maybe the origin isn't top left, but I can't find any information.Code:ffmpeg -i /dev/video -vf "perspective=51:31:230:30:263:159:23:161" test.avi
Thanks for any help you can give me.
+ Reply to Thread
Results 1 to 1 of 1