Undoing nonlinear horizontal stretching?

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

beforetheinternet

  • Posts: 36
  • Joined: Tue Oct 15, 2024 11:27 pm
  • Real Name: Brendan Jones

Undoing nonlinear horizontal stretching?

PostThu Jul 03, 2025 1:25 am

I have some legacy 4:3 material that has been vandalised by horizontal stretching to make it 16:9.

(Something that should be made a capital offence, requiring a custodial sentence, but I digress…)

The problem is the stretching is nonlinear and appears to increase the further from the vertical centreline. It might be x-squared, or parabolic, or hyperbolic, or who knows what, but I’d like to “un-vandalise” these clips and restore the source material to its original and undistorted correct aspect ratio.

Do anyone know of any tools in DVR that could assist in such a process? It might require a degree of trial and error, since I don’t know what the underlying stretching algorithm was, so cannot calculate the exact inverse to undo it.

Thanks.
Offline
User avatar

waltervolpatto

  • Posts: 11342
  • Joined: Thu Feb 07, 2013 5:07 pm
  • Location: Pictureshop 6040 Sunset Blvd, Hollywood, CA 90028

Re: Undoing nonlinear horizontal stretching?

PostThu Jul 03, 2025 1:31 am

mmm...

you can try in fusion with the warp tool, make a grid with about 5 vertical zones and carefully by trial and error see if you can make the circle square, once you find one, you find all of them.
W10-19043.1645- Supermicro MB C9X299-PGF - RAM 128GB CPU i9-10980XE 16c 4.3GHz (Oc) Water cooled - 12x8TB SSD RAID5 internal (80TB)
PSU RM1200x SHIFT 80 PLUS - Decklink Studio 4K (12.4.1)
Resolve 20.0.0 / fusion studio 19
GPU 3090ti drivers 576.80
Offline

beforetheinternet

  • Posts: 36
  • Joined: Tue Oct 15, 2024 11:27 pm
  • Real Name: Brendan Jones

Re: Undoing nonlinear horizontal stretching?

PostThu Jul 03, 2025 5:26 am

waltervolpatto wrote:mmm...

you can try in fusion with the warp tool, make a grid with about 5 vertical zones and carefully by trial and error see if you can make the circle square, once you find one, you find all of them.


OK, that’s an idea.

I do have low-res non-distorted samples of some the original video, so I can use that to calibrate. I’m hoping that whatever nonlinear warp they did apply was consistent to all clips.
Offline

Thijs van Daalen

  • Posts: 99
  • Joined: Wed Aug 30, 2023 4:23 pm
  • Real Name: Thijs van Daalen

Re: Undoing nonlinear horizontal stretching?

PostThu Jul 03, 2025 9:33 am

I'd make a 4:3 timeline and put all the vandalized 16:9 clips in there.
Go to timeline settings -> mismatched resolution -> stretch frame to all corners.
Like Walter said, you might need to use the warp effect afterwards.
I'd put the low-res non-distorted samples above the vandalized clips, put like 20 opacity, and try to match the clips. I do hope that the warp is indeed consistent to all clips..
Dell Precision 3660
12th Gen Intel(R) Core(TM) i9-12900K | 3.20 GHz | 32,0 GB
NVIDIA GeForce RTX 3070
Windows 11 Pro
Resolve Studio 19
Offline
User avatar

waltervolpatto

  • Posts: 11342
  • Joined: Thu Feb 07, 2013 5:07 pm
  • Location: Pictureshop 6040 Sunset Blvd, Hollywood, CA 90028

Re: Undoing nonlinear horizontal stretching?

PostThu Jul 03, 2025 1:38 pm

Don't use opacity, use difference. It's easier
W10-19043.1645- Supermicro MB C9X299-PGF - RAM 128GB CPU i9-10980XE 16c 4.3GHz (Oc) Water cooled - 12x8TB SSD RAID5 internal (80TB)
PSU RM1200x SHIFT 80 PLUS - Decklink Studio 4K (12.4.1)
Resolve 20.0.0 / fusion studio 19
GPU 3090ti drivers 576.80
Offline

Jim Simon

  • Posts: 36259
  • Joined: Fri Dec 23, 2016 1:47 am

Re: Undoing nonlinear horizontal stretching?

PostThu Jul 03, 2025 2:22 pm

beforetheinternet wrote:(Something that should be made a capital offence, requiring a custodial sentence)
Agreed. Along with jump cuts, blanking fill, and animated captions. All things that ruin a good video and make it unwatchable. :(
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline

beforetheinternet

  • Posts: 36
  • Joined: Tue Oct 15, 2024 11:27 pm
  • Real Name: Brendan Jones

Re: Undoing nonlinear horizontal stretching?

PostFri Jul 04, 2025 11:32 pm

Thanks all for your suggestions. I’ll have a crack at restoring this video and report back!
Offline

beforetheinternet

  • Posts: 36
  • Joined: Tue Oct 15, 2024 11:27 pm
  • Real Name: Brendan Jones

Re: Undoing nonlinear horizontal stretching?

PostSat Jul 05, 2025 4:41 am

waltervolpatto wrote:you can try in fusion with the warp tool, make a grid with about 5 vertical zones and carefully by trial and error see if you can make the circle square, once you find one, you find all of them.

OK I can report back this can do exactly what I want!! So thank you very much for this pointer.

For others who ever need to do something like this:
  1. Reduce the Y grid size to 1 so that there are only vertical grid lines in the Warp tool (in this case, I do not want to distort anything vertically)
  2. Change the X grid size to whatever you want (I needed 12 to 16 vertical lines to do an accurate reverse distortion)
  3. Ensure that "Show Key Points" in the toolbar is active, that the viewer is showing "Destination" not "Source", and the Magnet Type is "selected" so that only the selected Key Points in the grid are moved,
  4. To move an entire vertical line in the grid left or right, and not just one end of it, select the Key Point at the top of the line, and shift-select the Key Point at the bottom of the line, so that both will move together.
  5. Before moving either selected Key Point, hover your mouse over one of the selected Key Points so that it turns white, then hold down the Shift key to constrain the movement of the Key Points. Click and hold the mouse button down while dragging the Key Point (which should move the entire vertical line) to where you want. You need to be a little careful that the first mouse movement is horizontal not vertical, otherwise the constraint won't be horizontal.
  6. Once done, click any other Key Point to deselect the two selected Key Points and repeat.

It doesn't seem possible to numerically control the position of the Key Points. Only visual, on-screen dragging.

Or maybe a macro could do it... a job for another day.
Offline
User avatar

Sean Nelson

  • Posts: 900
  • Joined: Sun Feb 07, 2021 9:48 pm
  • Location: Vancouver, Canada
  • Real Name: Sean Nelson

Re: Undoing nonlinear horizontal stretching?

PostSat Jul 05, 2025 7:34 am

beforetheinternet wrote:To move an entire vertical line in the grid left or right, and not just one end of it, select the Key Point at the top of the line, and shift-select the Key Point at the bottom of the line, so that both will move together.
You can also draw a bounding box by click-dragging the mouse - all of the points within the box will be selected.

beforetheinternet wrote:It doesn't seem possible to numerically control the position of the Key Points. Only visual, on-screen dragging.
You can move selected points using the keyboard arrow keys. Using Shift+Arrow moves them by 10X as much as the arrow keys alone. So if you're looking to reproduce a particular offset you can count how many arrow key pushes it takes and then repeat that with whatever other points you need to match with. A little kludgy perhaps, but more accurate than using the mouse.
DR Studio 19.1.4 Build 11, Win10Pro x64 22H2/19045.5608
Asus C246 Pro Motherboard, Xeon E-2278G@3.4GHz, 64GB ECC RAM
GeForce 3060 12GB, "Studio" driver 560.81
OS,Library: 1TB NVMe SSD - Project,Cache: 1TB NVMe SSD
Offline

Andy Mees

  • Posts: 4168
  • Joined: Wed Aug 22, 2012 7:48 am

Re: Undoing nonlinear horizontal stretching?

PostSat Jul 05, 2025 7:52 am

beforetheinternet wrote:Something that should be made a capital offence, requiring a custodial sentence
Hehe... 'Elastic Aspect' was one of my more popular plugins, back in the day, designed specifically for non-linear vandalisation of 4:3 footage. You're welcome. :lol:
Offline

beforetheinternet

  • Posts: 36
  • Joined: Tue Oct 15, 2024 11:27 pm
  • Real Name: Brendan Jones

Re: Undoing nonlinear horizontal stretching?

PostSat Jul 05, 2025 11:39 am

Sean Nelson wrote:You can move selected points using the keyboard arrow keys. Using Shift+Arrow moves them by 10X as much as the arrow keys alone. So if you're looking to reproduce a particular offset you can count how many arrow key pushes it takes and then repeat that with whatever other points you need to match with. A little kludgy perhaps, but more accurate than using the mouse.

Thanks for that, that is very helpful to know!
Offline

beforetheinternet

  • Posts: 36
  • Joined: Tue Oct 15, 2024 11:27 pm
  • Real Name: Brendan Jones

Re: Undoing nonlinear horizontal stretching?

PostSat Jul 05, 2025 11:40 am

Andy Mees wrote:
beforetheinternet wrote:Something that should be made a capital offence, requiring a custodial sentence
Hehe... 'Elastic Aspect' was one of my more popular plugins, back in the day, designed specifically for non-linear vandalisation of 4:3 footage. You're welcome. :lol:

Just because you can do something doesn’t mean you should… :lol:
Offline
User avatar

Uli Plank

  • Posts: 25534
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: Undoing nonlinear horizontal stretching?

PostSat Jul 05, 2025 12:13 pm

There were even some TVs offering that as an option…
My disaster protection: export a .drp file to a physically separated storage regularly.
Please visit digitalproduction.com/author/uliplank/

Studio 19.1.3
2017 iMac, MacOS 13.7.4
MacBook M1 Pro, OS 14.7.6 and M4 Pro mini, OS 15.5
Offline

beforetheinternet

  • Posts: 36
  • Joined: Tue Oct 15, 2024 11:27 pm
  • Real Name: Brendan Jones

Re: Undoing nonlinear horizontal stretching?

PostSun Jul 06, 2025 9:08 am

Uli Plank wrote:There were even some TVs offering that as an option…

My DVD player has it as an option!

Why anyone found pillarboxing so offensive that it needed to be “solved” with visual vandalism instead I’ll never understand… :geek:
Offline
User avatar

Sean Nelson

  • Posts: 900
  • Joined: Sun Feb 07, 2021 9:48 pm
  • Location: Vancouver, Canada
  • Real Name: Sean Nelson

Re: Undoing nonlinear horizontal stretching?

PostSun Jul 06, 2025 5:04 pm

beforetheinternet wrote:
Uli Plank wrote:There were even some TVs offering that as an option…
Why anyone found pillarboxing so offensive that it needed to be “solved” with visual vandalism instead I’ll never understand… :geek:

Same reason that many find 9:16 video on a 16:9 display to be an abomination...
DR Studio 19.1.4 Build 11, Win10Pro x64 22H2/19045.5608
Asus C246 Pro Motherboard, Xeon E-2278G@3.4GHz, 64GB ECC RAM
GeForce 3060 12GB, "Studio" driver 560.81
OS,Library: 1TB NVMe SSD - Project,Cache: 1TB NVMe SSD

Return to DaVinci Resolve

Who is online

Users browsing this forum: BirdWatcherVideos, cardioid, Google [Bot], panos_mts and 355 guests