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.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 1 of 1
Thread
Similar Threads
-
Question about TBC in correcting issues with captured SECAM video
By autephex in forum CapturingReplies: 43Last Post: 13th Dec 2018, 18:08 -
Detect the perspective of scenes
By barabba2005 in forum ffmpegX general discussionReplies: 7Last Post: 9th Nov 2017, 22:25 -
How to change audio perspective
By Round_Brix in forum AudioReplies: 19Last Post: 20th May 2017, 15:31 -
Correcting colour cast on video.
By efiste2 in forum Video ConversionReplies: 3Last Post: 11th Mar 2016, 05:23 -
Correcting a video taken from bad TV retransmission
By XenonS in forum RestorationReplies: 8Last Post: 25th Oct 2015, 16:11