Jump to content
EtoDem

Crop video and export to the exact size

Recommended Posts

Hi

I'm using VideoPad 7.34

I found many post on this forum abount cropping issues, black bands and so on but I have not found a solution.

My purpose is very simple: I want to crop a video (applying a crop rectangle static filter) and then export the video with that new size.

I don't want to upscale, downscale, zoom, scretch to aspect, adapt to 16:9 or optimazing it  for youtube.

When I apply a crop filter the "Auto match content" feature always detect the original size and not the new cropped size.

It's possible to reach this goal without use another processing tool?

Thank you

Matteo

Share this post


Link to post
Share on other sites

  Began with this...

Alf.jpg

Applied a simple crop, and got this...

Alf_crop.jpg

If you want it to fill the frame it will be necessary to scale it larger, which results in this...

Alf_crop_scale.jpg

Share this post


Link to post
Share on other sites

Hi

I understand your point of view but I don't want to upscale or black bands :)

If my video is 1920x1080 and I crop 25% 25% 25% 25% I want a video half the width and half the height so 960x540.

If I crop off some margin I want a smaller picture size video :)

It's possible to obtain that?

At the moment If I process a 1080x1920 video applying texts and cropping details I force VideoPad to produce a 1080x1920 video (with stratch, hoping he doesn't do anything since the geometry is identical) and then I crop the resulting video with AviDemux.

And it's crazy because every additional processing cause a decode and a reencoding with loss of details.

Thank you

Matteo

 

 

Share this post


Link to post
Share on other sites

In your example, if the cropped export is to be 960x540, then set the Custom output size accordingly.  Here is a 1920x1080 exported in that manner...

590x540.jpg

Share this post


Link to post
Share on other sites

Hi :)

The first observation I make is that the crop shows only percentage values so knowing exactly how many pixels it will become is not so simple. At the moment to know it I export the file and use Avidemux which has a crop autodetect filter. Is there a better way?

Anyway your result is correct. But it isn't the requested result :)

I give an example to be clearer. If I load a picture into MSPAINT.exe and do "CROP", the save generates an image with the cut size, not the original one with the black bands. I want the same thing: a video of the cut size. I don't want black bands, I don't want to zoom, I don't want to stretch. I want a video of the exact dimensions I set without going crazy. It's possible? :)

Using your example my desired result is https://ibb.co/1Qkz1tx

Thank you very much for your support!

Matteo

Share this post


Link to post
Share on other sites

Try this...

Add the 1920x1080 image/video to the sequence.

Open Effects and apply Crop to Aspect Ratio.

Export at 960x540.

The result...

Untitled.mp4_snapshot_00.03_[2019.10.21_02.03.30].jpg

Share this post


Link to post
Share on other sites

Hi

Your result is a resized/downsampled 960x540 video (I see the complete picture), not a cropped video of 960x540 pixels (the center), I think.

To better explain this is the result I would like with your example: https://ibb.co/fdy2LcV

Matteo

 

 

Share this post


Link to post
Share on other sites

It appears that your desired result cannot be achieved without scaling, but can be seen if the player is scaled to present the video in that manner - such as 2x size in MPC-HC.

Others may chime in here with better solutions.  File a suggestion by clicking the chevron at the top-right of the VP window.

Share this post


Link to post
Share on other sites

Hi Borate

Is possible to scalate this issue to the developer team? I think it's a I product problem, not a feature.

Adding fantastic filters and processing and not being able to export a clipped video seems like a big product mistake.

-"It is a fantastic car, full of options and quality. Great comfort, low consumption and a dashboard full of buttons and lights"

-"Can I open all four doors simultaneously?"

-"No."

 

Matteo

Share this post


Link to post
Share on other sites

The devs read the suggestions.  Scaling the image/video and exporting at the desired resolution results in a nice presentation.

test.mp4_snapshot_00.03_[2019.10.21_07.13.54].jpg

Share this post


Link to post
Share on other sites
5 hours ago, borate said:

The devs read the suggestions.  Scaling the image/video and exporting at the desired resolution results in a nice presentation.

Thank you for your support

Matteo

Share this post


Link to post
Share on other sites
4 hours ago, c_major said:

Hi EtoDem,

Have you tried the Zoom effect. I think it does exactly what you wanted.

Hi C_major

Yes of course and is easy if the crop percentage are exaclty 25-25-75-75.

But when the crop area is very custom it's impossibile to obtain a good result.

You must choose between black bands or low resolution tradeoff.  And is crazy for a commercial software when free sw like avidemux do this very easily.

Matteo

Share this post


Link to post
Share on other sites

Hi

"...I understand your point of view but I don't want to upscale or black bands :)

If my video is 1920x1080 and I crop 25% 25% 25% 25% I want a video half the width and half the height so 960x540.

If I crop off some margin I want a smaller picture size video :)

It's possible to obtain that?...."

VP 7.30      YOU DON'T NEED TO CROP....(per se) Here is the reason...

Here is a 1920 x 1080 clip on the timeline.........

aaa.jpg

If apply a CROP effect 25/25/75/75  (Not as you state in your post 25/25/25/25..as this wont give a 1/2 size central image)

You will now have cropped the image to leave just the central area of 960 x 540 pixels (It is now 1/2 the size but not all the original image. as it has been cropped)   The parameters chosen place this cropped image in the centre of the frame which remains 1920 x 1080.....

bbb.jpg

If you export this using Auto match , VP exports a 1920 x 1080 image.....and the cropped area will be in the centre of the frame just as it was on the timeline...

ddd.jpg

Exporting as a Custom 920 x 540.   Gives the same result but in a smaller frame....

eee.jpg

If you try to scale it up to fill the frame it wont work correctly ....(At least here it didn't)......So don't crop...do this.....

  • Place the 1920 x 1080 clip on the timeline
  • SCALE it up to twice the size keeping the same aspect ratio
  • Export it (either 1920 x 1080   or Custom 960 x 540.)

This is the original 1920 x1080 clip image.....

ggg.jpg

 

This is an image of the "cropped" (or scaled up) clip  exported at 1960 x 1080 in VLC.... The resolution suffers since the image was scaled up to twice its original size in step 2 above...

fff.jpg

 

Below is an image of the "cropped" (or scaled up) clip  exported at 960 x 540  in VLC....

xxx.jpg

Is that the effect you want?  Note again This image is "cropped" and the outer part of the image is lost.

If you want all the original image area but only half size then export at custom 960 x 540.

Nat

 

Share this post


Link to post
Share on other sites

Hi

First of all I want to thank you for the support, I appreciate it very much and it's a good signal for those who buy a product.

It's correct. 25-25-25-25 are wrong, 25% 25% 75% 75% are correct :)

First point. As long as we talk about a crop in the center it is very simple. If we apply a more realistic crop it becomes much more complex

Starting from this sample: https://ibb.co/bR2vZgb
If I want to apply this crop: https://ibb.co/TmKz4nX

It's not easy to zoom without adding black bars or lose areas.
And again: What will be the final pixel size with this crop?
We can take the original width 1920 multiplied by the first percentage 49,63, and do the same for the secondo percentage 96,56. Then substract the results to obtain the new width.
Then do the same for the height. Roudings? boh.

Then we can try to export with a complex try and retry and retry until a less than acceptable solution is found.

Do you agree with me that it's crazy? :)

I'm a software developer and I know it's not polite but let me compare this.

Exporting the previous video without any resize or zoom:
https://ibb.co/bKTCJ12

Loading my uncropped file into avidemux:
https://ibb.co/92bL4VS

Filters -> crop -> Auto Crop
https://ibb.co/8sC08sf

[OK] -> Save.

Stop. Done. 5 Clicks. 

If you agree that there is an incomprehensible limitation, that it will be resolved in the future and you are trying to help me solve a problem quickly, I thank you for your commitment and help.
If you are trying to convince me that the program is right, we think it very differently.

Anyway, thank you very much for your time

Matteo

Share this post


Link to post
Share on other sites

Hi

Admittedly VP does not provide the resolution in pixels that your cropped image will have, although as you say it can be worked out from the crop position values.

If you want a centered image of a Cropped image then simply use The zoom effect......

Original image........

aa.jpg

Here is the same Image with a un-centered  freeform zoomed area....The AR is not known but VP centers the zoomed area.....

bb.jpg

The result in this case will always have bars since the AR of the cropped area is not 16:9 like the frame AR.

However....

There there is a list of ARs  that you can you apply to the Zoom effect, one of which may be close to the crop AR you are looking for..

.ccc.jpg

As an example I could select 21:9 and center it on the yellow duster.......

ddd.jpg

There will still be black bars top and botton since it is not 16:9. But I can change the setting of the preview to 21:9 as it also has a list of ARs...Selecting this removes the black bars from the preview...

ee.jpg

Exporting this with Auto Match produces a border free clip of 21:9 AR..in this case 770 x 324.....

This is an image of exported clip in VLC at 21:9 AR

xx.jpg

This might be as close as you will get.

Nat

 

 

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...