shahen94 / react-native-video-processing

Native Video editing/trimming/compressing :movie_camera: library for React-Native
https://shahen94.github.io/react-native-video-processing/
MIT License
1.24k stars 323 forks source link

Video cropping issue #350

Open OXReactDev opened 2 years ago

OXReactDev commented 2 years ago

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