View Full Version : Straighten a screener shot at an angle
bruno321
23rd August 2020, 07:22
I've a file that comes from a recording where the camera was directed at a screen, but at an angle. How can I fix that?
Snippet: https://www.sendspace.com/file/df8sev
Additionally, it'd be great if I could get rid of those horizontal bands moving vertically, this typical artifact of shooting a screen. Is it possible to fix it?
Thanks!
wonkey_monkey
23rd August 2020, 11:01
I was going to suggest Warp/Quad (https://forum.doom9.org/showthread.php?p=1862853), probably Warp because of the curve to the screen. Then I checked and discovered it has some bugs. But at least this:
quad(31,58, 888,14, 1048, 676, -30,750, swap = true)
will give a rough correction. That missing corner's going to be problematic though.
bruno321
3rd September 2020, 07:24
Thanks for looking into it. I tried using quad, but the only working link I found was this one https://forum.doom9.org/showpost.php?p=1602709&postcount=22 which is a 32bit plugin. Is there a 64bit version?
wonkey_monkey
3rd September 2020, 10:09
Warp (https://forum.doom9.org/showthread.php?p=1862853) contains a newer version of Quad.
bruno321
3rd September 2020, 12:23
Thanks. But I just get a black screen all over the video, i.e. it "works" (no error) but I just get a pitch black image. I'm using LWLibavvideosource("source.mkv"), then your quad line. What am I doing wrong?
wonkey_monkey
3rd September 2020, 21:54
I probably need to recompile it because of all the bugs. Try this though:
quad(0,0, 31,58, width,0, 888,14, width,height, 1048, 676, 0,height, -30,750, interleaved = true, swap = true)
I can't download the clip at the moment. If it doesn't work properly, try changing swap to false.
bruno321
4th September 2020, 12:26
Works like a charm. Thanks again :)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.