Announcement: Our new CyberLink Feedback Forum has arrived! Please transfer to our new forum to provide your feedback or to start a new discussion. The content on this CyberLink Community forum is now read only, but will continue to be available as a user resource. Thanks!
CyberLink Community Forum
where the experts meet
| Advanced Search >
Can PD 19 Ultimate crop video with user defined shape?
bjch512 [Avatar]
Member Joined: Jul 21, 2021 23:32 Messages: 91 Offline
[Post New]
Hi,

Can PD 19 Ultimate crop video with user defined shape? Instead of getting a rectangular shape, I need to crop a video to the shape like the attached screenshot (uneven.jpg)

The reason I need such shape becasue we need to add a person (who is extracted from a video with green background by using PD 19 Chroma Key tool) into a picture. There is a coffee table in this picture, when adding that person behind the coffee table, the bottom of the extacted person cuts in the table (see green circle in the attached screenshot table_leg.jpg). We can fix this problem if we can crop video to make its bottom tilt.

Your suggestions would be greatly appreciated. Thank you!

Regards,
Lee
[Thumb - uneven.jpg]
 Filename
uneven.jpg
[Disk]
 Description
 Filesize
15 Kbytes
 Downloaded:
5 time(s)
[Thumb - table_leg.jpg]
 Filename
table_leg.jpg
[Disk]
 Description
 Filesize
25 Kbytes
 Downloaded:
4 time(s)
optodata
Senior Contributor Location: California, USA Joined: Sep 16, 2011 16:04 Messages: 8630 Offline
[Post New]
The quick answer is no. All crops have straight edges and 90° angles, although the height and width can be locked to the existing aspect ratio or set to freeform.

The easiest way to do what you want would be to crop then add a mask to remove the undesired content. Masks can be in any shape and can even be drawn by brush (using a mouse or a finger/pen on touchscreen devices)

This message was edited 1 time. Last update was at Aug 16. 2021 17:09

bjch512 [Avatar]
Member Joined: Jul 21, 2021 23:32 Messages: 91 Offline
[Post New]
Thank you for the information. It perfectly works for what I need.

I created a mask with "Create a customer selection mask" function (see mask1.jpg). mask2.jpg shows the final effect, which corrects the problem I had before.

One more question on mask... would it be possible to apply a mask to only a section of video (instead of apply mask to the whole video)? The reason for this question is that object in the video may move a bit, so a mask fits one section of the video may not fit the rest sections.

Regards.
[Thumb - mask1.JPG]
 Filename
mask1.JPG
[Disk]
 Description
 Filesize
33 Kbytes
 Downloaded:
4 time(s)
[Thumb - mask2.JPG]
 Filename
mask2.JPG
[Disk]
 Description
 Filesize
18 Kbytes
 Downloaded:
3 time(s)

This message was edited 1 time. Last update was at Aug 16. 2021 22:43

optodata
Senior Contributor Location: California, USA Joined: Sep 16, 2011 16:04 Messages: 8630 Offline
[Post New]
Any mask is applied to the entire clip, so you can simply split the clip and remove/change the mask as needed in the following clips.

If you're wanting to cover some slight motion of the camera, it's better to use mask keyframes and adjust them as needed to keep the masked area covered smoothly.

This message was edited 1 time. Last update was at Aug 16. 2021 23:37

bjch512 [Avatar]
Member Joined: Jul 21, 2021 23:32 Messages: 91 Offline
[Post New]
By "mask keyframes", do you mean the feature showed in the attached video clip?

Thanks & regards.
 Filename
2021-08-17 20-23-41.mkv
[Disk]
 Description
 Filesize
1483 Kbytes
 Downloaded:
205 time(s)
optodata
Senior Contributor Location: California, USA Joined: Sep 16, 2011 16:04 Messages: 8630 Offline
[Post New]
Yes
bjch512 [Avatar]
Member Joined: Jul 21, 2021 23:32 Messages: 91 Offline
[Post New]
Thank you for your help. Much appreciate!

Regards.
Powered by JForum 2.1.8 © JForum Team