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

ProcessingManager.getVideoInfo() fails ONLY for SQUARE videos????

Open chai86 opened this issue 5 years ago • 3 comments

@pisacode @pmella16 @ebellumat @shahen94

Similar to #215

I'm also getting the error: Exception thrown while executing UI block: CALayer bounds contains NaN: [0 0; nan 50]

It looks like its happening when i'm trying to call getVideoInfo for a video that's a square. (NaN something to do with divide by zero or a variable not having a default?). Perfectly fine for rectangular videos, whether portrait or landscape orientation.

I'm using the latest module and my RNVideoPlayer.swift and RNTrimmerView.swift are as you've mentioned in #215 already and the URL for the file is already: URL = assets-library://asset/asset.MP4?id=3A59DD37-58A6-4988-928F-9AD3B65E65A2&ext=MP4

ProcessingManager.getVideoInfo(URL)
         .then(({ size, duration }) => { 
                                this.setState({
                                                videoWidth: size.width,
                                                videoHeight: size.height,
                                                durationEnd: duration
                                              }); 
                             });   

Theres no data returned in the call. I think this is an outlier case that's perhaps not been addressed and i have no idea how to solve it. Please help!

chai86 avatar Jul 08 '20 22:07 chai86

Anyone?

chai86 avatar Jul 13 '20 13:07 chai86

Anyone?

chai86 avatar Aug 04 '20 09:08 chai86

?

chai86 avatar Aug 11 '20 15:08 chai86