Open mannol opened 7 years ago
Nice catch! Meanwhile I didn't have any problems with crop
Hey @mannol Did you encountered issue when video wasn't trimmed? I mean you try to trim video but it remains the same. In what situations that could be?
@kesha-antonov no. Didn't have any issues with trimming other than it too was a blocking operation.
Sorry for spamming this thread.
@mannol What do you think - maybe we should do "copy" and "chmod" async task too? https://github.com/shahen94/react-native-video-processing/blob/master/android/src/main/java/com/shahenlibrary/Trimmer/Trimmer.java#L540
I'm worried that when user opens app first he'll wait until ffmpeg will be copied and chmod'ed
Yeah. Also, that should be done once only if the file doesn't exist already.
There is check already
Ok. I'll add async task for that later
Great!
@mannol @kesha-antonov Check out #126 for a fix for the original issue here.
When
width
andheight
props are used ascompress
options inProcessingManager.compress()
, they are parsed with decimal points to scale parameter which causes compression to fail.The following code in Trimmer.java produces:
Copmress resolution: -> 405.0:720.0
when it should beCopmress resolution: -> 405:720
.Double.toString()
simply won't cut it.