react-native-video-processing icon indicating copy to clipboard operation
react-native-video-processing copied to clipboard

Video cropping issue

Open OXReactDev opened this issue 4 years ago • 0 comments

I am trying to crop video and it is working for me but it shows me some area as blank black screen, Here I am attaching original & out video clip. Here is my code to crop the video.

const options = { cropWidth: 640, cropHeight: 640, cropOffsetX: 0, cropOffsetY: 0, quality: 'highest', }; let newVideoData = await ProcessingManager.crop(compressedVideo, options);

  Original Video

https://user-images.githubusercontent.com/90760184/136534839-8da49958-dde3-4814-bec9-148bf95c1a25.mp4

Output which show blank black screen in remaining, you can see at below it shows me black screen. https://user-images.githubusercontent.com/90760184/136534996-68d2d13d-8ea9-4763-8749-3fae201f5d88.mp4

Current Behavior

It shows me blank black area in reamaining part with video actual height/width.

Expected Behavior

It should not show me blank black area and it should return me with cropped height/width.

Your Environment

software version
react-native-video-processing 2.0.0
react-native 0.64.0
node v14.17.4

OXReactDev avatar Oct 08 '21 09:10 OXReactDev