how to zoom part of a video?

I made a video of a choir singing. I had to position the camera at the back of the venue in order to get them all into the frame! I used remote wireless mics to get the audio.
But, as a percentage of the video, the singers are about 1/3. Full width, but I have a lot of audience back of heads in the frame.
Even shooting HD at 60 FPS its tough to make out singer’s faces.
Ideally I would like to be able to move a magnifier around - but display it on top of the audience. Or maybe enlarge as much of the choir on top of the audience as will fit? Then move the source so I show each half of the choir.
I have been watching existing tutorials that seem to either:

  • Require two copies of the video or
  • Enlarge on top of the source area, instead of moving it to a less important area. And a lot of manually placed keyframes

Unless somebody has a better idea, I plan to finish the video, export it. Then start a new project with two copies of the finished video, but use one with size/position + mask to enlarge a section on top of the audience. I can see that will work, just seems a little tedious.
Thanks in advance!

Hi @rcooke

Does this look like something that would work in your video?

Here’s one way to achieve this (many steps, but it’s easier and faster than it looks):

Steps:

1- Create the Magnifier

  • Select the video clip
  • Add a Mask: Simple Shape filter
    • Set Size values to fit the dimensions of your project (e.g. 1920x1080)
    • Set Position values to 0 and 0
    • Reduce Softness to 0.00 %
  • Add a Mask: Apply filter
  • Add a Crop: Rectangle filter
    • Move it above the Mask: Apply filter
    • Edit the Size values to create your Magnifier area
    • Enable a 2x2 grid
    • Grab the rectangle and snap it to the center of the grid

2- Create a border around the Magnifier

(ignore these steps if you don’t want the border)

  • Un-check the two Masks filters, leaving only the Crop filter checked.
  • Click the Copy checked filters button, then click the Paste filters button. This will create a duplicate of the Crop filter
  • Move the duplicated Crop filter below the original one
  • Re-check the un-checked filter
  • Select the first Crop filter and:
    • Reduce both Size values by 20px (to make a 10px broder)
    • Grab the rectangle and snap it to the center of the 2x2 grid
    • Click the Padding color square and choose a color for your border

3- Zoom the image inside the Magnifier

  • Add a Size, Position & Rotate filter
  • Move it above the two Crop filters
  • Increase the Zoom to about 250% (or any value you need)

Note: You will also use this Size, Position & Rotate filter to move the magnified image inside the Magnifier

4- Change the position of the Magnifier

  • Add another Size, Position & Rotate filter
  • Move it below the two Crop filters.
  • Grab the middle handle in the Preview and move your Magnifier anywhere on the screen.

And you’re almost done.

Move the first Size, Position & Rotate filter to select what part of the screen is magnified. Reducing the zoom of the Preview might be helpful when the moving handle is out of reach.

Use keyframes on that same filter to animate the movement of the image inside the Magnifier

Quick Video Tutorial:

8 Likes

Great demo, @MusicalBox.
I’m currently working on a project with a magnifying glass effect, as in your Youtube demo from February 2022:
‘First attempt at creating a magnifier glass effect in Shotcut’
Uhhh… We’ve been waiting… almost 3 years. :joy::rofl:

1 Like

Great demo @musicalbox, and very clear instructions.

@rcooke I did it in a slightly different way than @musicalbox - eg I used three video tracks - however many steps are similar, if not the same…
I did it in 2½ minutes. Hope this helps you - good luck!

Note - I used a still image (exported frame from @musicalbox’s demo) but you would substitute your video footage instead)

3 Likes

Thank you @SergeC

You know what ? I thought of you a couple of weeks ago… I was looking for stuff on an old disk drive and found that Loupe project you talk about.
I was tempted to start that promised tutorial… but I had to put it aside once again :flushed:

I also found a couple of other things that I think are worth sharing. So don’t give up :slight_smile:

1 Like

Good alternative @jonray !

Your way is faster when starting from scratch.
One possible advantage of the one-track method is that you can save all the filters as a filter-set. Will need to test if a filter-set can beat your 2½ minutes :slight_smile:

1 Like

What a great effect!

1 Like

J’ai vu cette vidéo de février 2022, on peut facilement la reproduire mais il faut au moins 2 pistes.
Sur V1 la vidéo agrandie et sur V2 la même vidéo taille réelle avec un masque pour voir V1 au dessous. Mais je n’ai pas trouvé pour faire l’effet fisheye.

I saw this video from February 2022, it can be easily reproduced but you need at least 2 tracks.
On V1 the enlarged video and on V2 the same life-size video with a mask to see V1 below. But I didn’t find it to do the fisheye effect.

3 Likes

Great idea! Look forward to seeing the filter-set sometime! :wink:

That’s nice. C’est bien.

1 Like

Cette discussion étant fermée, je poste ici désolé.
J’ai trouvé la ligne à modifier dans le filtre d’ @Elusien Sniperscope
Cela permet d’ajouter une déformation comme une vrai loupe. En plus, le paramètre est Keyframable.
Mais, c’est un filtre pour les anciennes versions, donc incompatible avec les dernières versions. Si toutefois ça vous intéresse, je peux partager avec l’accord d’ @Elusien

This discussion being closed, I’m posting here sorry.
I found the line to edit in the filter of @Elusien Sniperscope
This allows you to add a distortion like a real magnifying glass. In addition, the parameter is Keyframable.
But, it is a filter for older versions, so incompatible with the latest versions. If you are interested, I can share with the agreement of @Elusien

Dossier à mettre dans le dossier filtre
00 Sniper scope.zip (36.6 KB)

3 Likes

My contributions to the Shotcut community are all free and without conditions attached, so I have no problem with you sharing this code.

Mes contributions à la communauté Shotcut sont toutes gratuites et sans conditions, je n’ai donc aucun problème à ce que vous partagiez ce code.

1 Like