Skip to main content
February 25, 2017
Answered

Beginner help please: How do I trim Canvas size to fit the video perfectly in AE?

  • February 25, 2017
  • 2 replies
  • 4169 views

Hi!

I have Warp Stabilized a video, and have set Framing to Stabilize and Crop only, not auto-scale.

Therefore, the resulting video has a black frame around it.

So, (sorry for the Photoshop terminology) how do I trim out the transparent pixels and be left with the exact resolution of my video, whatever it may be? Manually setting the Region Of Interest is not that precise, and I neither want to cut off any video edges, nor be left with any black edges. Also, I use Adobe Media Encoder to do the final export, so if it can be done there in a precise manner, please let me know.

Googled a bit but couldn't find a perfect way to do this.

Your help will be highly appreciated! Thank you for reading!

This topic has been closed for replies.
Correct answer Rick Gerard

Hey! I think I might've hit upon a solution, let me know what you think of it:

After Warp Stabilizing, Auto-Scale shows me that my video should be scaled up to 106.8% to fit the 1080p frame.

So, to find out the actual cropped video's height I did: 1080*100/106.8 = 1011.24 pixels.

Then I simply set the comp size to the above result, aspect ratio locked, and find that I've discovered the mathematical way of Set Comp to Video Resolution!

This way I finally get my Warp Stabilized video exported in the cropped resolution with Zero upscaling! This way, even if I were playing the video on a 1080p display, if the video player has the ability to show the video in actual resolution, the viewer gets the choice of viewing the video in original resolution without any shortfall in quality due to upscaling, even if by a minor 6%!

Leaving the upscale decision to the viewer is a lot better than us upscaling the video by default and forcing them to watch a larger but inferior quality video.

Once again, would love to hear your views on this since I understand you've been in this industry more than twice the years that I've lived on earth!


Hey! I think I might've hit upon a solution, let me know what you think of it:

You are not paying attention. If you send your odd sized video to render, the renderer will resize the comp to standard video dimensions and do it poorly. If you open do manage to render to a format that supports non standard resolution and your system manages to play it back it will have black bars around the edges because video players (Media Player, Quick Time - just about anything else) also comply to standard frame sizes. If you send a non standard video frame size to Vimeo or YouTube or just about any other streaming service they will re-compess it, usually poorly, and resize it to fit the standard frame sizes. Why is this such a hard concept. Everything you said in your post is nonsense. Warp Stabilizer does an excellent job at resizing the original video and re-interpreting the pixels. It moves them all. The original pixel information is absolutely gone. None of the original pixels exist any more. As long as your Max Scale factor is below about 115% you cannot tell the difference in the apparent resolution. It's impossible to do so. Even if you leave the video completely unscaled and just stabilize it, if you grab a frame and overlay it on the original frame using the difference blend mode you will not see a black image,see color fringes where the pixels don't match and you may even see some dramatic differences in the pixels.

Please, learn about video standards, use the default presets for comp size and rendering, and don't monkey with any of the compression settings until you achieve an experts knowledge of compression and formats. You will just be wasting your time.

2 replies

rickyj89135955
Known Participant
February 25, 2017

You just go to comp settings and change your canvas size there.   I can also adjust time, format, etc.    Just click Composition on the tool bar to bring you there.  I don't know my Mylenium always has to give pointless wordy answers.

Community Expert
February 25, 2017

Video is not like stills. There are specific frame sizes applicable to various formats. If you want to distribute your video to the public and be able to watch it on YouTube or any other standard play back medium the video has to be a certain frame size. You need to learn the standards and abide by them or your video will be distorted or resampled when you upload.

You cannot simply trim your composition to remove the black edges and successfully render a video for public consumption. You have to either scale it up or down to fit a standard video frame size.  Those are your choices.

I suggest you spend some time studying video standards. 

February 25, 2017

Alright, understood. However, for my problem, please consider the following example:

I have a 1920 x 1080 video. I Warp Stabilized it (with Auto Scaling off) which resulted in a video with a resolution lesser than 1080p.

Now... if I export that as is, AE will provide me a 1080p video with black edges all over. How do you suggest I avoid that? I do not want to upscale it, as that will dampen the quality. How do I trim the comp size so that it matches my video size perfectly?

Mylenium
Legend
February 25, 2017

Not sure what you are asking. You already covered all options. There simply is no "Trim" option. Video doesn't work this way.

Mylenium

February 25, 2017

Really?? Come on don't say that, I'm sure there's a proper way of doing it. How do I get rid of the extra black edges without cropping the video further?

Mylenium
Legend
February 25, 2017

Feel free to scale it up using whatever means you deem suitable or just crop it. The rest makes no sense. You really need to clear your mind of your wrong preconceptions. No point in clinging on to workflows that won't work with video.

Mylenium